/* --- CSS Variables --- */
:root {
    --dark-bg: #111111;
    --light-bg: #fdfbf7;
    --accent-gold: #c59d5f;
    --text-dark: #222222;
    --text-light: #ffffff;
    --text-muted: #666666;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: normal;
}

/* --- Hero Section --- */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(17, 17, 17, 0.7), rgba(17, 17, 17, 0.7)), 
                url('Group.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
}

.hero h1 {
    font-size: 4rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 2rem;
}

/* --- Generic Section Headers --- */
.section-header, .philosophy {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 2rem 2rem;
}

.section-header h2, .philosophy h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-bg);
}

.section-header p, .philosophy p {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
}

.divider {
    width: 60px;
    height: 2px;
    background-color: var(--accent-gold);
    margin: 1.5rem auto 0;
}

.philosophy h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--accent-gold);
    margin: 1rem auto 0;
}

/* --- Recipes Grid --- */
.recipes-container {
    padding: 2rem 5% 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

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

.card {
    background-color: #fff;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
}

.card-image {
    height: 300px;
    background-color: #ddd;
    background-position: center;
    background-size: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image {
    transform: scale(1.05);
}
/* --- Barra de Búsqueda --- */
.search-section {
    text-align: center;
    padding: 0 2rem;
    max-width: 800px;
    margin: 0 auto 2rem; /* Separación antes de que empiecen las recetas */
}

#searchInput {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    outline: none;
    transition: all 0.3s ease;
}

/* Efecto dorado cuando haces clic en la barra */
#searchInput:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 5px 20px rgba(197, 157, 95, 0.2);
}

#searchInput::placeholder {
    color: #999;
}

/* --- Botones de Filtro --- */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--text-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: rgba(197, 157, 95, 0.1);
}

.filter-btn.active {
    background-color: var(--accent-gold);
    color: #fff;
    box-shadow: 0 5px 15px rgba(197, 157, 95, 0.3);
}
/* Placeholder images */
.img-udon { background-image: url('Images/Tacos.png'); }
.img-congee { background-image: url('Images/Cuca.png'); }
.img-scoby { background-image: url('Images/tapas.png'); }
.img-matcha { background-image: url('Images/mochi.png'); }
.img-focaccia { background-image: url('Images/Focaccia.png'); }
.img-papa { background-image: url('Images/papa.png'); }
.img-pasta { background-image: url('Images/Pasta.png'); }
.img-risotto { background-image: url('Images/Risotto.png'); }
.img-ravioles { background-image: url('Images/Ravioles.png'); }
.img-tangulu { background-image: url('Images/Tangulu.png'); }
.img-fideos { background-image: url('Images/Fideos.png'); }
.img-PanSLevadura { background-image: url('Images/PanNoLevadura.png'); }
.img-rollo { background-image: url('Images/SpringRoll.png'); }
.img-focaccia2 { background-image: url('Images/Focaccia2.png'); }
.img-chesecake { background-image: url('Images/Chesecake.png'); }
.img-canasta { background-image: url('Images/Canasta.png'); }
.img-naan { background-image: url('Images/naan.png'); }
.img-sopa { background-image: url('Images/Sopa.png'); }
.img-tacochino { background-image: url('Images/TacoChino.png'); }
.img-dip { background-image: url('Images/Dip1.png'); }
.img-dip2 { background-image: url('Images/Dip2.png'); }
.img-mango { background-image: url('Images/Mango.png'); }
.img-matcha { background-image: url('Images/Matcha.png'); }
.img-capresse{ background-image: url('Images/Caprese.png'); }
.img-alfajores { background-image: url('Images/Alfajores.png'); }
.img-Kolokithokeftedes { background-image: url('Images/Kolokithokeftedes.png'); }
.img-cannoli { background-image: url('Images/cannoli.png'); }
.img-baklava { background-image: url('Images/Baklava.png'); }
.img-sandia { background-image: url('Images/sandia.png'); }
.img-cerdo { background-image: url('Images/cerdo.png'); }
.img-mousse { background-image: url('Images/mousse.png'); }
.img-mochi { background-image: url('Images/mochi.png'); }
.img-gravlax { background-image: url('Images/gravlax.png'); }
.img-tangyuan { background-image: url('Images/DulceChino.png'); }
.img-chesecakearandano { background-image: url('Images/ChesecakeArandano.png'); }
.img-arepa { background-image: url('Images/Arepa.png'); }
.img-sushi { background-image: url('Images/Sushi.png'); }
.img-cremabrocoli { background-image: url('Images/CremadeBrocoli.png'); }

