/* Variables de color elegantes */
:root {
    --bg-dark: #ffffff;
    --bg-darker: #ffffff;
    --gold: #52A688;
    --gold-hover: #2fb598;
    --text-light: #52A688;
    --text-muted: #aaaaaa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

/* --- Navegación --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.4s ease;
}

nav.scrolled {
    padding: 10px 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

#navbar > a {
    text-decoration: none;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    color: #95c3b3;
}

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

.logo > a{
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--gold);
}

.btn-contacto {
    border: 1px solid var(--gold);
    padding: 8px 20px;
    border-radius: 30px;
}

.btn-contacto:hover {
    background: var(--gold);
    color: var(--bg-dark) !important;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Aquí puedes añadir una foto de fondo real de tu trabajo */
    background: linear-gradient(rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.8)), url('https://images.unsplash.com/photo-1589939705384-5185137a7f0f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero-content span {
    color: var(--gold);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-button {
    text-decoration: none;
    background: var(--gold);
    color: var(--bg-darker);
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: var(--gold-hover);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.487);
    transform: translateY(-3px);
}

/* --- Contenedores Generales --- */
.section {
    padding: 100px 20px;
}

.contenedor {
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--gold);
}

/* --- Servicios --- */
.servicios {
    background-color: var(--bg-darker);
}

.grid-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: #1e1e1e;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    border-bottom: 3px solid transparent;
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* --- Contacto y Formulario --- */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: #1e1e1e;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid #444;
    border-radius: 5px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group textarea {
    resize: vertical;
}

.input-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--text-muted);
    transition: all 0.3s;
    pointer-events: none;
    background: #1e1e1e;
    padding: 0 5px;
}

/* Efecto super profesional en los inputs del formulario */
.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--gold);
    outline: none;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:focus + label,
.input-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--gold);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--gold);
    color: var(--bg-darker);
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.submit-btn:hover {
    background: var(--gold-hover);
}

.mapa-box {
    border-radius: 10px;
    overflow: hidden;
    min-height: 350px;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 30px;
    background: var(--bg-darker);
    color: var(--text-muted);
    border-top: 1px solid #333;
}

/* --- Clases para Animaciones JS --- */
.scroll-anim {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-anim.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive básico */
@media (max-width: 768px) {
    .contacto-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.5rem; }
    .nav-links { display: none; /* En un proyecto real aquí iría un menú hamburguesa */ }
}
/* Ajuste para la página de contacto separada */
.padding-top-extra {
    padding-top: 150px; /* Evita que el menú tape el título */
    min-height: calc(100vh - 80px); /* Ocupa toda la pantalla menos el footer */
}

/* --- ESTILOS DE LOS ENLACES DEL MENÚ --- */

/* 1. Preparamos el enlace para alojar la línea animada */
.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s;
    position: relative; /* ¡MUY IMPORTANTE! Permite posicionar la línea justo debajo */
    padding-bottom: 5px; /* Da un poco de aire entre el texto y la línea */
}

.nav-links a:hover {
    color: var(--gold); /* El texto se pone dorado al pasar el ratón */
}

/* 2. Creamos la "línea virtual" invisible */
.nav-links a::after {
    content: ''; /* Necesario para que el pseudoelemento exista */
    position: absolute;
    bottom: 0; 
    left: 0;
    width: 100%; 
    height: 2px; 
    background-color: var(--gold); 
    
    /* Animación: empezamos con tamaño 0 */
    transform: scaleX(0); 
    transform-origin: center; 
    transition: transform 0.3s ease-in-out; 
}

/* 3. Activamos la línea cuando el ratón pasa por encima (Hover) */
.nav-links a:hover::after {
    transform: scaleX(1); 
}

/* Mantiene la línea fija para la página activa */
.nav-links a.activo::after {
    transform: scaleX(1);
    background-color: var(--gold); /* O blanco, lo que hayas elegido */
}

.nav-links a.activo {
    color: var(--gold);
}
/* --- ESTILOS DEL BOTÓN HAMBURGUESA (Oculto en PC) --- */
.menu-hamburguesa {
    display: none; /* No se ve en pantallas grandes */
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 2000;
}

.menu-hamburguesa .barra {
    width: 30px;
    height: 3px;
    background-color: var(--gold); /* Usa el dorado/verde de tu web */
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* --- RESPONSIVO PARA MÓVILES (Desplegable) --- */
@media (max-width: 768px) {
    .contacto-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.5rem; }
    /* Mostramos el botón hamburguesa */
    .menu-hamburguesa {
        display: flex;
    }

    /* Modificamos la lista de enlaces para que sea un menú desplegable */
    /* Modificamos la lista de enlaces para que sea un menú desplegable */
    /* Modificamos la lista de enlaces para que sea un menú desplegable */
    .nav-links {
        display: flex; /* ¡MUY IMPORTANTE! Obliga al menú a existir */
        position: absolute;
        top: 75px; 
        right: -100%; 
        flex-direction: column;
        background-color: #ffffff;
        width: 100%;
        text-align: center;
        transition: right 0.4s ease; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 30px 0;
        height: 100vh; 
        z-index: 1500; 
    }

    /* Esta es la clase que aplicará Javascript al hacer clic */
    .nav-links.activo-movil {
        right: 0; /* Lo trae al centro de la pantalla */
    }

    /* Separamos un poco más los enlaces en móvil */
    .nav-links li {
        margin: 20px 0;
    }

    /* --- ANIMACIÓN: Convertir la hamburguesa en una 'X' --- */
    .menu-hamburguesa.toggle .barra:nth-child(1) {
        transform: rotate(-45deg) translate(-6px, 6px);
    }
    
    .menu-hamburguesa.toggle .barra:nth-child(2) {
        opacity: 0; /* Escondemos la barra del medio */
    }
    
    .menu-hamburguesa.toggle .barra:nth-child(3) {
        transform: rotate(45deg) translate(-7px, -7px);
    }
}
/* --- SECCIÓN TARJETAS DE CONTACTO --- */

