/* =========================================
   VARIABLES Y RESET (Paleta Jade Griego)
   ========================================= */
:root {
    --bg-color: #F2F7F5;
    --bg-secondary: #E0EBE8;
    --text-main: #123830;       /* Jade oscuro */
    --text-secondary: #4A7067;
    --accent-color: #2D6A5E;
    --accent-light: #8FB3A9;    /* Jade claro para detalles */
    --gold-mute: #C5A065;       /* Toque dorado antiguo sutil */
    
    --font-serif: 'Georgia', 'Times New Roman', serif;
    --font-sans: system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* =========================================
   HEADER IMPONENTE CON MEANDRO Y DRAGONES
   ========================================= */
header {
    background-color: var(--text-main);
    color: var(--bg-color);
    padding: 1.5rem 0 1.5rem 0; /* Espacio extra abajo para el patrón */
    position: relative;
    text-align: center;
    border-bottom: 2px solid var(--bg-color)
}

/* Patrón Meandro (Llave Griega) en el borde inferior */
header::after {
    content: "";
    position: absolute;
    bottom: 0.15rem;
    left: 0;
    width: 100%;
    height: 18px; 
    
    background-color: transparent;
    
    /* CAMBIO CLAVE: Usar la ruta del archivo real */
    background-image: url('meandro.png');
    
    /* Asegura que la imagen se repita en horizontal */
    background-repeat: repeat-x;
    
    /* Tamaño CLAVE: Asegura que cada repetición sea exactamente 10x9 píxeles */
    background-size: 20px 18px; 
    
    border: none;
    opacity: 1; /* Al ser una imagen PNG ya debería tener la opacidad integrada, la ponemos a 1 */
}
/* IMPORTANTE: La Navbar debe tener posición relativa para que el 'after' sepa dónde ubicarse */
.navbar {
    background-color: var(--text-main); /* Tu verde jade claro */
    padding: 0.4rem 0;
    width: 100%;
    position: relative; /* Base para el meandro */
    display: block;
}

/* CONTENEDOR PARA ALINEAR A LA DERECHA */
.navbar .container {
    max-width: 1200px; /* O el ancho que uses en tu web */
    margin: 0 auto;
    display: flex;
    justify-content: flex-end; /* Empuja el menú a la derecha */
    padding-right: 5%; /* Ajusta este % para que no llegue al borde completo */
}

/* LISTA EN HORIZONTAL */
.navbar ul {
    display: flex;
    flex-direction: row; /* Dispuestas de forma horizontal */
    gap: 3rem;           /* Espaciado entre opciones */
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ESTILO DE LOS ENLACES */
.navbar a {
    color: var(--bg-color);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 500;
    transition: 0.3s ease;
}

.navbar a:hover {
    color: var(--accent-light);
}
/* Contenedor del Logo Central */
.header-subtext {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0rem;
    font-size: 0.65rem;       /* Tamaño muy pequeño (original suele ser 1rem) */
    letter-spacing: 0.25rem;  /* Mucho espacio entre letras para legibilidad y elegancia */
    text-transform: uppercase; /* Siempre en mayúsculas para este estilo */
    font-weight: 400;         /* Peso normal, no negrita */
    opacity: 0.85;            /* Un toque de transparencia para suavizarlo */
}
.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #fff;
}


/* =========================================
   CARRUSEL (CSS PURO - SIN JS)
   ========================================= */
.carousel-container {
    width: 100%;
    height: 500px; /* Altura del carrusel */
    overflow: hidden;
    position: relative;
    background-color: var(--bg-secondary);
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--border-color);
}

.carousel-track {
    display: flex;
    width: 300%; /* 3 slides = 300% */
    height: 100%;
    animation: slideShow 18s infinite ease-in-out;
}

.slide {
    width: 33.333%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

/* Fondos simulados para los slides */
.slide-1 { background: linear-gradient(rgba(18, 56, 48, 0.6), rgba(18, 56, 48, 0.6)), url('https://images.unsplash.com/photo-1455390582262-044cdead277a?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80'); background-size: cover; background-position: center; }
.slide-2 { background: linear-gradient(rgba(18, 56, 48, 0.6), rgba(18, 56, 48, 0.6)), url('https://images.unsplash.com/photo-1551029506-0807df4e2031?q=80&w=1034&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); background-size: cover; background-position: center; }
.slide-3 { background: linear-gradient(rgba(18, 56, 48, 0.6), rgba(18, 56, 48, 0.6)), url('https://images.unsplash.com/photo-1493246507139-91e8fad9978e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80'); background-size: cover; background-position: center; }

.slide h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.slide p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Animación Keyframes */
@keyframes slideShow {
    0%, 25% { transform: translateX(0); }       /* Slide 1 quieto */
    33%, 58% { transform: translateX(-33.333%); } /* Mueve al 2 y espera */
    66%, 91% { transform: translateX(-66.666%); } /* Mueve al 3 y espera */
    100% { transform: translateX(0); }          /* Vuelve al inicio */
}

/* =========================================
   RESTO DEL LAYOUT (Tarjetas, Container)
   ========================================= */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

.section-title {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.grid-talleres {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 6rem;
}

.card {
    background: white;
    border: 1px solid #C6DED6;
    border-radius: 2px;
    overflow: hidden;
    transition: 0.4s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(18, 56, 48, 0.1);
    border-color: var(--accent-color);
}

.card-img {
    height: 240px;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
}

.card-content { padding: 2rem; }
.card-title { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text-main); }
.card-desc { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 0.95rem; }
.card-link { font-weight: 700; color: var(--accent-color); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }

/* Botones y Forms (Heredados del estilo anterior pero refinados) */
.taller-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; margin-top: 4rem; }
.taller-sidebar { background: white; padding: 2rem; border: 1px solid #C6DED6; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.btn-primary { width: 100%; background: var(--text-main); color: #fff; padding: 1rem; border: none; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; transition: 0.3s; }
.btn-primary:hover { background: var(--accent-color); }
.form-control { width: 100%; padding: 0.8rem; margin-bottom: 1.5rem; border: 1px solid #ccc; }

footer { background: var(--text-main); color: var(--bg-secondary); text-align: center; padding: 4rem 0; margin-top: 4rem; border-top: 4px solid var(--accent-color); }

/* Responsive Header */
@media (max-width: 768px) {
    .logo { font-size: 1.5rem; }
    .dragon-icon { width: 30px; height: 30px; }
    .carousel-container { height: 400px; }
    .slide h2 { font-size: 2rem; }
}