/* ---------------------------------- */
/* RAÍZ Y GLOBALES           */
/* ---------------------------------- */
:root {
    --bg-dark: #222222;       
    --accent-gold: #B19777;  
    --text-light: #F5F5F5;   
    --text-secondary: #AAAAAA;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* ---------------------------------- */
/* HEADER Y NAVEGACIÓN (Corregido) */
/* ---------------------------------- */
.main-header {
    background-color: rgba(50, 50, 50, 0.9); /* #323232 */
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent-gold);
    font-weight: 700;
    display: flex;
    align-items: center;
}
.logo-img {
    height: 35px;
    margin-right: 10px;
}

.main-nav a {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-light);
    margin: 0 1rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
}

.nav-login {
    display: inline-block; 
    border: 2px solid var(--accent-gold);
    padding: 8px 12px;
    border-radius: 5px;
    margin-left: 1rem;
    padding-bottom: 8px !important; 
    border-bottom: 2px solid var(--accent-gold) !important;
}
.nav-login:hover {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
}

/* ---------------------------------- */
/* HERO SLIDER (CORRECCIÓN DEFINITIVA) */
/* ---------------------------------- */
.hero-slider {
    height: 100vh; 
    display: flex;
    align-items: center;
    background-color: #111;
    position: relative;
    overflow: hidden; 
}
.slide {
    height: 100vh; 
    width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    box-shadow: inset 0 0 0 1000px rgba(34, 34, 34, 0.6);
    
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    
    /* Estado INICIAL (Zoom 110%) */
    transform: scale(1.1); 
    
    /* *** LA CORRECCIÓN CLAVE *** */
    /* Todas las transiciones se definen aquí, en el estado base */
    transition: opacity 1.5s ease-in-out, 
                visibility 1.5s ease-in-out, 
                transform 8s ease-out; /* 8s para el zoom */
    
    padding-top: 80px;
}
.slide:first-child {
    position: relative;
}
.slide.active {
    opacity: 1;
    visibility: visible;
    
    /* Estado FINAL (Zoom 100%) */
    transform: scale(1);
    
    /* Ya no se necesita 'transition' aquí, porque lo hereda de .slide */
}
.slide-caption {
    max-width: 60%;
}
.slide-caption h1 {
    font-size: 3.5rem;
    color: var(--accent-gold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.slide-caption p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}
.cta-button {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 5px;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.3s;
}
.cta-button:hover {
    background-color: #c9b08b;
    transform: translateY(-3px);
}

/* ---------------------------------- */
/* SERVICIOS DESTACADOS (sin cambios) */
/* ... (todo el CSS de featured-services) ... */
.featured-services {
    padding: 4rem 0;
    background-color: #2a2a2a;
    text-align: center;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    text-align: left;
}
.service-card {
    background-color: var(--bg-dark);
    padding: 2rem;
    border: 1px solid #444;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.service-card h3 {
    color: var(--accent-gold);
    font-size: 1.5rem;
}
.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}
.service-card a {
    font-weight: 700;
}

/* ---------------------------------- */
/* SECCIÓN CTA (INFERIOR) (sin cambios) */
/* ... (todo el CSS de cta-section) ... */
.cta-section {
    padding: 4rem 0;
    text-align: center;
    background-color: var(--bg-dark);
}
.cta-section h2 {
    font-size: 2.5rem;
}
.cta-button-light {
    background-color: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 5px;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
    display: inline-block;
    margin-top: 1rem;
}
.cta-button-light:hover {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
}

/* ---------------------------------- */
/* FOOTER (ACTUALIZADO)           */
/* ---------------------------------- */
.main-footer {
    background-color: #1a1a1a;
    padding: 3rem 0;
    border-top: 4px solid var(--accent-gold);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}
