﻿/* ==== FUENTES MODERNAS Y BASE ==== */
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:700,900|Montserrat:400,700&display=swap');

body {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    background: #f6f7fb;
    color: #232323;
    padding-top: 70px;
    padding-bottom: 30px;
    font-size: 18px;
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #1a2233;
    letter-spacing: -1px;
}

h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.12;
}

h2 {
    font-size: clamp(1.4rem, 2.5vw, 2.1rem);
}

h3 {
    font-size: 1.6rem;
}

/* === LAYOUT Y ESPACIADO === */
.body-content, .container {
    padding-left: 30px !important;
    padding-right: 30px !important;
    max-width: 1120px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 1.8rem;
    font-family: 'Playfair Display', serif;
    border-left: 6px solid #3477eb;
    padding-left: 14px;
    color: #21243d;
    background: transparent;
}

/* === NAVBAR === */
.navbar {
    background: #fff;
    box-shadow: 0 2px 12px rgba(33,40,70,0.06);
    border-bottom: 1px solid #ebebeb;
    padding: 0.7rem 1.5rem;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 2.1rem !important;
    font-weight: 900;
    color: #1a2233 !important;
    letter-spacing: -2px;
    margin-right: 2.5rem;
    display: flex;
    align-items: center;
}

    .navbar-brand img[alt="Logo IEmagazine"] {
        display: inline-block;
        vertical-align: middle;
        height: 38px;
        margin-right: 10px;
    }

        .navbar-brand img[alt="Logo IEmagazine"][src=""],
        .navbar-brand img[alt="Logo IEmagazine"]:not([src]) {
            display: none !important;
        }

.navbar-nav .nav-link {
    font-size: 1.15rem;
    font-weight: 700;
    color: #395179 !important;
    margin-right: 1.2rem;
    transition: color 0.2s;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: #3477eb !important;
    }

/* === BOTONES === */
.btn, .btn-primary {
    border-radius: 30px;
    padding: 0.5rem 1.6rem;
    font-weight: 700;
    background: linear-gradient(90deg, #3477eb, #395179);
    border: 1px solid #2d4f96;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(52,119,235,0.08);
    transition: background 0.2s, box-shadow 0.2s;
}

    .btn:hover, .btn-primary:hover {
        background: #263859;
        box-shadow: 0 4px 16px rgba(52,119,235,0.13);
    }

/* === CARDS === */
.card, .articulo-card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 4px 22px 0 rgba(40,60,160,0.10);
    margin-bottom: 1.3rem;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.18s, transform 0.18s;
    min-width: 0;
}

    .card:hover, .articulo-card:hover {
        box-shadow: 0 8px 34px 0 rgba(40,60,160,0.13);
        transform: translateY(-5px) scale(1.015);
    }

    .card-title, .articulo-card .card-title {
        font-family: 'Playfair Display', serif;
        font-size: 1.5rem;
        color: #1a2233;
        margin-top: 1rem;
        margin-bottom: 0.7rem;
        font-weight: 700;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .card-text, .articulo-card .card-text {
        font-size: 1.09rem;
        color: #384262;
        line-height: 1.7;
        margin-bottom: 1rem;
    }

/* === IMÁGENES === */
.article-img, .card-img-top, .card-img {
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    object-fit: cover;
    border-radius: 14px 14px 0 0;
    background: #e9eaf3;
    transition: filter 0.2s;
    display: block;
}

.articulo-card:hover .article-img,
.card:hover .card-img-top {
    filter: brightness(0.96) saturate(1.08) blur(0.5px);
}

/* === HERO GENÉRICO === */
.hero-section {
    position: relative;
    min-height: 240px;
    background: linear-gradient(100deg, #395179 0%, #3477eb 100%);
    border-radius: 22px;
    overflow: hidden;
    margin-bottom: 3rem;
    color: #fff;
    box-shadow: 0 8px 32px 0 rgba(52,119,235,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    flex-direction: column;
    text-align: center;
}

    .hero-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.35);
        z-index: 0;
    }

    .hero-section * {
        position: relative;
        z-index: 1;
    }

    .hero-section .hero-title {
        font-family: 'Playfair Display', serif;
        font-size: 2.6rem;
        color: #fff;
        margin-bottom: 0.6rem;
        margin-top: 0;
    }

    .hero-section .hero-desc {
        font-size: 1.22rem;
        color: #f6f7fb;
        margin-bottom: 1.3rem;
    }

    .hero-section .btn {
        background: #fff;
        color: #3477eb !important;
    }

/* === HERO PORTADA (con imagen + overlay) === */
.hero-section-portada {
    position: relative;
    height: 260px; /* altura reducida */
    overflow: hidden;
    border-radius: 18px;
    margin: 0 auto 2rem auto;
    color: #fff;
    box-shadow: 0 6px 22px rgba(52,119,235,0.18);
    max-width: 1120px; /* centrado con las cards */
}

    .hero-section-portada .hero-bg {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        border-radius: 18px;
    }

    .hero-section-portada .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.55);
    }

    .hero-section-portada .hero-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 20px;
        z-index: 2;
    }

    .hero-section-portada .hero-logo {
        max-height: 120px;
        background: #fff;
        padding: 8px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    }

    .hero-section-portada .hero-title {
        font-family: 'Playfair Display', serif;
        font-size: 3rem;
        font-weight: 900;
        margin-bottom: 10px;
        text-shadow: 0 3px 12px rgba(0,0,0,0.8);
    }

    .hero-section-portada .hero-subtitle {
        font-family: 'Montserrat', sans-serif;
        font-size: 1.4rem;
        max-width: 680px;
        margin: 0 auto 20px;
        text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    }

