:root {
    --primary-color: #0d2d4e;
    --primary-dark: #0a243d;
    --secondary-color: #f39c12;
    --light-color: #f8f9fa;
    --dark-color: #222;
    --gray-color: #6c757d;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--dark-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo-text span {
    color: var(--secondary-color);
}

.logo-img {
    height: 80px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.8rem;
}

nav ul li a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(13, 45, 78, 0.8), rgba(13, 45, 78, 0.9)), url('https://images.unsplash.com/photo-1544620347-c4fd4a3d5957?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 8rem 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.whatsapp-btn {
    background-color: #25D366;
    margin-top: 1rem;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--light-color);
    overflow: hidden; /* Previene desbordamiento */
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start; /* Cambiado de center a flex-start */
    gap: 2rem; /* Reducido el gap */
}

.about-text {
    flex: 1;
    min-width: 300px;
    max-width: 100%; /* Asegura que no se desborde */
    word-wrap: break-word; /* Permite que las palabras largas se dividan */
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6; /* Reducido ligeramente */
    text-align: justify; /* Mejor distribución del texto */
    hyphens: auto; /* Divide palabras cuando es necesario */
}

.about-features {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature {
    background-color: white;
    padding: 1.5rem 1rem; /* Reducido padding horizontal */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s;
    border-left: 4px solid var(--secondary-color);
    max-width: 100%; /* Previene desbordamiento */
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem; /* Reducido tamaño de fuente */
    line-height: 1.4;
    word-wrap: break-word;
    hyphens: auto;
}

/* Media Queries Mejoradas */
@media (max-width: 768px) {
    .about {
        padding: 3rem 0; /* Reducido padding en móviles */
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem; /* Menor gap en móviles */
    }
    
    .about-text p {
        font-size: 1rem; /* Tamaño de fuente más pequeño en móviles */
        line-height: 1.5;
        text-align: left; /* Mejor legibilidad */
        padding: 0 0.5rem; /* Padding lateral para no pegarse a los bordes */
    }
    
    .about-features {
        grid-template-columns: 1fr; /* Una columna en móviles */
        gap: 1rem;
        width: 100%;
    }
    
    .feature {
        padding: 1.2rem 0.8rem;
        margin: 0 auto;
        max-width: 95%; /* Asegura que no toque los bordes */
    }
    
    .feature h3 {
        font-size: 0.95rem; /* Aún más pequeño en móviles */
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .about-text p {
        font-size: 0.95rem; /* Ajuste extra para pantallas muy pequeñas */
        line-height: 1.4;
    }
    
    .feature h3 {
        font-size: 0.9rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem; /* Título más pequeño en móviles */
    }
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.service-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.service-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.2), rgba(0,0,0,0.1));
}

.service-content {
    padding: 1.8rem;
}

.service-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

/* Facilities Section */
.facilities {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.facilities-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
}

.facilities-text {
    flex: 1;
    min-width: 300px;
}

.facilities-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.facilities-text ul {
    list-style: none;
    padding-left: 0;
}

.facilities-text ul li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
    position: relative;
    padding-left: 2rem;
}

.facilities-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.facilities-img {
    flex: 1;
    min-width: 300px;
    height: 350px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.facilities-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>');
    background-size: 20px 20px;
}

/* Security Section */
.security {
    padding: 5rem 0;
    text-align: center;
    background-color: white;
}

.security p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    color: var(--primary-color);
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--primary-color);
    color: white;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-details p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.contact-details i {
    margin-right: 0.8rem;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.contact-info > p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    background-color: rgba(255,255,255,0.95);
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.3);
    background-color: white;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo-container {
    margin-bottom: 1.5rem;
}

.footer-logo-text {
    font-size: 1.8rem;
    font-weight: bold;
}

.footer-logo-text span {
    color: var(--secondary-color);
}

.footer-logo-img {
    height: 80px;
    width: auto;
}

.footer-contact {
    margin-bottom: 1.5rem;
}

.footer-contact p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.copyright {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--gray-color);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0.5rem 1rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .about-content,
    .facilities-content,
    .contact-content {
        flex-direction: column;
        text-align: center;
    }
    
    .facilities-text ul {
        text-align: left;
        display: inline-block;
    }
}

/* Active navigation link styling */
nav a.active {
    color: var(--secondary-color) !important;
    font-weight: bold;
}

nav a.active::after {
    width: 100% !important;
}