.footer-col p,
.footer-col .footer-contact-item { 
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}
.footer-col .footer-contact-item i { 
    color: var(--accent-gold);
    margin-right: 10px;
    width: 20px;
}
.footer-col .footer-contact-item a {
    color: var(--text-secondary);
    transition: color 0.3s;
}
.footer-col .footer-contact-item a:hover {
    color: var(--accent-gold);
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 0.5rem;
}
.footer-col ul li a {
    color: var(--text-secondary);
    transition: color 0.3s;
}
.footer-col ul li a:hover {
    color: var(--accent-gold);
}
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}
.social-icons a {
    color: var(--text-light);
    font-size: 1.8rem;
    transition: color 0.3s, transform 0.3s;
}
.social-icons a:hover {
    color: var(--accent-gold);
    transform: translateY(-3px);
}
.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ---------------------------------- */
/* RESPONSIVE (sin cambios)           */
/* ... */
@media (max-width: 992px) {
    .slide-caption { max-width: 80%; }
    .slide-caption h1 { font-size: 2.8rem; }
}
@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #323232; 
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
    }
    .main-nav.is-active { display: flex; }
    .main-nav a {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
        padding: 1rem 0;
    }
    .main-nav a:hover, .main-nav a.active {
        background-color: var(--accent-gold);
        color: var(--bg-dark);
        border-bottom: none;
    }
    .nav-login {
        border: none !important; 
        margin: 0.5rem 0;
        padding: 1rem 0 !important;
        width: 100%;
        text-align: center;
    }
    .nav-login:hover {
        background-color: var(--accent-gold);
        color: var(--bg-dark) !important;
        border: none !important;
    }
    .menu-toggle { display: block; }
    .slide-caption {
        max-width: 100%;
        text-align: center;
    }
    .slide-caption h1 { font-size: 2.2rem; }
    .slide-caption p { font-size: 1rem; }
}

/* ---------------------------------- */
/* PÁGINA FORMULARIO (sin cambios)    */
/* ... */
.form-page-container {
    padding-top: 120px;
    padding-bottom: 4rem;
    min-height: 100vh;
}
.form-page-container h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.form-page-container p {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}
.main-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: #2a2a2a;
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid #444;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-light);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: #333;
    border: 1px solid #555;
    border-radius: 5px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
}
.form-group select {
    appearance: none;
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 5px rgba(177, 151, 119, 0.5);
}
.form-divider {
    border: 0;
    border-top: 1px solid #444;
    margin: 2rem 0;
}
.main-form .cta-button {
    width: 100%;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
}
.cta-button-nav {
    background-color: var(--accent-gold);
    color: var(--bg-dark) !important;
    padding: 8px 12px;
    border-radius: 5px;
    margin-left: 1rem;
    font-weight: 700;
    transition: background-color 0.3s, color 0.3s;
}
.cta-button-nav:hover {
    background-color: #c9b08b;
    color: var(--bg-dark) !important;
    border-bottom: none !important;
}

/* ---------------------------------- */
/* SELECTOR PRESUPUESTO (con iconos)  */
/* ... */
.selector-container {
    text-align: center;
    margin-bottom: 2.5rem;
}
.selector-container h2 {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}
.selector-container p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.tipo-cliente-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
}
.tipo-cliente-selector input[type="radio"] {
    display: none;
}
.selector-card {
    border: 2px solid #555;
    border-radius: 8px;
    transition: border-color 0.3s, background-color 0.3s;
}
.selector-card label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    cursor: pointer;
    text-align: center;
    width: 100%;
    height: 100%;
}
.selector-card label .card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
}
.selector-card:hover {
    border-color: var(--accent-gold);
    background-color: #2a2a2a;
}
.selector-card:hover .card-icon {
    transform: translateY(-5px);
}
.tipo-cliente-selector input[type="radio"]:checked + label {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
}
.tipo-cliente-selector input[type="radio"]:checked + label .card-title {
    color: var(--bg-dark);
}
.tipo-cliente-selector input[type="radio"]:checked + label .card-icon {
    transform: scale(1.1);
}
.selector-card label .card-icon {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    transition: transform 0.3s, color 0.3s;
    width: 60px;
    height: 45px;
    line-height: 45px;
    color: var(--accent-gold);
}
.tipo-cliente-selector input[type="radio"]:checked + label .card-icon {
    transform: scale(1.1);
    color: var(--bg-dark); 
}

