/* --- CONFIGURACIÓN GENERAL (CSS) --- */
:root {
    --primary-color: #2c2c2c; /* Texto oscuro */
    --accent-color: #8c7b68; /* Tono bronce/tierra inspirado en la pág 2 */
    --bg-color: #f4f1ea; /* Beige suave de fondo */
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif; /* Elegancia */
    --font-body: 'Montserrat', sans-serif; /* Modernidad */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--primary-color);
    line-height: 1.6;
}

/* --- TIPOGRAFÍA --- */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- NAVEGACIÓN --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: rgba(232, 228, 221, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

nav.scrolled {
    background-color: rgba(232, 228, 221, 1);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary-color);
    text-decoration: none;
    z-index: 1001;
}

/* Botón hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.language-selector {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 15px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-body);
}

.language-selector:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

nav.scrolled .language-selector {
    border-color: var(--primary-color);
}

/* --- HERO SECTION (Portada) --- */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
    z-index: 1;
    background-color: #8c7b68;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #8c7b68;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    z-index: 1;
}

/* Asegurar que las imágenes se adapten bien en móvil y tablet */
@media (max-width: 1024px) {
    .hero {
        background-color: #8c7b68;
    }
    
    .slide {
        background-size: contain;
        background-position: center center;
        background-attachment: scroll;
        background-color: #8c7b68;
    }
    
    /* Ajustar imágenes específicas para tablet */
    .slide-1,
    .slide-2,
    .slide-3,
    .slide-4,
    .slide-5,
    .slide-6,
    .slide-7,
    .slide-8,
    .slide-9,
    .slide-10 {
        background-size: contain !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-color: #8c7b68 !important;
    }
}

@media (max-width: 768px) {
    .hero {
        background-color: #8c7b68;
    }
    
    .slide {
        background-size: contain;
        background-position: center center;
        background-attachment: scroll;
        background-color: #8c7b68;
    }
    
    /* Ajustar imágenes específicas para móvil - usar contain para que se vea todo el contenido */
    .slide-1,
    .slide-2,
    .slide-3,
    .slide-4,
    .slide-5,
    .slide-6,
    .slide-7,
    .slide-8,
    .slide-9,
    .slide-10 {
        background-size: contain !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-color: #8c7b68 !important;
    }
}

@media (max-width: 480px) {
    .hero {
        background-color: #8c7b68;
    }
    
    .slide {
        background-size: contain;
        background-position: center center;
        padding: 0 10px;
        background-color: #8c7b68;
    }
    
    .slide-1,
    .slide-2,
    .slide-3,
    .slide-4,
    .slide-5,
    .slide-6,
    .slide-7,
    .slide-8,
    .slide-9,
    .slide-10 {
        background-size: contain !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-color: #8c7b68 !important;
    }
}

/* Asegurar que las imágenes de fondo se muestren */
.slide[class*="slide-"] {
    background-attachment: scroll;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2;
    pointer-events: none;
}

/* Ajustar z-index del overlay en móvil para que se vea sobre la imagen */
@media (max-width: 1024px) {
    .slide::after {
        z-index: 1;
    }
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Imágenes específicas para cada slide - Imágenes locales (slide_01.jpg a slide_10.jpg) */
.slide-1 {
    background-image: url('../images/slide_01.jpg') !important;
    background-color: #8c7b68;
    background-size: cover !important;
    background-position: center center !important;
    background-blend-mode: normal;
}

.slide-1::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2));
    z-index: 1;
    pointer-events: none;
}

.slide-2 {
    background-image: url('../images/slide_02.jpg') !important;
    background-color: #8c7b68;
    background-size: cover !important;
    background-position: center center !important;
    background-blend-mode: normal;
}

.slide-2::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2));
    z-index: 1;
    pointer-events: none;
}