/* === PUBLICIDAD BANNERS === */
.publicidad-container {
    max-width: 1120px;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

    .publicidad-container img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        object-position: center;
        display: block;
    }

/* === FEATURE CARDS BAJO HERO === */
.feature-card {
    border: 1px solid #f0e6d2; /* borde sutil dorado */
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(40,40,90,0.08);
    padding: 2rem 1.5rem;
    height: 100%;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .feature-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 22px rgba(40,40,90,0.12);
    }

    .feature-card h5 {
        font-family: 'Playfair Display', serif;
        font-weight: 700;
        font-size: 1.3rem;
        margin-bottom: 0.9rem;
        color: #b8860b;
    }

    .feature-card p {
        font-size: 1.05rem;
        color: #384262;
        margin-bottom: 1.4rem;
        line-height: 1.6;
    }

    .feature-card .btn {
        background: #b8860b;
        color: #fff !important;
        font-weight: 700;
        border-radius: 30px;
        padding: 0.45rem 1.4rem;
        border: none;
        transition: background 0.2s ease;
        box-shadow: 0 2px 8px rgba(184,134,11,0.3);
    }

        .feature-card .btn:hover {
            background: #9c6d08;
            box-shadow: 0 4px 14px rgba(156,109,8,0.35);
        }

/* === FOOTER === */
.footer {
    background: linear-gradient(145deg, #1e1f2f, #2e3047);
    color: #fff;
    padding: 3rem 0 2rem 0;
    margin-top: 4rem;
    font-size: 1.06rem;
}

    .footer a, .footer a:visited {
        color: #ffe787;
        text-decoration: none;
        transition: color 0.15s;
    }

        .footer a:hover {
            color: #ffbf2a;
        }

.footer-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #ffe787;
    margin-bottom: 1rem;
    font-weight: 900;
}

/* === SOCIAL ICONS === */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 1.3rem;
}

    .social-icons a {
        display: inline-block;
        background: #3949ab;
        color: #fff;
        width: 40px;
        height: 40px;
        line-height: 40px;
        border-radius: 50%;
        text-align: center;
        font-size: 1.28rem;
        transition: background 0.18s;
    }

        .social-icons a:hover {
            background: #3477eb;
        }

/* === PAGINACIÓN === */
.pagination > li > a, .pagination > li > span {
    border-radius: 40px !important;
    margin: 0 0.2em;
    color: #3477eb;
    border: 1.4px solid #e1e1e1;
    background: #fff;
}

.pagination > li.active > a,
.pagination > li.active > span {
    background: #3477eb !important;
    color: #fff !important;
    border-color: #3477eb;
}

/* === FORMULARIOS === */
input, select, textarea {
    max-width: 100%;
    border-radius: 14px;
    border: 1.2px solid #e4e4e4;
    padding: 0.55em 1.15em;
    background: #f8fafd;
    font-size: 1.06rem;
    margin-bottom: 1.1em;
    transition: border 0.2s, box-shadow 0.2s;
}

    input:focus, select:focus, textarea:focus {
        border-color: #3477eb;
        box-shadow: 0 1px 8px rgba(52,119,235,0.07);
        outline: none;
    }

/* === MICROANIMACIONES === */
a, .btn, .card, .articulo-card, .navbar-nav .nav-link {
    transition: all 0.18s cubic-bezier(.25,.8,.25,1);
}

    a:hover {
        color: #3477eb;
        text-decoration: underline;
    }

::-webkit-scrollbar {
    width: 8px;
    background: #edeff6;
}

::-webkit-scrollbar-thumb {
    background: #c0c7d6;
    border-radius: 8px;
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
    .body-content, .container {
        padding-left: 9px !important;
        padding-right: 9px !important;
    }

    .hero-section {
        padding: 2rem 0.5rem;
        min-height: 140px;
    }

    .card, .articulo-card {
        margin-bottom: 1.1rem;
    }

    .footer {
        padding: 1.8rem 0 1.2rem 0;
    }

    .section-title, .hero-title, .newsletter-title {
        padding-left: 7px;
        font-size: 1.13rem;
    }

    .publicidad-container img {
        height: 140px; /* más compacta en tablet */
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 1.85rem;
    }

    h2 {
        font-size: 1.24rem;
    }

    .section-title {
        font-size: 1.17rem;
    }

    .navbar-brand {
        font-size: 1.2rem !important;
    }

    .card-img-top, .article-img {
        aspect-ratio: 16/9;
        height: auto;
    }

    .hero-section {
        font-size: 1rem;
        padding: 1.6rem 0.8rem;
    }

    .publicidad-container img {
        height: 120px;
    }
}

hr, .card hr, .articulo-card hr {
    border: none;
    margin: 0;
    height: 1px;
    background: #f4f5f9;
}

/* === Responsive navbar-brand para móviles === */
@media (max-width: 500px) {
    .navbar-brand {
        font-size: 1.3rem !important;
    }

        .navbar-brand img {
            height: 24px !important;
            margin-right: 7px !important;
        }

    .publicidad-container img {
        height: 100px;
    }
}

/* ==== ESTILOS PARA MENSAJES DE CONTACTO ==== */
.card.border-secondary {
    border-left: 6px solid #6c757d !important;
    background-color: #f9f9f9 !important;
}

    .card.border-secondary:hover {
        background-color: #f1f1f1 !important;
    }

.card.border-success {
    border-left: 6px solid #28a745 !important;
    background-color: #ffffff !important;
}

    .card.border-success:hover {
        background-color: #f8fdf8 !important;
    }

#mensajesAccordion .card-header .btn-link {
    font-size: 1rem;
    text-decoration: none;
    color: #333;
}

    #mensajesAccordion .card-header .btn-link:hover {
        text-decoration: underline;
        color: #000;
    }


