/* ==========================================
   TIPOGRAFÍAS Y VARIABLES GLOBALES
========================================== */

@font-face {
    font-family: 'Boomme';
    src: url('../fonts/boomme.woff2') format('woff2'),
         url('../fonts/boomme.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

#hero-campus-day {
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}

#videoHeader {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    object-fit: cover;
}

h1, h2, h3, p, a {
    font-family: 'DM sans';
}

:root {
    --color-green-btn: #33CC99;
    --color-dark-bg: #111111;
    --color-campus-pink: #E682C8;
    --color-virtual-red: #EC2426;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'DM Sans', sans-serif;
    background-color: #FFFFFF;
    color: #222222;
    overflow-x: hidden;
}

.cd-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.img-fluid{
    max-width: 100%;
}

.mb-0{
    margin-bottom: 0px !important;
}

.mb-2{
    margin-bottom: 15px;
}

.mb-3{
    margin-bottom: 30px;
}

/* ==========================================
   1. HERO SECTION
=========================================== */
.cd-hero-section {
    position: relative;
    width: 100%;
    height: 480px;
    background-image: url('../../imagenes/fondo-hero.webp?id=2');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}

.cd-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    padding: 0;
}

.cd-hero-main-title-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.cd-logo-img {
    max-height: 160px;
    margin-bottom: 35px;
}

