/* ===== IMPORTACIÓN DE FUENTES ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Roboto:wght@400;500&display=swap');

/* ===== VARIABLES CSS (PALETA DE COLORES) ===== */
:root {
    --dark-blue: #0A192F; /* Azul oscuro */
    --light-gray: #F5F5F5; /* Gris claro */
    --gold: #FFD700;      /* Amarillo dorado */
    --white: #FFFFFF;
    --text-color: #333;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --header-height: 70px;
}

/* ===== RESET GLOBAL Y CONFIGURACIÓN BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 2rem; /* Añadido padding horizontal para móviles */
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--dark-blue);
    text-align: center;
    margin-bottom: 3rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark-blue);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== HEADER Y NAVEGACIÓN FIJA ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-blue);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: var(--header-height); /* Asegúrate de que el header tenga una altura definida */
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%; /* Hace que el nav ocupe toda la altura del header */
    padding: 0 1rem;
}

.logo-img-container {
    display: flex; /* Asegura que la imagen se centre verticalmente si es necesario */
    align-items: center;
    height: 100%; /* Ocupa la altura del nav */
}

.logo-img {
    height: 125px; /* <-- Aumentado de 40px a 55px (cerca de los 70px de la barra) */
    width: auto;
    max-width: 220px; /* <-- Aumentado para permitir que crezca si es un logo ancho */
    transition: transform 0.3s ease; 
}

.logo-img:hover {
    transform: scale(1.05); /* Ligeramente más grande al pasar el ratón */
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links li a {
    color: var(--light-gray);
    font-weight: 500;
    font-family: var(--font-body);
    padding: 0.5rem;
    position: relative;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--gold);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#lang-toggle {
    background: none;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
}

#lang-toggle:hover {
    background-color: var(--gold);
    color: var(--dark-blue);
}

.cta-button {
    background-color: var(--gold);
    color: var(--dark-blue);
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.cta-button:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--light-gray);
    cursor: pointer;
}

/* ===== BOTONES GENÉRICOS ===== */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    font-family: var(--font-heading);
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--dark-blue);
}

.btn-primary:hover {
    background-color: #e6c300;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--light-gray);
    border: 2px solid var(--gold);
}

.btn-secondary:hover {
    background-color: var(--gold);
    color: var(--dark-blue);
    transform: translateY(-3px);
}


/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    padding-top: var(--header-height);
    /* Usa una imagen de fondo de alta calidad */
    background: url('img/Gemini_Generated_Image_tybho7tybho7tybh.jpg') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-blue);
    opacity: 0.8; /* Ajusta la opacidad del overlay */
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1rem; /* Padding para texto hero en móvil */
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--light-gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap; /* Para que los botones se ajusten en móviles */
}

/* ===== SERVICES SECTION ===== */
#services {
    background-color: var(--light-gray);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* ===== ABOUT US SECTION ===== */
#about {
    background-color: var(--dark-blue);
    color: var(--light-gray);
}

.about-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto; /* Centrar el contenido */
}

#about h2 {
    color: var(--white);
}

#about p {
    font-size: 1.1rem;
}

/* ===== GALLERY SECTION (CON TAMAÑO HORIZONTAL UNIFORME) ===== */
.gallery-grid {
    display: grid;
    /* 3 columnas en desktop, 2 en tablet, 1 en móvil */
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    overflow: hidden; 
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative; 
    /* Relación de aspecto 4:3 (horizontal) */
    padding-bottom: 75%; 
    background-color: #eee;
}

.gallery-item img {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen para llenar el contenedor */
    object-position: center; 
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08); 
}

/* ===== TESTIMONIALS SECTION ===== */
#testimonials {
    background-color: var(--light-gray);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--white);
    padding: 2rem;
    border-left: 5px solid var(--gold);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-card .quote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.testimonial-card .rating {
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.testimonial-card .client-name {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--dark-blue);
}

/* ===== CONTACT SECTION ===== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

#contact-form p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-body);
}

#contact-form button {
    width: 100%;
    font-size: 1.1rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info .contact-detail {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-info .contact-detail i {
    color: var(--gold);
}
.contact-info .contact-detail a {
    color: var(--text-color);
}
.contact-info .contact-detail a:hover {
    color: var(--gold);
}

#map {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    margin: 1.5rem 0;
    border: 1px solid #ddd;
}

.social-icons {
    margin-top: 1.5rem;
}

.social-icons a {
    color: var(--dark-blue);
    font-size: 2rem;
    margin-right: 1.5rem;
}

.social-icons a:hover {
    color: var(--gold);
}

/* ===== WHATSAPP FLOAT BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark-blue);
    color: var(--light-gray);
    text-align: center;
    padding: 2rem 0;
}

/* ===== ANIMACIONES DE SCROLL ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ===== DISEÑO RESPONSIVE (MÓVIL) ===== */
@media (max-width: 768px) {
    .logo-img {
    height: 125px; /* <-- Aumentado de 35px a 45px para que se vea mejor en móvil */
    max-width: 180px; /* <-- Aumentado */
}
}
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }

    /* Menú Móvil */
    .menu-toggle {
        display: block;
        z-index: 1002;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%; /* Oculto fuera de la pantalla */
        width: 80%;
        height: 100vh;
        background-color: var(--dark-blue);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: left 0.4s ease-in-out;
        z-index: 1001;
    }

    .nav-links.active {
        left: 0; /* Mostrar menú */
    }

    .nav-links li {
        margin: 0;
    }

    .nav-links li a {
        font-size: 1.3rem;
    }

    .nav-buttons {
        gap: 0.5rem;
    }

    .cta-button {
        display: none; /* Ocultar el CTA grande en móvil */
    }
    
    .gallery-grid {
        grid-template-columns: 1fr; /* 1 columna en móvil */
    }
}