/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ad2535;
    --secondary-color: #2c396d;
    --accent-color: #ffd700;
    --gradient: linear-gradient(135deg, #ad2535 0%, #2c396d 100%);
    --text-dark: #1a1a1a;
    --text-light: #666;
    --background: #ffffff;
    --section-bg: #f8f9fa;
    --border-color: #e5e5e5;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: var(--accent-color);
    color: white;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%; /* Ajuste para enfocar mejor la parte importante de la imagen */
    animation: zoomEffect 15s infinite alternate;
    filter: brightness(0.9) contrast(1.15) saturate(1.1); /* Mejores valores para destacar la imagen */
}

@keyframes zoomEffect {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(172, 37, 53, 0.75) 0%, rgba(44, 57, 109, 0.8) 100%);
    animation: gradientPulse 8s infinite alternate;
}

@keyframes gradientPulse {
    0% {
        background: linear-gradient(135deg, rgba(172, 37, 53, 0.75) 0%, rgba(44, 57, 109, 0.8) 100%);
    }
    50% {
        background: linear-gradient(135deg, rgba(44, 57, 109, 0.7) 0%, rgba(172, 37, 53, 0.75) 100%);
    }
    100% {
        background: linear-gradient(135deg, rgba(172, 37, 53, 0.75) 0%, rgba(44, 57, 109, 0.8) 100%);
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.3;
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.gradient-text {
    background: linear-gradient(135deg, #ffd700 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    height: 500px;
    animation: slideInRight 1s ease-out;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.card-1 {
    top: 50px;
    right: 50px;
    animation-delay: 0s;
}

.card-2 {
    top: 200px;
    left: 50px;
    animation-delay: 1s;
}

.card-3 {
    bottom: 100px;
    right: 100px;
    animation-delay: 2s;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--section-bg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Theology Formation Styles */
.theology-formation {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.theology-formation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 100 100"><rect fill="none" width="100" height="100"/><path fill="%23f0f0f0" d="M30,10h5l-5,5l-5,-5h5zm40,0h5l-5,5l-5,-5h5zm-40,40h5l-5,5l-5,-5h5zm40,0h5l-5,5l-5,-5h5zm-20,-20h5l-5,5l-5,-5h5zm0,40h5l-5,5l-5,-5h5z"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

/* Academic Program Styles */
.academic-program {
    background: linear-gradient(120deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.05);
}

.program-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #555;
    font-size: 1.1rem;
}

.program-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
}

.program-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.program-header {
    padding: 30px;
    text-align: center;
    background: linear-gradient(120deg, #ffffff, #f5f5f5);
    border-bottom: 1px solid #eee;
}

.program-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
}

.program-description {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.highlight-text {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.program-tabs {
    display: flex;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 0 10px;
    position: sticky;
    top: 70px; /* Same as navbar height */
    z-index: 10;
}

.program-tab {
    padding: 20px 25px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.program-tab:hover .tab-icon,
.program-tab.active .tab-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(173, 37, 53, 0.3);
}

.program-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.program-tab:hover {
    color: var(--primary-color);
}

.program-tab.active {
    color: var(--primary-color);
}

.program-tab.active::after {
    width: 80%;
}

.program-content {
    padding: 30px;
}

.program-year {
    display: none;
    gap: 30px;
    flex-wrap: wrap;
}

.program-year.active {
    display: flex;
}

.semester {
    flex: 1;
    min-width: 280px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.semester:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.semester-header {
    padding: 18px 25px;
    color: white;
    position: relative;
    overflow: hidden;
}

.semester-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: skewX(-30deg);
    transition: all 0.5s ease;
}

.semester:hover .semester-header::before {
    left: -10%;
    transition: all 0.5s ease;
}

.semester-header h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.special-semester {
    position: relative;
    border: 2px solid var(--secondary-color);
    overflow: visible;
    transform: scale(1.05);
    z-index: 5;
}

.special-semester::before {
    content: 'Final';
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--secondary-color);
    color: white;
    padding: 3px 15px;
    font-size: 0.8rem;
    border-radius: 20px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.red-bg {
    background-color: var(--primary-color);
}

.blue-bg {
    background-color: var(--secondary-color);
}

.semester-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.course-list {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.course-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 20px;
}

.course-list li:last-child {
    border-bottom: none;
}

.course-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.program-completion {
    width: 100%;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    text-align: center;
}

.completion-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.completion-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.completion-container {
    width: 100%;
    margin-top: 40px;
    background: linear-gradient(135deg, #f5f7fa, #eef2f7);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.graduation-header {
    text-align: center;
    margin-bottom: 30px;
}

.grad-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    animation: bounce 2s infinite alternate;
}

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

.grad-title {
    font-size: 2rem;
    color: var(--secondary-color);
    margin: 0;
    position: relative;
    display: inline-block;
}

.grad-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.graduation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; /* Increased gap */
    justify-content: center;
    align-items: stretch; /* Ensure cards have same height if content differs */
    margin-top: 40px; /* Increased margin-top */
}

.grad-option {
    flex-basis: calc(50% - 60px); /* Adjust basis for 2 items with gap */
    max-width: 350px; /* Increased max-width for a more substantial look */
    min-width: 280px; /* Adjusted min-width */
    background: white;
    border-radius: 10px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.grad-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.grad-option:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.grad-option:hover::before {
    width: 100%;
    opacity: 0.1;
}

.option-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, rgba(172, 37, 53, 0.1), rgba(44, 57, 109, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.grad-option:hover .option-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.grad-option h4 {
    margin: 0 0 10px;
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.grad-option p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    transition: all 0.3s ease;
}

.grad-option:hover h4 {
    color: var(--primary-color);
}

.highlight-list li {
    font-weight: 500;
}

.highlight-list li i {
    color: var(--secondary-color);
    margin-right: 8px;
}

@media (max-width: 992px) { /* Adjusted breakpoint for better layout with 2 cards */
    .grad-option {
        flex-basis: calc(50% - 20px); /* Maintain two columns on medium screens */
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .graduation-options {
        flex-direction: column;
        align-items: center;
        gap: 20px; /* Adjust gap for stacked cards */
    }
    
    .grad-option {
        flex-basis: auto; /* Reset basis for stacked layout */
        width: 100%;
        max-width: 450px; /* Allow cards to be wider on mobile */
        min-width: unset;
    }
}

@media (max-width: 768px) {
    .program-tabs {
        overflow-x: auto;
        padding: 0;
        justify-content: flex-start;
    }
    
    .program-tab {
        padding: 15px 10px;
        white-space: nowrap;
        font-size: 0.9rem;
    }
    
    .program-content {
        padding: 20px 15px;
    }
    
    .semester {
        min-width: 100%;
        margin-bottom: 20px;
    }
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    background: white;
}

.pricing-card {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    position: relative;
}

.discount-badge {
    background: var(--gradient);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pricing-content {
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.price-item {
    text-align: center;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.price-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.price-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.price {
    margin-bottom: 10px;
}

.old-price {
    font-size: 1.2rem;
    text-decoration: line-through;
    color: var(--text-light);
    margin-right: 10px;
}

.new-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.titulation-info {
    background: var(--section-bg);
    padding: 30px 40px;
    text-align: center;
}

.titulation-info h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.titulation-info ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.titulation-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
}

.titulation-info i {
    color: var(--primary-color);
}

/* Process Section */
.process {
    padding: 100px 0;
    background: var(--section-bg);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.step-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: var(--gradient);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.time-unit {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: var(--border-radius);
    min-width: 80px;
}

.time-unit span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.time-unit label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.cta .btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Legal and Cookie Styles */
.footer-legal {
    background-color: #212529; /* Dark background */
    padding: 20px 0;
    border-top: 1px solid #343a40; /* Darker border */
    border-bottom: 1px solid #343a40; /* Darker border */
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
}

.legal-link {
    color: #adb5bd; /* Light color for dark background */
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
    padding-bottom: 3px;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: #f8f9fa; /* Lighter color on hover */
}

.legal-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    background-color: #adb5bd; /* Light color for underline */
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.legal-link:hover::after {
    width: 100%;
    background-color: #f8f9fa; /* Lighter underline on hover */
}

.developer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s forwards;
    animation-delay: 1s;
}

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

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text h4 {
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-text p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.btn-accept, .btn-reject {
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-accept {
    background: var(--primary-color);
    color: white;
}

.btn-accept:hover {
    background: #8e1e2b;
}

.btn-reject {
    background: #f0f0f0;
    color: #333;
}

.btn-reject:hover {
    background: #e0e0e0;
}

.cookie-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
        margin-top: 15px;
    }
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-slogan {
    font-style: italic;
    opacity: 0.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.contact-info i {
    color: var(--primary-color);
    width: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    opacity: 0.6;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-container {
        gap: 40px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
        height: 300px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .pricing-content {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .pricing-card {
        margin: 0 15px;
    }
    
    .pricing-content {
        padding: 30px 20px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .countdown {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .time-unit {
        min-width: 60px;
        padding: 15px 10px;
    }
    
    .time-unit span {
        font-size: 1.5rem;
    }
    
    .time-unit label {
        font-size: 0.8rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .contact-info p {
        justify-content: center;
    }
    
    .floating-card {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    .floating-card i {
        font-size: 1.2rem;
    }
    
    .card-1 {
        top: 20px;
        right: 20px;
    }
    
    .card-2 {
        top: 100px;
        left: 20px;
    }
    
    .card-3 {
        bottom: 50px;
        right: 50px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-stats {
        gap: 15px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 25px 15px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    .pricing-card {
        margin: 0 10px;
    }
    
    .pricing-content {
        padding: 20px 15px;
    }
    
    .discount-badge {
        font-size: 1rem;
        padding: 12px;
    }
    
    .new-price {
        font-size: 1.5rem;
    }
    
    .time-unit {
        min-width: 50px;
        padding: 10px 5px;
    }
    
    .time-unit span {
        font-size: 1.2rem;
    }
    
    .time-unit label {
        font-size: 0.8rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .floating-card {
        padding: 10px;
        font-size: 0.8rem;
    }
    
    .card-1, .card-2, .card-3 {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        margin: 10px;
        display: inline-block;
    }
    
    .hero-visual {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        height: auto;
        padding: 20px 0;
    }
}

@media (max-width: 320px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-container {
        padding: 0 10px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .countdown {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .time-unit {
        min-width: 45px;
        padding: 8px 3px;
    }
}

/* Botón Flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 4px 4px 10px rgba(0,0,0,0.4);
}

.whatsapp-float i {
    margin: 0; /* Ajuste para centrar el ícono si es necesario */
}

/* Estilos para el pie de página y logo SEP */
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal-info {
    flex-grow: 1;
    text-align: left;
}

.footer-seals {
    flex-shrink: 0;
}

.footer-seals img {
    height: 50px; /* Ajusta la altura según sea necesario */
    width: auto;
    max-width: 160px; /* Ajusta el ancho máximo */
    opacity: 0.95;
}

/* Media query para pantallas pequeñas */
@media (max-width: 768px) {
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal-info {
        order: 2;
    }

    .footer-seals {
        order: 1;
        margin-bottom: 15px;
    }
}

/* Nuevos estilos para las tarjetas de características con imágenes */
.features {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    border-radius: 15px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}

.feature-image {
    position: relative;
    height: 280px; /* Mayor altura para las imágenes */
    overflow: hidden;
    border-radius: 15px 15px 0 0; /* Esquinas redondeadas solo arriba */
}

.feature-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-width: none !important;
    max-height: none !important;
    transition: transform 0.5s ease;
    display: block !important;
}

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

.feature-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.5) 30%, rgba(0,0,0,0.1) 70%, rgba(0,0,0,0) 100%);
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.feature-card:hover .feature-overlay {
    opacity: 0.5;
}

.feature-content {
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 2;
    border-top: 4px solid var(--primary-color);
    background: linear-gradient(to bottom, #ffffff, #f9fafc);
}

.feature-content h3 {
    font-size: 1.5rem;
    margin-bottom: 14px;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
}

/* Eliminando la línea debajo del título */
.feature-content h3::after {
    display: none;
}

.feature-content p {
    font-size: 1.05rem;
    color: var(--text-color-light);
    line-height: 1.7;
    margin: 0;
    flex-grow: 1;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Estilos para el logo SEP en la sección del Plan de Estudios */
.sep-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 15px 25px;
    margin: 30px auto;
    max-width: 800px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.sep-logo-container img {
    height: 50px;
    width: auto;
    flex-shrink: 0;
}

.sep-logo-container p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color-light);
    text-align: left;
}

@media (max-width: 600px) {
    .sep-logo-container {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .sep-logo-container p {
        text-align: center;
    }
}
