/* Home page specific styles moved from Index.cshtml */
.hero-parallax {
    position: relative;
    min-height: 100vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* parallax background layer */
.hero-bg-parallax {
    position: absolute;
    inset: 0;
    background-image: url('/img/Portada.jpg');
    background-size: cover;
    background-position: center bottom;
    background-attachment: local;
    background-repeat: no-repeat;
    will-change: transform;
    z-index: 0;
    /* Scale up to accommodate parallax movement */
    height: 120%;
    width: 100%;
    top: -10%;
    transform-origin: center top;
}

/* dark overlay */
.hero-parallax::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 4rem 1rem;
}

.category-figure {
    transition: transform .25s ease, box-shadow .25s ease;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    padding: 1rem;
    text-align: center;
    margin: 0;
}

.category-figure img { max-height: 72px; width: auto; }

.category-figure:hover { transform: translateY(-6px); box-shadow: 0 10px 25px rgba(0,0,0,.12); }

/* Regional cards with background images */
.region-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    transition: transform .3s ease, box-shadow .3s ease;
    height: 100%;
}

.region-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.region-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.region-card-image {
    position: relative;
    width: 100%;
    padding-top: 66.67%;
    overflow: hidden;
    background-color: #f0f0f0;
}

.region-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    transition: transform .3s ease;
}

.region-card:hover .region-card-image::after {
    transform: scale(1.08);
}

.region-card-content {
    padding: 1.5rem 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.region-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.region-card-description {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
    margin: 0;
}

/* accessible skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: .5rem 1rem;
    z-index: 9999;
    transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* Actualidad Empresarial Section */
.actualidad-section {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
}

/* Sponsor scroller styles */
.sponsor-scroller { overflow: hidden; }
.sponsor-scroller-viewport { overflow: hidden; position: relative; }
.sponsor-scroller-list { display: flex; gap: 1rem; align-items: center; list-style: none; padding: 0; margin: 0; will-change: transform; }
.sponsor-item { flex: 0 0 auto; width: 160px; display: flex; justify-content: center; }
.sponsor-figure { display:flex; flex-direction:column; align-items:center; gap:0.5rem; background:transparent; border-radius:8px; padding:0.25rem; }
.sponsor-logo { width: 100%; height: auto; max-height: 120px; object-fit: contain; display:block; background:#fff; padding:0.35rem; border-radius:6px; box-shadow:0 6px 18px rgba(0,0,0,0.08); }
.sponsor-name { font-size:0.8rem; color:#555; text-align:center; margin:0; }

@media (max-width: 767px) {
  .sponsor-item { width: 110px; }
  .sponsor-logo { max-height: 88px; }
}

/* Note: Article card styles moved to blog-shared.css for reusability */

@media (max-width: 767px) {
    .hero-content { padding: 2rem 0.5rem; }
    .hero-parallax { min-height: 80vh; }
    .region-card-title { font-size: 1.1rem; }
    .region-card-content { padding: 1.25rem 1rem; }
    
    .section-title { font-size: 1.75rem; }
    .section-subtitle { font-size: 1rem; }
}