.slide-3 {
    background-image: url('../images/slide_03.jpg') !important;
    background-color: #8c7b68;
    background-size: cover !important;
    background-position: center center !important;
    background-blend-mode: normal;
}

.slide-3::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2));
    z-index: 1;
    pointer-events: none;
}

.slide-4 {
    background-image: url('../images/slide_04.jpg') !important;
    background-color: #8c7b68;
    background-size: cover !important;
    background-position: center center !important;
    background-blend-mode: normal;
}

.slide-4::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2));
    z-index: 1;
    pointer-events: none;
}

.slide-5 {
    background-image: url('../images/slide_05.jpg') !important;
    background-color: #8c7b68;
    background-size: cover !important;
    background-position: center center !important;
    background-blend-mode: normal;
}

.slide-5::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2));
    z-index: 1;
    pointer-events: none;
}

.slide-6 {
    background-image: url('../images/slide_06.jpg') !important;
    background-color: #8c7b68;
    background-size: cover !important;
    background-position: center center !important;
    background-blend-mode: normal;
}

.slide-6::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2));
    z-index: 1;
    pointer-events: none;
}

.slide-7 {
    background-image: url('../images/slide_07.jpg') !important;
    background-color: #8c7b68;
    background-size: cover !important;
    background-position: center center !important;
    background-blend-mode: normal;
}

.slide-7::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2));
    z-index: 1;
    pointer-events: none;
}

.slide-8 {
    background-image: url('../images/slide_08.jpg') !important;
    background-color: #8c7b68;
    background-size: cover !important;
    background-position: center center !important;
    background-blend-mode: normal;
}

.slide-8::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2));
    z-index: 1;
    pointer-events: none;
}

.slide-9 {
    background-image: url('../images/slide_09.jpg') !important;
    background-color: #8c7b68;
    background-size: cover !important;
    background-position: center center !important;
    background-blend-mode: normal;
}

.slide-9::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2));
    z-index: 1;
    pointer-events: none;
}

.slide-10 {
    background-image: url('../images/slide_10.jpg') !important;
    background-color: #8c7b68;
    background-size: cover !important;
    background-position: center center !important;
    background-blend-mode: normal;
}

.slide-10::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2));
    z-index: 1;
    pointer-events: none;
}

/* Fallback si las imágenes no cargan - mostrar un gradiente */
.slide-1:not([style*="background-image"]),
.slide-2:not([style*="background-image"]),
.slide-3:not([style*="background-image"]) {
    background: linear-gradient(135deg, #8c7b68 0%, #6b5d4f 100%);
}

/* Forzar carga de imágenes de fondo */
.slide {
    will-change: opacity;
}

.slide-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    animation: fadeInUp 1s ease-out;
    max-width: 90%;
    padding: 20px;
    pointer-events: auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    letter-spacing: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-top: 0;
    margin-bottom: 40px;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    line-height: 1.6;
}

/* Controles del slider */
.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 100;
    pointer-events: none;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--white);
    transform: scale(1.1);
}

.slider-btn:active {
    transform: scale(0.95);
}

/* Dots del slider */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.dot.active {
    background: var(--white);
    width: 30px;
    border-radius: 6px;
}

