/* ==========================================================================
   🎨 ESTILOS INFOGRAFÍA DE CURADO - SFMATES
   ========================================================================== */

:root {
    --bg-page: #faf8f5;
    --text-main: #2b2523;
    --text-muted: #6d625e;
    --mate-brown: #5d4037;
    --accent-gold: #c6a664;
    --accent-gold-light: #fff8e1;
    --white: #ffffff;
    --card-shadow: 0 10px 25px rgba(93, 64, 55, 0.06);
    --border-radius: 12px;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* --- Hero Header --- */
.guia-header {
    background: linear-gradient(rgba(44, 34, 30, 0.75), rgba(44, 34, 30, 0.85)), url('../img/Algarrobo.webp.webp') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 90px 20px;
    margin-bottom: 40px;
}

.header-overlay {
    max-width: 800px;
    margin: 0 auto;
}

.subtitulo-tag {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    display: inline-block;
    margin-bottom: 10px;
}

.guia-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin: 0 0 12px 0;
    font-weight: 800;
}

.guia-header p {
    font-size: 1.1rem;
    color: #e5dfda;
    margin: 0;
}

/* --- Contenedor Global --- */
.guia-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Caja Introductoria --- */
.intro-box {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    text-align: center;
    margin-bottom: 50px;
    border-top: 4px solid var(--mate-brown);
}

.intro-box h2 {
    font-family: 'Playfair Display', serif;
    color: var(--mate-brown);
    margin-top: 0;
    font-size: 1.8rem;
}

.intro-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 750px;
    margin: 0 auto;
}

/* --- 📊 Grilla para las 2 Imágenes Guía --- */
.pasos-galeria {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.guia-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(93, 64, 55, 0.05);
}

.card-header-paso {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

.numero-guia {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 5px;
}

.card-header-paso h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--mate-brown);
    margin: 0;
}

/* --- Control de Tamaño y Centrado de Fotos --- */
.guia-imagen-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fdfcfb;
    border-radius: 8px;
    padding: 15px;
    box-sizing: border-box;
}

.guia-img {
    max-width: 260px;       /* Tamaño más chico controlado horizontal */
    max-height: 260px;      /* Tamaño más chico controlado vertical */
    width: auto;
    height: auto;
    object-fit: contain;    /* Calidad intacta, cero deformaciones */
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease;
}

.guia-card:hover .guia-img {
    transform: scale(1.03);
}

/* --- Sección de Tips --- */
.tips-section {
    background: var(--accent-gold-light);
    border: 1px solid #ffe082;
    padding: 35px;
    border-radius: var(--border-radius);
    margin-bottom: 50px;
}

.tips-section h3 {
    font-family: 'Playfair Display', serif;
    color: #b78103;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.tips-grid {
    display: flex;
    gap: 25px;
}

.tip-item {
    flex: 1;
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
}

.tip-item h4 {
    color: var(--mate-brown);
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1rem;
}

.tip-item p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.88rem;
}

/* --- Footer --- */
.guia-footer {
    text-align: center;
    padding: 25px 20px;
    background: #2c221e;
    color: #a89f9b;
    font-size: 0.8rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .pasos-galeria {
        grid-template-columns: 1fr; /* Se hace una sola columna en móviles */
        gap: 20px;
    }
    
    .guia-img {
        max-width: 220px;
        max-height: 220px;
    }

    .tips-grid {
        flex-direction: column;
    }
    
    .guia-header h1 {
        font-size: 2rem;
    }
}