/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Header y Navegación */
/* Header y Navegación */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed; /* Deja el menú fijo en la parte superior */
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff; /* Asegura que tenga fondo y no sea transparente */
    z-index: 1000; /* Hace que el menú pase por encima del fondo fotográfico */
    padding: 10px 5%; /* Añade un margen interno a los lados */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Opcional: sombra inferior sutil */
}
    
    
}

header .logo {
    font-size: 12px;
    color: #fff;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

header nav ul li a {
    color: #033285;
    text-decoration: none;
    padding: 5px 10px;
    transition: background-color 0.3s;
}

header nav ul li a:hover {
    background-color: #555;
    border-radius: 5px;
}

/* Menú móvil */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

/* Esto dibuja la línea central */
.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: #033285; /* Tu color azul */
    position: relative;
    transition: background 0.2s;
}

/* Esto dibuja las líneas de arriba y abajo */
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #033285; /* Mismo color azul */
    transition: transform 0.2s;
}

/* Posiciona la línea de ARRIBA (6px hacia arriba) */
.hamburger::before {
    top: -8px; 
}

/* Posiciona la línea de ABAJO (6px hacia abajo) */
.hamburger::after {
    bottom: -8px; 
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 150px 20px;
    position: relative;
    margin-top: 80px;
    transition: background-image 1s ease-in-out;
    min-height: 500px;
    transition: background-image 0.5s ease-in-out;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: auto;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
    color: #fff;
}

.hero p {
    font-size: 18px;
    color: #ddd;
}

/* Features Section */
.features {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feature p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.feature ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    list-style-type: disc;
}

.feature h2 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.8rem;
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    background-color: #fff;
}

.testimonials h2 {
    margin-bottom: 3rem;
    font-size: 2rem;
    color: #333;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 0 auto;
}

.testimonial-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.6;
}

.testimonial-author {
    font-weight: bold;
    color: #333;
    display: block;
    margin-top: 1rem;
}

/* Contact Section */
.contact {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.contact h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #333;
}

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

.contact-email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-email a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-email a:hover {
    color: #555;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-link {
    color: #333;
    font-size: 2rem;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.social-link:hover {
    color: #fff;
    background-color: #333;
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    /* Header responsive */
    @media screen and (max-width: 768px) {
    /* Header responsive */
    header {
        flex-direction: row; /* Mantiene el logo a la izquierda y el botón a la derecha */
        padding: 10px 20px;
    }

    header .logo {
        margin-bottom: 0;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #ffffff; /* Te sugiero fondo blanco en lugar de #333 para que contraste mejor */
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        display: flex;
        flex-direction: column;
    }

    /* ... mantén el resto del código responsive igual ... */

    header nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 10px;
    }

    header nav ul li a {
        display: block;
        padding: 10px;
    }

    /* Hero section responsive */
    .hero {
        margin-top: 0;
        padding: 100px 15px;
        min-height: 400px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    /* Features section responsive */
    .features {
        padding: 2rem 15px;
    }

    .feature {
        padding: 1.5rem;
    }

    .feature h2 {
        font-size: 1.5rem;
    }

    /* Testimonials responsive */
    .testimonials {
        padding: 3rem 15px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-image {
        width: 120px;
        height: 120px;
    }

    /* Contact section responsive */
    .contact {
        padding: 3rem 15px;
    }

    .social-links {
        gap: 1.5rem;
    }

    /* Menú hamburguesa animación */
    .menu-toggle[aria-expanded="true"] .hamburger {
        background: transparent;
    }

    .menu-toggle[aria-expanded="true"] .hamburger::before {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] .hamburger::after {
        transform: translateY(-6px) rotate(-45deg);
    }
}

/* Tablets y pantallas medianas */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features, .testimonials, .contact {
        padding: 3rem;
    }
}

/* Ajustes para dispositivos táctiles */
@media (hover: none) {
    header nav ul li a:hover {
        background-color: transparent;
    }

    .social-link:hover {
        color: inherit;
        transform: none;
    }

    .testimonial-card:hover {
        transform: none;
    }
}

/* Ajustes de orientación */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .hero {
        padding: 60px 20px;
        min-height: 300px;
    }

    .hero h1 {
        font-size: 28px;
    }
}

/* Soporte para pantallas de alta densidad */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero {
        background-size: cover;
    }
}

/* Ajustes de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .hero,
    .social-link,
    .testimonial-card,
    header nav ul li a {
        transition: none;
    }
}