/* Variables de color: Paleta Teal, Aqua y Gris */
:root {
    --color-primary: #1990df;     /* Dark Teal / Navy Elegante (Fondo principal/botones) */
    --color-secondary: #00bcd4;   /* Aqua Brillante (Accento/Destacado) */
    --color-accent: #ff6f00;      /* Naranja/Oro Oscuro (CTA de Contacto) */
    --color-background: #f5f5f5;  /* Gris Suave (Fondo general) */
    --color-text: #333;
    --color-dark-text: #1a1a1a;
    --color-white: #ffffff;
    --color-shadow: 0 6px 15px rgba(0, 0, 0, 0.1); 
}

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

body {
    font-family: 'Poppins', sans-serif; /* Nueva fuente */
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
}

/* Header (Fijo y limpio) */
.header {
    background-color: var(--color-white); /* Fondo blanco limpio */
    border-bottom: 1px solid #ddd;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    color: var(--color-text);
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Estilos para el contenedor del logo (asegura que esté visible) */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.header-logo {
    height: 75px; /* Logo un poco más pequeño */
    width: auto; 
    filter: none; /* Quitamos el filtro para un look más limpio */
}

.nav a {
    color: var(--color-text);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    transition: color 0.3s;
}

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

.nav-contact-cta {
    background-color: var(--color-accent); /* Botón de contacto destacado */
    color: var(--color-white) !important;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.nav-contact-cta:hover {
    background-color: #e66000;
}

/* --- SECCIÓN HERO MODERNO con EFECTO PARALLAX --- */
.hero-moderno {
    height: 100vh;
    background-image: url('fondox.jpg'); 
    background-attachment: fixed; 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 65px; 
}

.hero-overlay-moderno {
    background-color: rgba(0, 0, 0, 0.65); /* Oscuro más profundo */
    padding: 50px 20px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-overlay-moderno h1 {
    font-size: 4rem; 
    color: var(--color-white);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-overlay-moderno h2 {
    font-size: 1.4rem;
    color: var(--color-secondary); /* Aqua brillante */
    margin-bottom: 40px;
    font-weight: 400;
    letter-spacing: 1px;
}

.cta-button-modern {
    display: inline-block;
    background-color: var(--color-secondary);
    color: var(--color-dark-text);
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.cta-button-modern:hover {
    background-color: #008fa3;
    transform: translateY(-2px);
}

/* --- SECCIÓN DE MODELOS DESTACADOS (Cuadrícula con Vida) --- */
.modelos-destacados {
    padding: 80px 5%;
    text-align: center;
    background-color: var(--color-background); /* Fondo gris suave */
}

.modelos-destacados h3 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.modelos-destacados p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
}

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

.modelo-card {
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); 
    overflow: hidden;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border: 1px solid #f0f0f0;
}

/* Efecto de vida al pasar el mouse */
.modelo-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.modelo-card img {
    width: 100%;
    height: 220px; 
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease-out;
}

/* Efecto de Zoom de la imagen al hacer hover */
.modelo-card:hover img {
    transform: scale(1.05);
}

.modelo-card h4 {
    color: var(--color-primary);
    padding: 15px 15px 5px;
    font-size: 1.2rem;
    font-weight: 600;
}

.modelo-card .precio-oferta {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-accent); 
    padding: 0 15px 15px;
}

.modelo-card a {
    display: block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 12px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.modelo-card a:hover {
    background-color: #003e33;
}

/* --- ESTILO DEL RIBBON (Cinta de Destacado) --- */
.modelo-destacado-ribbon:before {
    content: "OFERTA EXCLUSIVA";
    position: absolute;
    top: 40px;
    right: -30px;
    padding: 5px 30px;
    background-color: var(--color-secondary);
    color: var(--color-dark-text);
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transform: rotate(45deg);
    z-index: 10;
}

/* --- SECCIÓN DE COTIZACIÓN (ESTILO MINIMALISTA) --- */
.cotizacion-section {
    padding: 80px 5%;
    background-color: var(--color-white); /* Fondo blanco para contraste */
    display: flex;
    justify-content: center;
}

.quote-card {
    background-color: var(--color-background); /* Tarjeta en gris suave */
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 550px;
    border-top: 5px solid var(--color-primary);
}

.quote-card h2 {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 5px;
    font-size: 1.8rem;
    font-weight: 700;
}

.form-subtext {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--color-dark-text);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--color-white);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 5px rgba(0, 188, 212, 0.3);
    outline: none;
}

.submit-button {
    width: 100%;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 14px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #003e33;
}

/* --- SECCIÓN DE CONTACTO (ESTILO MODERNO DE TARJETAS) --- */
.contact-section-modern {
    background-color: var(--color-primary); /* Dark Teal como fondo base */
    color: var(--color-white);
    padding: 40px 5%;
    display: flex;
    justify-content: space-around;
    gap: 20px;
    text-align: center;
}

.contact-item-modern {
    background-color: var(--color-white); /* Tarjetas blancas */
    color: var(--color-dark-text);
    padding: 25px 20px;
    border-radius: 8px;
    flex: 1;
    max-width: 320px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.contact-item-modern:hover {
    transform: translateY(-5px);
}

.contact-item-modern h4 {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1.1rem;
}

/* Destacar el item de contacto principal (Teléfono) */
.primary-contact-modern {
    background-color: var(--color-secondary); /* Aqua brillante para la CTA */
    color: var(--color-dark-text);
}

.primary-contact-modern h4 {
    color: var(--color-dark-text);
}

.primary-contact-modern p {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-dark-text); 
}

.contact-item-modern p {
    font-size: 1rem;
    color: #555;
    margin-top: 5px;
}


/* Footer */
.footer-modern {
    text-align: center;
    padding: 15px;
    background-color: var(--color-dark-text);
    color: #bbb;
    font-size: 0.8rem;
}

/* Responsividad */
@media (max-width: 992px) {
    .hero-overlay-moderno h1 {
        font-size: 2.8rem;
    }
    .hero-overlay-moderno h2 {
        font-size: 1.2rem;
    }
    .nav {
        display: none; 
    }
    .header {
        justify-content: center;
    }
    .modelos-grid {
        grid-template-columns: 1fr;
    }
    .contact-section-modern {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .contact-item-modern {
        max-width: 100%;
        width: 90%;
    }
}

/* --- ESTILOS PARA MENSAJES DE ESTADO DE FORMULARIO --- */
.success-message {
    background-color: #e6f7e9;
    color: #38761d;
    border: 1px solid #73a942;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.error-message {
    background-color: #fcebeb;
    color: #cc0033;
    border: 1px solid #d88a8a;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}


/* ---------- MODAL DE IMAGEN AMPLIADA ---------- */
.modal-img {
    display: none;
    position: fixed;
    z-index: 3000;
    padding-top: 80px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
}

.modal-content-img {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 0 20px #000;
    animation: fadeIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 40px;
    color: #fff;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover {
    color: #ccc;
}

/* Animación */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* ----- CARRUSEL MULTI-IMAGEN ----- */
.carousel-container {
    position: relative;
    text-align: center;
}

.carousel-btn {
    cursor: pointer;
    position: absolute;
    top: 100%;
    font-size: 50px;
    font-weight: bold;
    color: white;
    transform: translateY(-50%);
    user-select: none;
    padding: 10px;
    transition: 0.3s;
}

#prev {
    left: 20px;
}

#next {
    right: 20px;
}

.carousel-btn:hover {
    color: #ccc;
}

/* --- BOTÓN FLOTANTE WHATSAPP --- */
.whatsapp-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 70px;
    height: 70px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-button img {
    width: 38px;
    height: 38px;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
/* ------- SLIDER DE FOTOS -------- */
.slider-section {
    width: 100%;
    padding: 40px 0;
    background: #f5f5f5;
}

.slider-container {
    max-width: 900px;
    margin: auto;
    position: relative;
}

.slide {
    display: none;
}

.slide img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 10px;
}

/* Flechas */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-size: 32px;
    font-weight: bold;
    transition: 0.3s;
    user-select: none;
    border-radius: 5px;
    background-color: rgba(0,0,0,0.4);
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.7);
}

.prev { left: 15px; }
.next { right: 15px; }

/* Animación suave */
.fade {
    animation-name: fade;
    animation-duration: 1.2s;
}

@keyframes fade {
    from {opacity: 0.5;}
    to {opacity: 1;}
}