.btn {
    margin-top: 0;
    padding: 15px 40px;
    border: 1px solid var(--white);
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* --- COLLECTIONS (Productos) --- */
.section {
    padding: 100px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.section-header span {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    height: 300px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Asegurar que las imágenes de las tarjetas se vean bien en todos los dispositivos */
@media (max-width: 1024px) {
    .card-img {
        background-size: cover;
        background-position: center;
    }
}

@media (max-width: 768px) {
    .card-img {
        background-size: cover;
        background-position: center;
        min-height: 200px;
    }
}

.card-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
    pointer-events: none;
}

.kitchen-img {
    background-color: #ddd;
    background-image: url('../images/slide_02_clean.png');
}

.table-img {
    background-color: #ddd;
    background-image: url('../images/slide_02.jpg');
}

.door-img {
    background-color: #ddd;
    background-image: url('../images/slide_03.jpg');
}

.vanity-img {
    background-color: #ddd;
    background-image: url('../images/slide_04.jpg');
}

.wardrobe-img {
    background-color: #ddd;
    background-image: url('../images/slide_05.jpg');
}

.countertop-img {
    background-color: #ddd;
    background-image: url('../images/slide_06_clean.png');
}

.card-content {
    padding: 25px;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 600;
    text-shadow: none;
}

.card-content p {
    color: #555;
    line-height: 1.6;
}

/* --- PHILOSOPHY (Origen) --- */
.philosophy {
    background-color: #e8e4dd; /* Tono más oscuro para contraste */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
}


.text-col, .img-col {
    flex: 1 1 50%;
    min-width: 300px;
}

.text-col {
    padding: 80px;
}

.img-col {
    height: 500px;
    background-color: #ddd;
    background-image: url('../images/slide_07.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Asegurar que la imagen de philosophy se vea bien en móvil */
@media (max-width: 768px) {
    .img-col {
        background-size: cover;
        background-position: center;
        min-height: 250px;
    }
}

/* --- FORMULARIO DE CONTACTO --- */
.contact-section {
    width: 100%;
    background-color: var(--white);
}

.contact-form-container {
    width: 100%;
    padding: 80px 50px;
    background-color: var(--white);
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-form-wrapper h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-subtitle {
    color: #666;
    margin-bottom: 40px;
    font-size: 0.95rem;
    font-style: italic;
}

.contact-form {
    text-align: left;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group .optional {
    font-weight: 400;
    font-size: 0.85rem;
    text-transform: none;
    color: #999;
    font-style: italic;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    background-color: var(--white);
    color: var(--primary-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(140, 123, 104, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
    display: none;
}

.form-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- FOOTER --- */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 50px;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
    display: block;
}

.footer-text {
    font-size: 0.9rem;
    opacity: 0.7;
    letter-spacing: 1px;
}

/* --- RESPONSIVE --- */

/* Tablet */
@media (max-width: 1024px) {
    nav {
        padding: 15px 30px;
    }
    
    .section {
        padding: 80px 30px;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
    
    .card-img {
        height: 250px;
    }
    
    .text-col {
        padding: 60px 40px;
    }
    
    .img-col {
        height: 400px;
    }
    
    .contact-form-container {
        padding: 60px 30px;
    }
    
    .slider-controls {
        padding: 0 20px;
    }
    
    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }
}

/* Móvil */
@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    /* Mostrar botón hamburguesa en móvil */
    .menu-toggle {
        display: flex;
    }
    
    /* Ocultar menú por defecto en móvil */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #e8e4dd;
        flex-direction: column;
        gap: 20px;
        padding: 80px 30px 30px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        align-items: flex-start;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1rem;
        padding: 10px 0;
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    .language-selector {
        margin-top: 10px;
        width: 100%;
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    /* Hero section */
    .hero {
        min-height: 500px;
        height: 100vh;
        max-height: 100vh;
    }
    
    .slide-content h1 { 
        font-size: 2rem; 
        letter-spacing: 2px;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .slider-controls {
        padding: 0 10px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .slider-dots {
        bottom: 15px;
        gap: 8px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .dot.active {
        width: 25px;
    }
    
    /* Secciones */
    .section {
        padding: 60px 20px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header span {
        font-size: 0.8rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .card-img {
        height: 250px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-content h3 {
        font-size: 1.1rem;
    }
    
    /* Philosophy section */
    .philosophy { 
        flex-direction: column-reverse; 
    }
    
    .text-col { 
        padding: 40px 20px; 
    }
    
    .text-col h2 {
        font-size: 1.5rem;
    }
    
    .img-col {
        height: 300px;
        min-width: 100%;
    }
    
    /* Footer */
    footer {
        padding: 40px 20px;
    }
    
    .footer-logo {
        font-size: 1.5rem;
    }
    
    .footer-text {
        font-size: 0.85rem;
    }
    
    .contact-form-container {
        padding: 50px 20px;
    }
    
    .contact-form-wrapper h3 {
        font-size: 1.6rem;
    }
    
    .contact-subtitle {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }
    
    .contact-section {
        padding: 0;
    }
}

/* Móvil pequeño */
@media (max-width: 480px) {
    nav {
        padding: 12px 15px;
    }
    
    .logo {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .nav-links {
        width: 85%;
        padding: 70px 20px 20px;
    }
    
    .hero {
        min-height: 400px;
    }
    
    .slide-content h1 { 
        font-size: 1.5rem; 
    }
    
    .slide-content p {
        font-size: 0.9rem;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .section {
        padding: 50px 15px;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .card-img {
        height: 200px;
    }
    
    .img-col {
        height: 250px;
    }
    
    .text-col {
        padding: 30px 15px;
    }
    
    .text-col h2 {
        font-size: 1.3rem;
    }
    
    .contact-form-container {
        padding: 50px 15px;
    }
    
    .contact-form-wrapper h3 {
        font-size: 1.5rem;
    }
    
    .contact-section {
        padding: 0;
    }
}

/* --- CHATBOT WIDGET --- */
.chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    font-family: var(--font-body);
}

.chatbot-button {
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    color: var(--white);
}

.chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background-color: var(--primary-color);
}

.chatbot-button svg {
    width: 28px;
    height: 28px;
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 600px;
    max-height: calc(100vh - 100px);
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.chatbot-window.active {
    display: flex;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-header {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.chatbot-header-content h4 {
    font-size: 1.1rem;
    margin: 0 0 5px 0;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
}

.chatbot-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 300;
}

.chatbot-close {
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    opacity: 0.8;
}

.chatbot-close:hover {
    opacity: 1;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #f9f9f9;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.message {
    display: flex;
    max-width: 80%;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.bot-message {
    align-self: flex-start;
}

.message-content {
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
    line-height: 1.4;
}

.user-message .message-content {
    background-color: var(--accent-color);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.bot-message .message-content {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 4px;
}

.message-content p {
    margin: 0;
    font-size: 0.9rem;
}

.message.typing .message-content {
    padding: 12px 16px;
}

.typing-indicator {
    display: flex;
    gap: 4px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.chatbot-input-container {
    padding: 15px;
    background-color: var(--white);
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.chatbot-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.3s ease;
}

.chatbot-input:focus {
    border-color: var(--accent-color);
}

.chatbot-send {
    width: 44px;
    height: 44px;
    background-color: var(--accent-color);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.chatbot-send:hover {
    background-color: var(--primary-color);
    transform: scale(1.05);
}

.chatbot-send:active {
    transform: scale(0.95);
}

.chatbot-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Responsive para chatbot */
@media (max-width: 768px) {
    .chatbot-widget {
        bottom: 15px;
        right: 15px;
    }

    .chatbot-button {
        width: 56px;
        height: 56px;
    }

    .chatbot-window {
        width: calc(100vw - 30px);
        max-width: 380px;
        height: calc(100vh - 100px);
        max-height: 600px;
        bottom: 76px;
        right: 0;
        border-radius: 16px 16px 0 0;
    }
}

@media (max-width: 480px) {
    .chatbot-window {
        width: 100vw;
        height: calc(100vh - 80px);
        bottom: 0;
        right: 0;
        border-radius: 16px 16px 0 0;
    }

    .chatbot-header {
        padding: 15px;
    }

    .chatbot-header-content h4 {
        font-size: 1rem;
    }

    .chatbot-subtitle {
        font-size: 0.8rem;
    }

    .chatbot-messages {
        padding: 15px;
    }

    .message {
        max-width: 85%;
    }
}


