/* estilos.css */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Poppins:wght@400;700;900&display=swap');

:root {
    --primary: #FF6B35; /* Naranja enérgico (Sabor/Acción) */
    --secondary: #004E64; /* Azul Petróleo (Urbano/Elegante) */
    --accent: #25CED1; /* Turquesa (Frescura/Caribe) */
    --bg: #F4F4F4; /* Gris muy claro, moderno */
    --text: #222222;
    --white: #ffffff;
}

body {
    font-family: 'Open Sans', sans-serif; /* Lectura fácil */
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, .logo, .btn { 
    font-family: 'Poppins', sans-serif; /* Títulos potentes y modernos */
}

/* Header & Nav */
header {
    background: var(--white);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--primary); /* Línea de acento */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { 
    font-size: 1.6rem; 
    font-weight: 900; 
    color: var(--secondary); 
    text-decoration: none; 
    text-transform: uppercase;
    letter-spacing: -1px;
}
.logo span { color: var(--primary); }

nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
nav a { text-decoration: none; color: var(--text); font-weight: 700; font-size: 1rem; text-transform: uppercase; transition: 0.3s; }
nav a:hover { color: var(--primary); }

/* Botones */
.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 4px; /* Bordes menos redondos, más modernos */
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: 0.3s;
    border: none;
}
.btn:hover { 
    background: var(--secondary); 
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    height: 85vh;
    /* Imagen: Gente brindando y riendo en una terraza */
    background: linear-gradient(rgba(0,78,100,0.6), rgba(0,78,100,0.4)), url('https://images.unsplash.com/photo-1555939594-58d7cb561ad1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero h1 { 
    font-size: 3.5rem; 
    margin-bottom: 0.5rem; 
    line-height: 1.1;
    text-shadow: 2px 2px 0px var(--secondary);
}
.hero p { font-size: 1.4rem; margin-bottom: 2rem; font-weight: 400; max-width: 800px; }

/* Grid Layouts */
.container { max-width: 1200px; margin: 0 auto; padding: 60px 20px; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 10px; color: var(--secondary); font-weight: 900; }
.section-title p { color: #555; max-width: 700px; margin: 0 auto; font-size: 1.1rem; }

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

.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    border-bottom: 5px solid transparent;
}
.card:hover { 
    transform: translateY(-5px); 
    border-bottom: 5px solid var(--primary);
}
.card img { width: 100%; height: 220px; object-fit: cover; }
.card-content { padding: 25px; }
.card-tag { 
    background: var(--secondary); 
    color: var(--white); 
    padding: 4px 10px; 
    font-size: 0.7rem; 
    font-weight: 700; 
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

/* Formulario */
form { display: flex; flex-direction: column; gap: 20px; max-width: 700px; margin: 0 auto; background: white; padding: 40px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border-top: 5px solid var(--primary); }
input, textarea, select { padding: 15px; border: 2px solid #eee; border-radius: 4px; font-family: 'Open Sans', sans-serif; font-size: 1rem; background: #fafafa; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); background: #fff; }

/* Footer */
footer { background: var(--secondary); color: white; padding: 50px 20px; text-align: center; }
footer p { opacity: 0.8; }

/* --- ESTILOS DEL BLOG Y CARRUSEL (CORREGIDO) --- */

/* Contenedor del artículo */
.blog-header {
    text-align: center;
    padding: 40px 20px; /* Reducido un poco el padding */
    background-color: var(--secondary);
    color: white;
}
.blog-header h1 { font-size: 2.5rem; margin: 0; color: white; } /* Fuente un poco más pequeña */
.blog-header .subtitle { font-family: 'Open Sans', sans-serif; font-size: 1rem; margin-top: 10px; color: var(--accent); font-weight: bold; }

.blog-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 20px 40px 20px; /* Menos padding superior para que el texto suba */
    font-size: 1.1rem;
    color: #444;
}

.blog-content h2 { margin-top: 30px; color: var(--secondary); font-size: 1.8rem; }

/* El Carrusel de 9 fotos */
.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 20px auto 30px auto; /* Márgenes reducidos */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* --- AQUÍ ESTÁ EL CAMBIO PRINCIPAL DE ALTURA --- */
.carousel-slide {
    min-width: 100%;
    height: 350px; /* Altura fija más comedida para escritorio */
}

/* Para que en móviles sea más bajito aún */
@media (max-width: 768px) {
    .carousel-slide {
        height: 220px; 
    }
    .blog-header h1 { font-size: 2rem; }
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantiene la imagen llenando el hueco sin deformarse */
    object-position: center;
}

/* Botones del carrusel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4); /* Un poco más transparente */
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    border-radius: 50%;
    width: 40px; /* Botones un poco más pequeños */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.carousel-btn:hover { background: var(--primary); }
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* Indicadores (puntos abajo) */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    position: absolute; /* Los ponemos sobre la imagen abajo */
    bottom: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.5)); /* Sombra para que se vean */
}
.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    border: none; /* Quitamos bordes por si acaso */
}
.carousel-indicator.current-slide { background: var(--primary); }
