body {
    background-color: #fde8ee;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif; /* Limpia y moderna */
    padding: 20px;
    margin-top: 130px; 
    overflow-x: hidden;
}

h1, h2 {
    font-family: 'Cinzel', serif; /* Elegancia pura */
    color: #fff9f2; /* O el color que prefieras para destacar */
    letter-spacing: 2px; /* Separa un poquito las letras para darle más estilo */
    
    /* --- AÑADE ESTO PARA QUITAR EL MARGEN DE H2 --- */
    margin: 0; 
}

h3 {
    font-family: 'Cinzel', serif; /* Elegancia pura */
    color: #fff9f2; /* O el color que prefieras para destacar */
    letter-spacing: 2px; /* Separa un poquito las letras para darle más estilo */
    margin: 0;
}

/* Estilos para la barra de navegación */
nav {
    background-color: #ffd1dc; 
    padding: 30px 20px;       
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 

    /* --- ESTO ALINEA TODO AL LADO --- */
    display: flex;             /* Activa el modo fila (Flexbox) */
    align-items: center;       /* Centra verticalmente la imagen y los textos */
    gap: 20px;                 /* Agrega una separación de 20px entre el logo y los enlaces */
    z-index: 1000; /* Un número muy alto para que nada lo tape */
}

.nav-logo {
    height: 100px;       /* Ajusta este valor (en píxeles) para darle la altura ideal */
    width: auto;        /* Esto hace que el ancho se adapte automáticamente sin deformar la imagen */
    vertical-align: middle; /* Alinea la imagen verticalmente con el texto de los enlaces */
}

/* --- SECCIÓN OPTIMIZADA DEL SLIDER (EFECTO VENTANA) --- */
/* ==========================================
   ESTRUCTURA HERO (LADO A LADO)
   ========================================== */

/* 1. El contenedor que agrupa el slider y tus textos */
.hero-section {
    background-color: #fdf5f7; /* Su tono crema/blanco original */
    padding-top: 80px;
    padding-bottom: 80px;
    min-height: 80vh;
    
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    box-sizing: border-box;

    /* --- ESTO HACE QUE CUBRA TODO EL ANCHO DE EDGE TO EDGE --- */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* 2. El Slider (Estrecho, vertical y estético) */
/* --- EL SLIDER (Ajuste de tamaño exacto) --- */
.slider-container {
    width: 350px;           /* Mantiene el ancho de tu ventana */
    height: 500px;          
    overflow: hidden;       /* Corta drásticamente lo que esté afuera */
    border-radius: 15px;    
    box-shadow: 0 8px 25px rgba(0,0,0,0.3); 
    position: relative;
    z-index: 1;
    flex-shrink: 0;         
}

/* El riel */
.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
}

/* CADA DIAPOSITIVA (Forzamos a que mida exactamente lo mismo que el contenedor) */
.slide {
    width: 350px;           /* <-- CAMBIO CLAVE: Pon exactamente el mismo ancho del contenedor */
    min-width: 350px;       /* <-- Evitamos que se encoja o estire */
    height: 100%;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;       /* Rellena todo el recuadro vertical sin deformar la foto */
    object-position: center; /* Centra la visualización de la imagen */
}


.text-container { 
    background-color: #ffd0dc; /* El color rosa que ya tienes */
    border-radius: 20px;       /* Las esquinas redondeadas que ya tienes */
    padding: 40px;             /* El colchón interno para que respire */
    box-sizing: border-box;    /* Controla que el padding no ensanche la caja */
    max-width: 1000px;
}

.text-container h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #4a2831;            /* Color oscuro elegante con excelente contraste */
}

.text-container p {
    font-size: 1.1rem;
    line-height: 1.6;          /* Separación cómoda entre líneas de texto */
    margin-bottom: 15px;
    color: #4a2831;            /* Color oscuro para que las letras se lean sin esfuerzo */
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none; /* Quita el subrayado del enlace */
}