.cd-hero-subtitle {
    font-size: 1.6rem;
    color: #FFFFFF;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.cd-hero-date {
    color: #FFFFFF;
    font-size: 0.95rem;
    background: 1A1A1A;
    background: linear-gradient(90deg,rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
    padding: 6px 16px;
    border-radius: 20px;
    margin: 0;
}

.cd-hero-characters-left img,
.cd-hero-characters-right img {
    max-height: 220px;
}

@media(max-width:767px){
    .cd-logo-img {
        max-height: 360px;
    }

    .cd-hero-section {
        height: unset;
    }

    .cd-hero-section {
        padding: 80px 40px;
    }
}

/* ==========================================
   2. INTRO SECTION
=========================================== */
.cd-intro-section {
    padding: 80px 0;
    background-color: #fff;
    background-size: cover;
    text-align: center;
}

.cd-intro-top-tag {
    font-family: 'Boomme';
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #000;
    margin-bottom: 5px;
}

.cd-intro-heading {
    font-size: 18px;
    color: #000;
    margin: 0 0 20px 0;
}

.cd-intro-center-graphics {
    position: relative;
    display: inline-block;
    margin: 10px 0;
}

.intro-character {
    max-height: 160px;
}

.cd-intro-text-block {
    max-width: 650px;
    margin: 20px auto 40px auto;
}

.cd-intro-bold {
    font-size: 18px;
    line-height: 1.4;
    color: #111;
    margin-bottom: 25px;
}

.cd-intro-desc {
    font-size: 16px;
    line-height: 1.5;
    color: #555;
    margin: 0;
}

/* Banner negro con rayo */
.cd-banner-black {
    background-image: url('../../imagenes/fondo-textura-gris.webp'); /* o fondo oscuro con textura */
    background-color: #181818;
    border-radius: 12px;
    max-width: 850px;
    margin: 0 auto;
    padding: 32px 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.banner-content-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.banner-ray {
    width: 70px;
    margin-right: 15px;
}

.banner-text-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.banner-t1 {
    font-family: 'Boomme';
    font-size: 25px;
    color: #fff;
    line-height: 1;
}


.cd-btn-banner {
    background-color: #33CC99;
    color: #FFFFFF;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.3s;
}
.cd-btn-banner:hover { background-color: #2eb88a; }

@media (max-width: 768px) {
    .cd-banner-black {
        padding: 25px 20px;
    }
    .banner-content-inner {
        flex-wrap: wrap;
    }
    .banner-ray {
        width: 55px;
        margin-right: 12px;
        flex-shrink: 0;
    }
    .banner-text-group {
        flex: 1;
        min-width: 0;
    }
    .banner-t1 {
        font-size: 21px;
    }
    .cd-btn-banner {
        flex: 0 0 100%;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        margin-top: 20px;
    }
    .cd-intro-section {
        padding: 80px 0 0 0;
    }
}

/* ==========================================
   3. ACTIVIDADES SECTION
=========================================== */
.banner-campusday{
    width: 100%;
    height: auto;
    margin: 30px 0;
}

.cd-activities-section {
    background-size: cover;
    background-position: center;
    padding: 60px 20px;
}

.cd-act-title {
    font-size: 30px;
    font-family: 'Boomme';
    color: #000;
    margin: 0 0 15px 0;
    letter-spacing: 2px;
}

.cd-act-subtitle {
    font-size: 1rem;
    color: #fff;
    background-color: #000;
    font-family: 'Boomme';
    margin-bottom: 25px;    
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-block;
}

.cd-activities-box {
    font-family: 'Boomme';
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.3;
    color: #000;
}

.cd-first {
  /* Boomme normal / bold */
}
.cd-rest {
  /* Boomme + variante alternativa condensada */
}

.cd-activities-layout {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 10fr;
  align-items: center;
  gap: 40px;
}
.cd-activities-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cd-activities-illustration img {
  width: 100%;
  max-width: 140px;
  height: auto;
  display: block;
}
.cd-activities-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .cd-activities-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .cd-activities-illustration {
    order: 1;
  }
  .cd-activities-content {
    order: 2;
    text-align: center;
  }
  .cd-activities-illustration img {
    max-width: 120px;
  }
}

/* ==========================================
   4. TARJETAS (FLIPCARDS)
=========================================== */

.star-deco {
    width: 90px;
}

.star-left { left: -60px; top: 20px; }
.star-right { right: -60px; top: 20px; }

.cd-cards-section {
    padding: 70px 0;
    background-color: #FFFFFF;
}

.cd-cards-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 50px;
}

.flip-card {
    background-color: transparent;
    width: 480px;
    height: 320px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    box-sizing: border-box;
}

.flip-card-front h3 {
    font-family: 'DM Sans';
    font-size: 22px;
    color: #FFFFFF;
    text-align: center;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    line-height: 1.15;
    font-weight: 400;
}

.flip-card-front span{
    font-size: 35px;
    letter-spacing: 1px;
}

.font-boomme{
    font-family: 'Boomme';
}

.bg-campus-color { background-color: var(--color-campus-pink); }
.bg-virtual-color { background-color: var(--color-virtual-red); }

.flip-card-back {
    transform: rotateY(180deg);
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    padding: 35px;
}

.back-content h4 {
    font-size: 1.8rem;
    color: #FFFFFF;
    margin: 0 0 10px 0;
    line-height: 1;
}

.back-content p {
    font-size: 0.95rem;
    color: #FFFFFF;
    line-height: 1.4;
    margin: 0 0 20px 0;
}

.cd-btn-card {
    background-color: #FFFFFF;
    color: #222;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.cd-center-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.cd-btn-main-green {
    background-color: #33CC99;
    color: #FFFFFF;
    padding: 14px 38px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(51, 204, 153, 0.3);
}

@media (max-width: 768px) {
    .cd-cards-grid {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    .flip-card {
        width: 100%;
        max-width: 480px;
    }
}

/* ==========================================
   5. VIDEO SECTION
=========================================== */
.cd-video-section {
    padding: 50px 0 80px 0;
    background-color: #FFFFFF;
}

.vsc-sec-title{
    color: #FFFFFF;
    font-weight: 400;
}
.cd-video-card {
    width: 100%;
    max-width: 900px;   
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}
.cd-video-info {
    background-color: #000000;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.cd-video-info .cd-sec-title {
    margin: 0 0 12px 0;
    color: #FFFFFF;
    text-align: left;
}
.cd-video-info .video-play-link {
    display: block;
    width: 100%;
    text-decoration: none;
}
.v-logo {
    display: block;
    width: 100%;
    max-width: 260px;
    height: auto;
    margin: 0 auto;
}
.cd-video-youtube {
    position: relative;
    background-image: url('../../imagenes/fondo-link-a-youtube.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.play-btn-circle {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}
.play-btn-circle img {
    width: 90px;
    height: auto;
}
.cd-video-youtube:hover .play-btn-circle {
    transform: scale(1.1);
}

.cd-bottom-star-deco {
    position: relative;
    justify-content: center;
    align-items: center;
    margin-top: 100px;
    min-height: 140px;
}
.estrella-final {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: auto;
    z-index: 1;
}
.footer-spacing {
    position: relative;
    z-index: 2;
    margin: 0;
    text-align: center;
    letter-spacing: 1px;
}
@media (max-width: 768px) {
    .cd-video-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .cd-video-info {
        padding: 35px 30px;
    }
    .v-logo {
        max-width: 220px;
    }
    .cd-video-youtube {
        min-height: 250px;
    }
}