:root {
    --azul-mariano: #B3CEE5;
    --azul-fuerte: #5B8FB9;
    --texto: #555;
    --blanco: #ffffff;
}

body {
    font-family: 'Quicksand', sans-serif;
    color: var(--texto);
    margin: 0;
    overflow-x: hidden; 
}

/* --- BANNER DE INICIO --- */
.hero-banner {
    height: 90vh; 
    min-height: 550px;
    background: linear-gradient(to right, rgba(43, 86, 124, 0.7), rgba(179, 206, 229, 0.3)), 
                url('fondo3.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    margin-top: -1px; 
}

h1, h2 {
    font-family: 'Playfair Display', serif;
    color: var(--azul-fuerte);
}

.hero-banner h1 {
    color: white !important;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-banner p {
    color: white !important;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}

.tagline-light {
    color: #d1e3f0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    color: var(--azul-fuerte) !important;
}

/* --- BOTONES --- */
.btn-primary-mariano {
    background-color: var(--azul-mariano);
    border: none;
    color: white !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary-mariano:hover {
    background-color: var(--azul-fuerte);
    transform: scale(1.05);
}

/* --- SECCIÓN HISTORIA --- */
.firma {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.8rem;
    color: var(--azul-fuerte);
}

.foto-perfil {
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* --- TARJETAS DE GALERÍA --- */
.card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    width: 100%;
    height: 300px; 
    object-fit: cover; 
    object-position: center; 
}

.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

/* --- AJUSTES PARA CELULAR (RESPONSIVE) --- */

@media (max-width: 768px) {
    /* 1. Ajuste Banner Principal */
    .hero-banner {
        height: 70vh; 
        min-height: 450px;
        text-align: center;
    }

    .hero-banner h1 {
        font-size: 2.2rem !important;
    }

    /* 2. Galería de 2 columnas (Vista idéntica a tu captura) */
    .card-img-top {
        height: 160px !important; /* Altura ideal para que quepan 2 por fila */
    }

    .row.g-3 {
        --bs-gutter-x: 0.6rem; /* Reduce el espacio entre tarjetas a los lados */
        --bs-gutter-y: 0.6rem; /* Reduce el espacio entre tarjetas arriba/abajo */
    }

    .card-body {
        padding: 10px !important;
    }

    .card-body p {
        font-size: 0.85rem !important; /* Texto un poquito más chico para que no rompa */
        margin-bottom: 8px !important;
    }

    .btn-sm {
        font-size: 0.7rem !important;
        padding: 6px 5px !important;
    }

    /* 3. Foto de perfil ajustada */
    .foto-perfil {
        max-width: 70%;
        margin-bottom: 25px;
    }

    /* 4. Títulos de secciones */
    h2 {
        font-size: 1.6rem !important;
    }
}