body {
    padding: 0;
    margin: 0;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url("/images/ubam-cei/oxford/oxford.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    padding: 0 80px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    backdrop-filter: blur(2px);
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title-container {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 25px;
}

.hero-title {
    font-size: clamp(40px, 10vw, 88px);
    font-weight: 700;
    color: var(--color-ubam-white);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.hero-subtitle {
    font-family: "Oleo Script", serif;
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 500;
    color: var(--color-ubam-white);
    margin: 0;
    line-height: 1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    letter-spacing: clamp(0.5px, 0.3vw, 2px);
}

.oxford-logo {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.hero-description {
    font-size: 18px;
    color: var(--color-ubam-white);
    margin-bottom: 40px;
    line-height: 1.7;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-weight: 400;
}

/* ===================================
   FEATURES SECTION
   =================================== */
.features-section {
    position: relative;
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 52px;
    font-weight: 700;
    color: #1A3854;
    margin-bottom: 20px;
}

.section-title-accent {
    font-size: 52px;
    font-weight: 700;
    color: var(--color-ubam-blue);
    margin-left: 12px;
}

.section-description {
    font-size: 18px;
    color: #666;
    margin-top: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ===================================
   FEATURE CARDS
   =================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1300px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 48px 32px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #E8F4F8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4A9FD8, #3D8BC7);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-image {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    box-shadow: 0 8px 24px rgba(74, 159, 216, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-image {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(74, 159, 216, 0.25);
}

.feature-card h3 {
    font-size: 20px;
    color: #1A3854;
    margin-bottom: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.feature-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ===================================
   ACREDITATION SECTION
   =================================== */
.acreditation-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 30px 20px;
}

.acreditation-title {
    font-family: "Oleo Script", serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--color-ubam-dark-blue);
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.acreditation-main-title {
    font-family: "Oleo Script", serif;
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.acreditation-main-title h3 {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-ubam-pink);
    margin: 0;
}

.acreditation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.bottom-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: -50px;
    margin-top: 2.2rem;
}

/* ===================================
   OXFORD CARDS (_OxfordCards.cshtml)
   =================================== */
.oxford-cards-grid {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.oxford-cards-grid[data-tipo*="OTE"] {
    --card-gradient: linear-gradient(135deg, #3B9DD8 0%, #2DD4BF 100%);
    --card-badge: 'OTE';
    --card-after: 'CERTIFICACIÓN';
}

.oxford-cards-grid[data-tipo*="Advanced"] {
    --card-gradient: linear-gradient(135deg, #A855F7 0%, #EC4899 100%);
    --card-badge: 'OTE Advanced';
    --card-after: 'CERTIFICACIÓN';
}

.oxford-cards-grid[data-tipo*="Placement Test"] {
    --card-gradient: linear-gradient(135deg, #EF4444 0%, #EC4899 100%);
    --card-badge: 'Placement Test';
    --card-after: 'CONSTANCIA';
}

.oxford-cards-grid[data-tipo*="Young Learners"] {
    --card-gradient: linear-gradient(135deg, #00d4ff 0%, #8B5CF6 100%);
    --card-badge: 'Young Learners';
    --card-after: 'CONSTANCIA';
}

.oxford-cards-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-border-cards, #4A9FD8);
}

.oxford-card-header {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 10px;
    padding: 40px 32px 32px;
    background: #F5F7FA;
    min-height: 208px;
}

.oxford-card-header::before {
    content: var(--card-badge);
    background: var(--card-gradient);
    display: inline-block;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    align-self: flex-start;
    letter-spacing: 0.5px;
}

.oxford-card-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1A2332;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    position: relative;
}

.oxford-card-title::after {
    content: var(--card-after);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #64748B;
    font-size: 15px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.5;
    letter-spacing: 1px;
    display: block;
    position: relative;
    top: 15px;
}

.container-fluid.d-flex {
    align-items: center;
    padding: 24px 32px;
    flex-direction: column;
    gap: 24px;
}

.container-fluid .container:first-child {
    order: 2;
}

.container-fluid .container:last-child {
    order: 1;
    display: flex;
}

.oxford-card-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}

.oxford-card-details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oxford-card-details li {
    font-size: 15px;
    color: #475569;
    padding: 0 0 0 32px;
    position: relative;
    line-height: 1.6;
    font-weight: 400;
}

.oxford-card-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--card-gradient);
}

.oxford-card-details li::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Card Level Tags */
.oxford-card-level {
    list-style: none;
    padding: 0;
    margin-left: auto;
    margin-top: -15px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.oxford-card-level li {
    font-size: 15px;
    border-radius: 5px;
    color: #ffffff;
    padding: 0 15px;
    line-height: 1.6;
    font-weight: 400;
    background: var(--card-gradient);
}

/* Images */
.card-image {
    width: 200px;
    max-height: 260px;
    border-radius: 20px;
    object-fit: cover;
    padding: 18px;
}

/* Footer & Price */
.oxford-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    background: #F5F7FA;
    border-top: 1px solid #E2E8F0;
    position: relative;
    transition: all 0.3s ease;
}

.oxford-card-price {
    font-size: 36px;
    font-weight: 700;
    color: #1A2332;
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 4px;
    position: relative;
}

.oxford-card-price::before {
    content: "PRECIO";
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
    letter-spacing: 1px;
    position: absolute;
    top: -18px;
    left: 25px;
}

/* Button Styles (Updated to work with anchor tag) */
.btn-subscribe {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    padding: 18px 50px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-ubam-white);
    text-transform: uppercase;
    letter-spacing: 4px;
    background-color: var(--color-ubam-dark-blue);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    overflow: hidden;
    line-height: 1.5;
}

.btn-subscribe:hover {
    background-color: var(--color-ubam-dark-blue);
    box-shadow: 0 4px 15px var(--color-ubam-gray);
    color: var(--color-ubam-white);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1400px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .acreditation-grid {
        gap: 40px;
    }

    .oxford-cards-grid {
        gap: 32px;
    }

    .oxford-card-header {
        padding: 36px 28px 28px;
    }

    .oxford-card-title {
        font-size: 26px;
    }

    .card-image {
        width: 180px;
        max-height: 240px;
    }
}

@media (max-width: 1200px) {
    .acreditation-section {
        padding: 60px 20px;
    }

    .acreditation-title {
        font-size: 36px;
    }

    .acreditation-main-title h3 {
        font-size: 32px;
    }

    .oxford-card-header {
        padding: 32px 24px 24px;
        min-height: 160px;
    }

    .oxford-card-title {
        font-size: 24px;
    }

    .container-fluid.d-flex {
        padding: 20px 24px;
        gap: 20px;
    }

    .card-image {
        width: 160px;
        max-height: 220px;
        padding: 15px;
    }

    .oxford-card-details li {
        font-size: 14px;
        padding-left: 28px;
    }

    .oxford-card-details li::before {
        width: 20px;
        height: 20px;
    }

    .oxford-card-price {
        font-size: 32px;
    }

    .oxford-card-footer {
        padding: 20px 24px;
    }
}

@media (max-width: 1000px) {
    .acreditation-title {
        font-size: 32px;
    }

    .acreditation-main-title h3 {
        font-size: 28px;
    }

    .acreditation-grid {
        grid-template-columns: 1fr;
    }

    .oxford-cards-grid {
        gap: 24px;
    }

    .oxford-card-header {
        padding: 28px 20px 20px;
        min-height: 150px;
    }

    .oxford-card-title {
        font-size: 22px;
    }

    .card-image {
        width: 150px;
        max-height: 200px;
    }

    .oxford-card-level {
        margin-top: -40px;
        gap: 10px;
    }

    .oxford-card-level li {
        font-size: 14px;
        padding: 0 12px;
    }

    .bottom-image {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        height: auto;
        padding: 100px 30px 120px;
        background-attachment: scroll;
    }

    .hero-content {
        padding: 32px 24px;
    }

    .hero-title-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .hero-title {
        font-size: 48px;
    }

    .oxford-logo {
        width: 80px;
        align-self: center;
    }

    .hero-subtitle {
        font-size: 56px;
    }

    .hero-description {
        font-size: 16px;
    }

    .features-section {
        padding: 80px 30px;
    }

    .section-title, .section-title-accent {
        font-size: 36px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .feature-card {
        padding: 40px 28px;
    }

    /* Cards Responsive */
    .acreditation-title {
        font-size: 28px;
    }

    .acreditation-main-title h3 {
        font-size: 24px;
    }

    .oxford-cards-grid {
        border-radius: 12px;
        gap: 20px;
    }

    .oxford-card-header {
        padding: 24px 20px 20px;
        min-height: auto;
    }

    .oxford-card-title {
        font-size: 20px;
    }

    .oxford-card-header::before {
        font-size: 12px;
        padding: 5px 14px;
    }

    .container-fluid.d-flex {
        padding: 20px;
        gap: 16px;
        flex-direction: column;
    }

    .oxford-card-center {
        flex-direction: column;
        gap: 20px;
    }

    .card-image {
        width: 140px;
        max-height: 180px;
        padding: 12px;
    }

    .oxford-card-details {
        gap: 10px;
    }

    .oxford-card-details li {
        font-size: 13px;
        padding-left: 26px;
    }

    .oxford-card-details li::before {
        width: 18px;
        height: 18px;
    }

    .oxford-card-details li::after {
        left: 7px;
        top: 4px;
        width: 4px;
        height: 9px;
    }

    .oxford-card-level {
        margin: 10px 0;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .oxford-card-level li {
        font-size: 13px;
        padding: 2px 10px;
    }

    .oxford-card-footer {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .oxford-card-price {
        font-size: 28px;
    }

    .oxford-card-price::before {
        font-size: 10px;
        top: -16px;
        left: 10px;
    }

    .btn-subscribe {
        padding: 15px 35px;
        font-size: 0.95rem;
        letter-spacing: 2px;
        width: 90%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 20px 100px;
    }

    .hero-content {
        padding: 24px 20px;
    }

    .hero-title {
        font-size: 40px;
    }

    .oxford-logo {
        width: 64px;
    }

    .hero-subtitle {
        font-size: 48px;
    }

    .features-section {
        padding: 60px 20px;
    }

    .section-title, .section-title-accent {
        font-size: 32px;
    }

    .acreditation-title {
        font-size: 24px;
    }

    .acreditation-main-title h3 {
        font-size: 20px;
    }

    .oxford-cards-grid {
        gap: 16px;
        border-radius: 10px;
    }

    .oxford-card-header {
        padding: 20px 16px 16px;
    }

    .oxford-card-title {
        font-size: 18px;
    }

    .oxford-card-header::before {
        font-size: 11px;
        padding: 4px 12px;
    }

    .container-fluid.d-flex {
        padding: 16px;
    }

    .card-image {
        width: 120px;
        max-height: 160px;
        padding: 10px;
        border-radius: 15px;
    }

    .oxford-card-details li {
        font-size: 12px;
        padding-left: 24px;
    }

    .oxford-card-details li::before {
        width: 16px;
        height: 16px;
    }

    .oxford-card-details li::after {
        left: 6px;
        top: 3px;
        width: 3px;
        height: 8px;
        border-width: 0 1.5px 1.5px 0;
    }

    .oxford-card-level li {
        font-size: 12px;
        padding: 1px 8px;
    }
    
    .oxford-card-footer {
        padding: 16px;
    }
    
    .oxford-card-price {
        font-size: 24px;
    }
}