/* ---------------------------------- */
/* PÁGINAS ESTÁTICAS (sin cambios)    */
/* ... */
.page-container {
    padding-top: 120px;
    padding-bottom: 4rem;
    min-height: 80vh;
}
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}
.page-header h1 {
    font-size: 2.8rem;
    color: var(--accent-gold);
}
.page-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}
.text-image-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    align-items: center;
}
.text-content ul {
    list-style: none;
    padding-left: 0;
}
.text-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}
.text-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-gold);
    font-weight: 700;
}
.image-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid var(--accent-gold);
}
.service-list-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 3rem;
    background-color: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #444;
}
.service-list-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.service-list-text {
    padding: 2rem;
}
.service-list-text h3 {
    font-size: 1.8rem;
}
.gallery-filters {
    text-align: center;
    margin-bottom: 2rem;
}
.filter-btn {
    background: none;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: 700;
    transition: all 0.3s;
}
.filter-btn:hover,
.filter-btn.active {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #444;
    transition: transform 0.3s, opacity 0.3s;
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}
.gallery-item.hidden {
    display: none;
}
.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}
.contact-info-col .info-item {
    margin-bottom: 1.5rem;
}
.contact-info-col .info-item strong {
    color: var(--accent-gold);
    font-size: 1.1rem;
    display: block;
}
.contact-info-col .info-item p {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
}
.contact-info-col .info-item a {
    color: var(--text-light);
}
.map-container {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #555;
    margin-top: 1.5rem;
}
@media (max-width: 992px) {
    .text-image-split, .contact-layout {
        grid-template-columns: 1fr;
    }
    .service-list-item {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* ---------------------------------- */
/* TESTIMONIOS                        */
/* ---------------------------------- */
.testimonials-section {
    padding: 5rem 0;
    background-color: #1d1d1d; /* Un poco más oscuro que el gris de servicios */
    text-align: center;
}

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

.testimonial-card {
    background-color: var(--bg-dark);
    padding: 2rem;
    border: 1px solid #333;
    border-radius: 8px;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

/* Estrellas doradas */
.testimonial-card .stars {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

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

.testimonial-author h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--text-light);
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Comillas decorativas grandes */
.testimonial-card::before {
    content: '“';
    font-family: serif;
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 5rem;
    color: rgba(177, 151, 119, 0.1); /* Dorado muy transparente */
    line-height: 1;
}

/* ---------------------------------- */
/* MODAL DE ESTADO (ÉXITO/ERROR/AVISO) */
/* ---------------------------------- */
.status-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Por encima de todo */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.status-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.status-modal-content {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border-top: 5px solid var(--accent-gold); /* Toque de diseño ADY */
}

.status-modal-overlay.active .status-modal-content {
    transform: translateY(0);
}

.status-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

/* Fíjate en la 'i' que hemos añadido en medio */
.status-icon i.success { color: #2ecc71 !important; } /* Verde */
.status-icon i.error   { color: #e74c3c !important; } /* Rojo */
.status-icon i.warning { color: #f39c12 !important; } /* Naranja */

.status-title {
    color: #222;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.status-message {
    color: #555;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

.status-btn {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
    text-transform: uppercase;
}

.status-btn:hover {
    background-color: #c9b08b;
}

/* ---------------------------------- */
/* CHATBOT ADY (ESTILOS)              */
/* ---------------------------------- */

/* Botón flotante principal */
.ady-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px; /* Si el botón de WhatsApp te molesta, sube esto a 100px o ponlo a la izquierda */
    width: 60px;
    height: 60px;
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.3s, background 0.3s;
}

.ady-chat-btn:hover {
    transform: scale(1.1);
    background-color: #c9b08b;
}

/* Ventana del Chat */
.ady-chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 320px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    z-index: 9999;
    overflow: hidden;
    display: none; /* Oculto por defecto */
    flex-direction: column;
    border: 1px solid #ddd;
    font-family: var(--font-body);
    animation: slideUp 0.3s ease-out;
}

.ady-chat-window.active {
    display: flex;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cabecera del Chat */
.chat-header {
    background-color: var(--bg-dark);
    color: var(--accent-gold);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--accent-gold);
}

.chat-header h4 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
    font-weight: 700;
}

.chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

/* Cuerpo del Chat */
.chat-body {
    padding: 20px;
    background-color: #f9f9f9;
}

.chat-message {
    background-color: #e8e8e8;
    padding: 12px 15px;
    border-radius: 15px 15px 15px 0;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Opciones (Botones) */
.chat-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-option-btn {
    background-color: #fff;
    border: 1px solid var(--accent-gold);
    color: var(--bg-dark);
    padding: 12px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    text-align: left;
    padding-left: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-option-btn:hover {
    background-color: var(--accent-gold);
    color: #fff;
    transform: translateX(5px);
}

/* Ajuste para móvil */
@media (max-width: 480px) {
    .ady-chat-window {
        width: 90%;
        right: 5%;
        bottom: 100px;
    }
}