.tarjetas-contacto-section {
    background-color: #f8f6ed; /* El fondo crema suave de tu imagen */
    padding: 80px 20px;
}

.grid-tarjetas-contacto {
    display: grid;
    /* Crea columnas automáticas que se adaptan al tamaño. Mínimo 300px de ancho */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Diseño base de la tarjeta */
.tarjeta-item {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 40px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); /* Sombra casi invisible para dar profundidad */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; /* Quita el subrayado si es un enlace */
    display: flex;
    flex-direction: column;
}

/* Efecto hover SOLO para las tarjetas que son enlaces (WhatsApp y Correo) */
.enlace-tarjeta:hover {
    transform: translateY(-8px); /* Salto hacia arriba al pasar el ratón */
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    cursor: pointer;
}

/* El círculo oscuro del icono */
.icono-circulo {
    width: 55px;
    height: 55px;
    background-color: #4a515a; /* Color pizarra oscuro de la imagen */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

/* Tipografía de la tarjeta */
.tarjeta-item h3 {
    color: #111827; /* Casi negro */
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: left; /* Sobrescribimos el centrado de tus h3 generales */
}

.texto-principal {
    color: #111827;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.texto-secundario {
    color: #6b7280; /* Gris medio para el texto de relleno */
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Adaptación para móviles */
@media (max-width: 768px) {
    .grid-tarjetas-contacto {
        grid-template-columns: 1fr; /* Una sola columna en móviles */
    }
    .tarjeta-item {
        padding: 30px;
    }
}

/* === BOTÓN LLAMAR EN HEADER === */
.btn-llamar {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: #ffffff !important;
    padding: 8px 18px !important;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(82, 166, 136, 0.3);
}

.btn-llamar:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(82, 166, 136, 0.45);
    color: #ffffff !important;
}

.btn-llamar::after {
    display: none !important;
}

.btn-llamar svg {
    flex-shrink: 0;
}

/* === FOOTER PREMIUM === */
.footer-premium {
    background: #1a1a1a;
    color: #d0d0d0;
    padding: 70px 20px 0;
    border-top: 4px solid var(--gold);
    text-align: left;
    font-family: 'Montserrat', sans-serif;
}

.footer-contenedor {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.3fr 1.2fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-col h4 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 1.25rem;
    margin-bottom: 22px;
    text-align: left;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #d0d0d0;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-marca .logo {
    font-size: 28px;
    margin-bottom: 18px;
    text-align: left;
}

.footer-marca p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #b0b0b0;
    margin-bottom: 22px;
}

.footer-redes {
    display: flex;
    gap: 12px;
}

.footer-redes a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(82, 166, 136, 0.15);
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-redes a:hover {
    background: var(--gold);
    color: #ffffff;
    padding-left: 0;
    transform: translateY(-3px);
}

.footer-contacto-lista li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d0d0d0;
    font-size: 0.95rem;
}

.footer-contacto-lista svg {
    color: var(--gold);
    flex-shrink: 0;
}

.footer-horario li {
    display: flex;
    justify-content: space-between;
    color: #d0d0d0;
    font-size: 0.95rem;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.footer-horario li:last-child {
    border-bottom: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 0;
    text-align: center;
}

.footer-bottom p {
    color: #888;
    font-size: 0.88rem;
    margin: 0;
}

footer.footer-premium {
    text-align: left;
    padding: 70px 20px 0;
    background: #1a1a1a;
    color: #d0d0d0;
    border-top: 4px solid var(--gold);
}

/* === BOTÓN FLOTANTE WHATSAPP === */
.whatsapp-flotante {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: wa-pulse 2s infinite;
}

.whatsapp-flotante:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.7);
    animation: none;
}

@keyframes wa-pulse {
    0% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5), 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 900px) {
    .footer-contenedor {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .btn-llamar span {
        display: none;
    }
    .btn-llamar {
        padding: 8px 12px !important;
    }
    .footer-contenedor {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-bottom: 40px;
    }
    .footer-marca .logo,
    .footer-marca p {
        text-align: center;
    }
    .footer-redes {
        justify-content: center;
    }
    .footer-col h4 {
        text-align: center;
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-col ul {
        text-align: center;
    }
    .footer-contacto-lista li {
        justify-content: center;
    }
    .whatsapp-flotante {
        width: 55px;
        height: 55px;
        bottom: 18px;
        right: 18px;
    }
    .whatsapp-flotante svg {
        width: 28px;
        height: 28px;
    }
    .nav-links .btn-llamar {
        margin: 10px auto;
        padding: 10px 24px !important;
    }
    .nav-links .btn-llamar span {
        display: inline;
    }
}
