/* ==========================================================================
   MODERN HOME CSS (API CAMPECHE) - PREMIUM REDESIGN
   ========================================================================== */

/* GLOBALS & COLORS */
:root {
    --guinda: #9f2241;
    --guinda-dark: #691c32;
    --dorado: #c3965d;
    --dorado-dark: #b3854c;
    --bg-light: #f4f6f9;
    --text-dark: #2d3748;
    --text-light: #718096;
}

.gob-modern-home {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

.gob-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.gob-container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HERO SECTION */
.gob-hero {
    position: relative;
    height: 75vh; /* Increased from 65vh */
    min-height: 550px; /* Increased from 500px */
    display: flex;
    align-items: flex-start; /* Align to the top */
    justify-content: center; /* Center horizontally */
    text-align: center; /* Center text */
    overflow: hidden;
    background-color: #000;
}

.gob-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
    opacity: 1; /* 100% original video brightness */
}

.gob-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.gob-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 1000px;
    padding: 20px;
    padding-top: 80px; /* Add space from the top edge */
}

.gob-hero-content h1 {
    font-family: 'Roboto Slab', 'Montserrat', serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.5px;
    color: #ffffff !important;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6), 0 10px 30px rgba(0, 0, 0, 0.85);
    text-align: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 60px; /* Reduced from 120px */
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: #fff;
    font-size: 24px;
    opacity: 0.8;
}

/* ANNOUNCEMENT BANNER */
.gob-announcement {
    padding: 0 0 30px 0; /* Reduced from 50px */
    background-color: var(--bg-light);
}

.announcement-card {
    background: #ffffff;
    border-left: 5px solid var(--dorado);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.announcement-icon {
    font-size: 3rem;
    color: var(--dorado);
}

.announcement-content {
    flex: 1;
}

.announcement-content h2 {
    color: var(--guinda);
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.announcement-content p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.announcement-action {
    flex-shrink: 0;
}

/* QUICK ACCESS CARDS */
.gob-quick-access {
    margin-top: 0;
    position: relative;
    z-index: 10;
    padding: 30px 0; /* Reduced from 60px */
    background: #ffffff;
}

.gob-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gob-card-new {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.gob-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.gob-card-top {
    background: #fcfcfc;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.gob-card-main-icon {
    font-size: 5rem;
    color: var(--guinda);
}

.gob-card-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 32px;
    height: 32px;
    background: #ffffff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--guinda);
    font-size: 0.95rem;
}

.gob-card-bottom {
    padding: 20px;
}

.gob-card-bottom h3 {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin: 0 0 10px 0;
    font-weight: 800;
}

.gob-card-bottom p {
    font-size: 0.85rem;
    color: #666666;
    margin: 0;
    line-height: 1.5;
}

/* WELCOME / ACERCA DE SECTION */
.gob-welcome-section {
    position: relative;
    padding: 30px 0; /* Reduced from 50px */
    background: var(--bg-light); /* Changed to light gray so the white card pops */
}

.gob-welcome-bg {
    display: none;
    /* Removed the blocky guinda background to blend better with the new quick access section */
}

.gob-welcome-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
    background: #fff;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
}

.welcome-text-box {
    flex: 1;
    min-width: 400px;
    padding: 60px;
    background: #fff;
}

.welcome-text-box .gob-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dorado);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.welcome-text-box h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--guinda-dark);
    line-height: 1.2;
    margin-bottom: 25px;
}

.welcome-text-box p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
}

.welcome-links {
    flex: 0 0 350px;
    background: var(--bg-light);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.welcome-link-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.welcome-link-item i {
    font-size: 24px;
    color: var(--dorado);
    margin-top: 5px;
}

.welcome-link-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 5px 0;
}

.welcome-link-item a {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.welcome-link-item a:hover {
    color: var(--guinda);
}

/* OPORTUNIDADES BENTO GRID */
.gob-opportunities {
    padding: 30px 0; /* Reduced from 50px */
}

.gob-bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.bento-image-side {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 500px;
    background-color: var(--text-dark);
}

.bento-right-image {
    background-size: cover;
    background-position: center;
    min-height: 500px;
    background-color: var(--text-dark);
}

.bento-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 100%);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.bento-image-overlay h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
}

.bento-image-overlay h2 span {
    color: var(--dorado);
}

.bento-image-overlay p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 400px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.gob-btn-solid {
    display: inline-block;
    background: var(--dorado);
    color: #fff;
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 30px;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s;
    align-self: flex-start;
}

.gob-btn-solid:hover {
    background: var(--dorado-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(195, 150, 93, 0.4);
}

.bento-stats-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.bento-stat-box {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.bento-stat-box:hover {
    transform: scale(1.02);
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.box-guinda {
    background: var(--guinda);
    color: #fff;
}

.box-gold {
    background: var(--dorado);
    color: #fff;
}

.box-dark {
    background: var(--text-dark);
    color: #fff;
}

.box-light {
    background: #fff;
    color: var(--text-dark);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1;
}

.bento-stat-box h4 {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin: 0;
}

.box-light h4 {
    color: var(--text-light);
}

/* NOTICIAS (SWIPER) */
.gob-news {
    padding: 40px 0; /* Reduced from 50px */
    background-color: var(--bg-light);
}

.gob-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.gob-section-header h2 {
    font-size: 2.5rem;
    color: var(--guinda-dark);
    font-weight: 800;
    margin-bottom: 15px;
}

.gob-divider {
    height: 4px;
    width: 60px;
    background: var(--dorado);
    margin: 0 auto;
    border-radius: 2px;
}

.gob-news-swiper {
    padding-bottom: 60px;
    padding-left: 15px;
    padding-right: 15px;
}

.gob-news-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.gob-news-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.02);
    width: 100%;
    display: flex;
    flex-direction: column;
}

.gob-news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.gob-news-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.gob-news-image img,
.gob-placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gob-placeholder-img {
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #a0aec0;
}

.gob-news-card:hover .gob-news-image img {
    transform: scale(1.1);
}

.gob-news-date {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--guinda);
    color: #fff;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.85rem;
    border-top-left-radius: 16px;
    z-index: 2;
}

.gob-news-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.gob-news-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.gob-news-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.gob-news-content h3 a:hover {
    color: var(--guinda);
}

.gob-news-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.gob-btn-outline {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid var(--dorado);
    color: var(--dorado);
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
}

.gob-btn-outline:hover {
    background: var(--dorado);
    color: #fff;
    box-shadow: 0 5px 15px rgba(195, 150, 93, 0.4);
}

.gob-news-all-btn-container {
    text-align: center;
    margin-top: 10px;
}

/* SWIPER CONTROLS */
.swiper-button-next,
.swiper-button-prev {
    color: var(--guinda) !important;
}

.swiper-pagination-bullet-active {
    background: var(--dorado) !important;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
}

/* ANIMATIONS */
.animate-fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.animate-slide-up {
    animation: slideUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .gob-bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-image-side {
        min-height: 400px;
    }

    .gob-welcome-bg {
        width: 100%;
        height: 50%;
    }

    .gob-welcome-content {
        flex-direction: column;
        gap: 0;
    }

    .welcome-links {
        width: 100%;
        flex: auto;
    }
}

@media (max-width: 992px) {
    .gob-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gob-hero-content h1 {
        font-size: 2.5rem;
    }

    .gob-quick-access {
        margin-top: 0;
        padding: 50px 0;
    }

    .gob-grid-4 {
        grid-template-columns: 1fr;
    }

    .bento-stats-side {
        grid-template-columns: 1fr;
    }

    .announcement-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        border-left: none;
        border-top: 5px solid var(--dorado);
    }
}