/* --- Modal (Pop-up) para Recetas --- */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1000; /* Asegura que esté por encima de todo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fondo oscuro semi-transparente */
    backdrop-filter: blur(4px); /* Efecto de difuminado moderno */
    overflow: auto; 
}

.modal-content {
    background-color: #fff;
    margin: 5% auto; /* 5% de margen superior, centrado horizontalmente */
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 600px; /* Ancho máximo de la receta */
    width: 90%;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    animation: modalFadeIn 0.3s ease-out;
}

/* Animación para que aparezca suavemente */
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.close-modal:hover {
    color: var(--accent-gold, #c59d5f);
}

#modalTitle {
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-gold, #c59d5f);
}

.modal-body h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.modal-body ul, .modal-body ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}



.card-content {
    padding: 2rem;
    text-align: center;
    background: #fff;
    position: relative;
    z-index: 1;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-bg);
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    text-decoration: none;
    color: var(--accent-gold);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.btn:hover {
    border-bottom: 1px solid var(--accent-gold);
}



/* --- Timeline Section --- */
.timeline-section {
    padding: 2rem 5% 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 3rem auto 0;
}

/* The central vertical gold line */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--accent-gold);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Individual Event Containers */
.timeline-item {
    padding: 15px 45px;
    position: relative;
    width: 50%;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

/* The circular markers on the line */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--light-bg);
    border: 4px solid var(--accent-gold);
    border-radius: 50%;
    top: 30px; /* Aligns dot with the top of the card */
    z-index: 1;
}

.timeline-item.left::after {
    right: -10px;
}

.timeline-item.right::after {
    left: -10px;
}

/* The Event Content Box */
.timeline-content {
    padding: 2.5rem;
    background-color: #fff;
    border-radius: 8px; /* Slight rounding for an elegant look */
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.event-date {
    display: inline-block;
    color: var(--accent-gold);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
}

.timeline-content h3 {
    font-size: 1.6rem;
    color: var(--dark-bg);
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* --- Mobile Responsiveness for Timeline --- */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 20px; /* Pushes the main line to the left edge */
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 60px; /* Makes room for the line on the left */
        padding-right: 0;
    }
    
    .timeline-item.right {
        left: 0; /* Aligns the right-sided items back to the left */
    }

    /* Force all circular markers to sit on the newly positioned left line */
    .timeline-item.left::after, 
    .timeline-item.right::after {
        left: 10px; 
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
}


/* --- Team Section --- */
.team-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5% 6rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.team-member {
    text-align: center;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

/* --- Rounded Profile Pictures --- */
.member-image-wrapper {
    width: 220px;
    height: 220px;
    margin: 0 auto 1.5rem auto; /* Centers the circle horizontally */
    border-radius: 50%; /* Makes the image perfectly round */
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border: 5px solid #fff; /* Optional: gives a nice frame effect */
}

.member-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* Keeps the face in focus */
    transition: transform 0.5s ease;
}

.team-member:hover .member-image-wrapper img {
    transform: scale(1.08); /* Slight zoom on hover */
}

.member-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.member-info .role {
    display: block;
    color: var(--accent-gold);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.member-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Footer --- */
footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    text-align: center;
    padding: 3rem 2rem;
}

footer p {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* --- Responsive Tweaks --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .section-header, .philosophy { padding: 3rem 1.5rem; }
    .team-grid { gap: 2rem; }
}