/* Opcional: Si el texto dentro cambia de color al envolverlo en <a>, aseguramos su color */
.nav-brand h1, 
.nav-brand h3 {
    color: #ffffff; /* Ajusta el color que desees para el texto del logo */
}

/* --- 2. CONTENEDOR Y BOTONES DE NAVEGACIÓN --- */
.nav-links {
    display: flex;
    gap: 20px;
    margin-left: auto; /* Empuja los botones hacia la derecha del nav */
    margin-right: 80px;
}

/* Estilo para los botones/enlaces */
.nav-links a {
    text-decoration: none;
    color: #4a2831;                  /* Color oscuro y elegante acorde a tu diseño */
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;       /* Letras mayúsculas para mejor presencia */
    letter-spacing: 1.5px;
    padding: 8px 16px;
    border-radius: 20px;             /* Bordes suaves estilo píldora */
    transition: all 0.3s ease;       /* Transición suave para el hover */
}

/* Efecto al pasar el ratón por encima del botón */
.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.5); /* Sombra clara elegante */
    color: #2b141a;
}

html {
  scroll-behavior: smooth;
}


/* --- SECCIÓN CONOCE NUESTRO TRABAJO (3 COLUMNAS) --- */
#trabajo {
    background-color: #ffd0dc; 
    padding: 80px 40px;
    text-align: center;
    scroll-margin-top: 90px;
    padding-bottom: 100px;

    /* --- TRUCO DE ANCHO COMPLETO (FULL WIDTH) --- */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
}

#trabajo h2 {
    color: #4a2831; 
    text-align: center; 
    margin-bottom: 10px;
}

.subtitulo-seccion {
    color: #4a2831; 
    text-align: center; 
    margin-bottom: 40px;
}

/* Alinea las 3 columnas en horizontal (Botones | Slider | Texto) */
.trabajo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px; /* Espacio entre columnas */
    max-width: 1200px;
    margin: 0 auto;
}

/* 1. Botones en columna (Izquierda) */
.botones-trabajo {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
}

.btn-opcion {
    background-color: transparent;
    border: 2px solid #4a2831;
    color: #4a2831;
    padding: 12px 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    text-align: center;
    width: 200px;
}

.btn-opcion:hover,
.btn-opcion.active {
    background-color: #4a2831;
    color: #ffffff;
}

/* 2. Slider (Centro) */
.slider-trabajo-wrapper {
    position: relative;
    width: 380px;
    height: 480px;
    flex-shrink: 0;
}

.slider-trabajo-container {
    display: none; 
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.slider-trabajo-container.active {
    display: block;
}

.slider-trabajo-track {
    display: flex;
    width: 100%;
    height: 100%;
}

.slide-trabajo {
    min-width: 100%;
    height: 100%;
}

.slide-trabajo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 3. Texto Explicativo (Derecha) */
.texto-trabajo-wrapper {
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 30px;
    width: 350px;
    min-height: 250px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.texto-trabajo-item {
    display: none; /* Se ocultan por defecto */
}

.texto-trabajo-item.active {
    display: block; /* Se muestra solo el activo */
}

.texto-trabajo-item h3 {
    color: #4a2831;
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-align: left;
}

.texto-trabajo-item p {
    color: #4a2831;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
    margin: 0;
}

/* --- ETIQUETA ANTES / DESPUÉS --- */
.slider-trabajo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.etiqueta-estado {
    margin-top: 15px;
    background-color: #4a2831;
    color: #ffffff;
    padding: 6px 20px;
    border-radius: 20px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

/* ==========================================
   SECCIÓN CONTACTO
   ========================================== */
#contacto {
    background-color: #fde8ee; /* O el tono rosado suave que prefieras */
    padding: 80px 40px;
    text-align: center;
    scroll-margin-top: 90px;

    /* --- TRUCO DE ANCHO COMPLETO (FULL WIDTH) --- */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
}

.contacto-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 3 columnas de igual tamaño */
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0 auto;
    align-items: stretch; /* Mantiene la misma altura en los 3 bloques */
}

.contacto-col {
    background-color: #fdf5f7;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

/* 1. Columna Imagen */
.contacto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 2. Columna Información */
.contacto-info {
    padding: 30px 25px;
    text-align: left;
    justify-content: center;
}


.contacto-info h3 {
    font-family: 'Cinzel', serif;
    color: #4a2831;
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}

.info-item {
    margin-bottom: 15px;
}

.info-item strong {
    color: #4a2831;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 3px;
}

.info-item p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* 3. Columna Mapa */
.contacto-mapa {
    min-height: 300px;
}

.contacto-mapa iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Adaptación para pantallas chicas / Celulares */
@media (max-width: 992px) {
    .contacto-container {
        grid-template-columns: 1fr; /* Pasa a 1 columna vertical */
    }
    
    .contacto-mapa {
        height: 300px;
    }
}

/* --- TÍTULO DE CONTÁCTANOS --- */
#contacto h2 {
    color: #4a2831; /* El tono vino/marrón oscuro de las otras secciones */
    text-align: center;
    margin-bottom: 10px;
    font-family: 'Cinzel', serif;
}

#contacto .subtitulo-seccion {
    color: #4a2831; /* Garantiza que el subtítulo también use el tono oscuro */
    text-align: center;
    margin-bottom: 30px;
}

