/* === Variables de color === */
:root {
    --ocre: #8B0000;              /* Rojo oscuro */
    --amarillo: #FFD700;          /* Amarillo brillante */
    --animado: #FF4500;           /* Naranja-rojo para efectos */
    --gris: #C0C0C0;              /* Gris claro */
    --ocre-oscuro: #790015;       /* Ocre institucional más suave */
    --ocre-claro: #f9e8e6;        /* Fondo ocre muy claro */
    --amarillo-institucional: #FFED00;
    --negro: #08171C;
}

/* === Reset básico y fuentes === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--negro);
}

/* === Clases de color personalizadas === */
.bg-ocre           { background-color: var(--ocre); }
.bg-amarillo       { background-color: var(--amarillo); }
.bg-white          { background-color: #ffffff; }
.bg-light          { background-color: #f8f9fa; }
.bg-negro          { background-color: var(--negro); }
.bg-ocre-light     { background-color: var(--ocre-claro); }
.bg-amarillo-light { background-color: #fff9e6; }

.text-ocre         { color: var(--ocre-oscuro) !important; }
.text-amarillo     { color: var(--amarillo-institucional) !important; }
.text-white        { color: #ffffff !important; }
.text-black        { color: #111111 !important; }
.text-blanco       { color: #ffffff; }

/* === Borde izquierdo destacado === */
.border-ocre {
    border-left: 4px solid var(--ocre-oscuro);
}

/* === Transiciones y efectos generales === */
.transition-all {
    transition: all 0.3s ease;
}

/* === Animaciones === */
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
    50%  { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === Botón de chat === */
.chat-btn {
    animation: pulse 2s infinite;
}

/* === Botones personalizados === */
.btn-ocre {
    display: inline-block;
    padding: 14px 30px;
    background-color: var(--ocre-oscuro);
    color: white !important;
    font-family: 'Gilroy', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(121, 0, 21, 0.3);
    border: none;
}

.btn-ocre:hover {
    background-color: #5a0010;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(121, 0, 21, 0.4);
}

.btn-ocre:active {
    transform: translateY(0);
}

.btn-amarillo {
    background-color: var(--amarillo-institucional);
    color: var(--negro) !important;
    font-family: 'Gilroy', sans-serif;
    font-weight: 600;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-amarillo:hover {
    background-color: #FFE000;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 237, 0, 0.2);
}

/* === Tarjetas de correo (hover efecto) === */
.correo-card {
    background-color: white;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    height: 100%;
    font-family: 'TT Commons', sans-serif;
}

.correo-card h5 {
    font-family: 'Gilroy', sans-serif;
    color: var(--negro);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.correo-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

.correo-card i {
    color: var(--ocre-oscuro);
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background-color: rgba(121, 0, 21, 0.1);
    display: inline-block;
    transition: all 0.3s ease;
}

.hover-card:hover {
    background-color: var(--ocre-oscuro);
    color: white !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--amarillo-institucional);
}

/* === Tarjetas de correo (hover efecto) === */
.hover-card:hover {
    background-color: var(--ocre-oscuro);
    color: white !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--amarillo-institucional);
}

.hover-card:hover h5,
.hover-card:hover p,
.hover-card:hover i {
    color: white !important;
}

.hover-card:hover a {
    color: var(--amarillo-institucional) !important;
}

.hover-card:hover i {
    background-color: rgba(255, 237, 0, 0.2);
    transform: scale(1.1);
}

/* === Tarjetas de servicios === */
.card-servicio {
    display: block;
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.card-servicio:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-servicio i {
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 50%;
    background-color: var(--ocre);
    color: white;
    display: inline-block;
}

/* === Sección del Calendario === */
.calendario-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.calendario-section h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.calendario-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--amarillo);
    border-radius: 2px;
}

.calendario-section p {
    color: #555;
    font-family: 'Raleway', sans-serif;
}

.calendario-wrapper {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    animation: fadeIn 0.8s ease-in-out;
}

.calendario-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.calendario-iframe {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

/* === Responsive: Ajustes móviles === */
@media (max-width: 768px) {
    .calendario-iframe {
        height: 450px;
    }
    .calendario-section {
        padding: 40px 0;
    }
    .calendario-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .correo-card {
        padding: 20px 15px;
    }
    .correo-card h5 {
        font-size: 1rem;
    }
    .correo-card p {
        font-size: 0.85rem;
    }
}

.tutorial-img {
            border-radius: 12px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            max-width: 100%;
        }
        .tutorial-img:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
        }
        .bd-card {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 16px;
            background-color: #fff;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            border: 1px solid #e0e0e0;
        }
        .bd-card:hover {
            border-color: var(--amarillo);
            box-shadow: 0 6px 16px rgba(255, 215, 0, 0.15);
            transform: translateY(-2px);
        }
        .bd-logo {
            width: 50px;
            height: 50px;
            object-fit: contain;
            opacity: 0.9;
        }
        .bd-info h4 {
            margin: 0;
            font-size: 1.1rem;
            color: var(--ocre);
            font-weight: 600;
        }
        .bd-info p {
            margin: 4px 0 0;
            font-size: 0.9rem;
            color: #666;
        }