/* --- ESTILOS DE ENLACES DE CONTACTO --- */
.contacto-info .info-item a {
    color: #91616e;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.contacto-info .info-item a:hover {
    color: #8f4c5d; /* Tono un poco más claro al pasar el mouse */
    text-decoration: underline;
}

/* -- DISPLAY MOVIL --*/


@media screen and (max-width: 768px) {

    /* 1. Ajustes base del cuerpo */
    body {
        margin-top: 140px; /* Evita que la nav tape el inicio */
        padding: 0;
        overflow-x: hidden;
    }

    /* Anular trucos de 100vw que rompen el ancho en móviles */
    .hero-section, #trabajo, #contacto {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 40px 15px !important;
    }

    /* 2. Barra de Navegación */
    nav {
        flex-direction: column !important;
        padding: 15px 10px !important;
        gap: 10px !important;
    }

    .nav-logo {
        height: 65px !important; /* Logo más adecuado para cel */
    }

    .fraseiconica h1 {
        font-size: 1.6rem !important;
    }

    .fraseiconica h3 {
        font-size: 0.8rem !important;
    }

    .nav-links {
        margin: 0 !important;
        gap: 10px !important;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.75rem !important;
        padding: 6px 12px !important;
    }

    /* 3. Sección HERO (Inicio) */
    .hero-section {
        flex-direction: column !important;
        gap: 25px !important;
        min-height: auto !important;
    }

    .slider-container, 
    .slide {
        width: 100% !important;
        max-width: 320px !important;
        height: 400px !important;
    }

    .text-container {
        padding: 20px !important;
        width: 100% !important;
    }

    .text-container h2 {
        font-size: 1.5rem !important;
        text-align: center;
    }

    .text-container p {
        font-size: 0.95rem !important;
        text-align: left;
    }

    /* 4. Sección "Nuestros Trabajos" */
    .trabajo-container {
        flex-direction: column !important;
        gap: 25px !important;
        width: 100% !important;
    }

    .botones-trabajo {
        width: 100% !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .btn-opcion {
        width: 45% !important; /* Muestra 2 botones por fila */
        font-size: 0.75rem !important;
        padding: 10px 5px !important;
    }

    .slider-trabajo-wrapper {
        width: 100% !important;
        max-width: 320px !important;
        height: 400px !important;
    }

    .texto-trabajo-wrapper {
        width: 100% !important;
        min-height: auto !important;
        padding: 20px !important;
    }

    /* 5. Sección Contacto */
    .contacto-container {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .contacto-mapa {
        height: 250px !important;
    }
}