/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(0, 171, 182, 0.05) 25%, 
        rgba(255, 255, 255, 0.98) 50%, 
        rgba(9, 170, 224, 0.05) 75%, 
        rgba(255, 255, 255, 0.95) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated background elements */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 20%, rgba(0, 171, 182, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(9, 170, 224, 0.03) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Logo Section */
.logo-section {
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out;
}

.logo {
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 171, 182, 0.2));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Main Content */
.main-content {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.main-title {
    font-size: 1.8rem;
    font-weight: 300;
    color: #333;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.subtitle {
    font-size: 2.5rem;
    font-weight: 600;
    color: #00abb6;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 171, 182, 0.1);
}

.description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, #00abb6 0%, #09aae0 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 171, 182, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 48px; /* Minimum touch target size */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 171, 182, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

/* Requirements Section */
.requirements-section {
    display: none;
    width: 100%;
    animation: fadeInUp 0.5s ease-out;
}

.requirements-section.active {
    display: block;
}

.requirements-header {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.requirements-header h3 {
    font-size: 2rem;
    color: #00abb6;
    font-weight: 400;
    flex: 1;
}

.back-button {
    background: rgba(0, 171, 182, 0.1);
    color: #00abb6;
    border: 2px solid #00abb6;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 48px; /* Minimum touch target size */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.back-button:hover {
    background: #00abb6;
    color: white;
    transform: translateX(-5px);
}

/* Cards Container */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 171, 182, 0.1);
    min-height: 120px; /* Ensure consistent card height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card:hover {
    transform: translateY(-10px);
    border-color: #00abb6;
    box-shadow: 0 20px 40px rgba(0, 171, 182, 0.2);
}

.card h4 {
    font-size: 1.4rem;
    color: #00abb6;
    margin-bottom: 1rem;
    font-weight: 600;
}

.card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

/* Card Details Section */
.card-details-section {
    display: none;
    width: 100%;
    animation: fadeInUp 0.5s ease-out;
}

.card-details-section.active {
    display: block;
}

.card-details-header {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-details-header h3 {
    font-size: 2rem;
    color: #00abb6;
    font-weight: 400;
    flex: 1;
}

.requirements-list {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 171, 182, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.requirement-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 171, 182, 0.05);
    border-radius: 10px;
    border-left: 4px solid #00abb6;
}

.requirement-item::before {
    content: '✓';
    color: #00abb6;
    font-weight: bold;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.requirement-item:last-child {
    margin-bottom: 0;
}

/* Footer */
.footer {
    margin-top: 4rem;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(0, 171, 182, 0.1);
}

.footer p {
    color: #999;
    font-size: 0.9rem;
    font-style: italic;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */

/* Large tablets and small desktops (1024px and down) */
@media (max-width: 1024px) {
    .container {
        padding: 1.5rem;
    }
    
    .logo {
        max-width: 400px;
    }
    
    .main-title {
        font-size: 1.6rem;
    }
    
    .subtitle {
        font-size: 2.2rem;
    }
    
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

/* Tablets (768px and down) */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        min-height: 100vh;
    }
    
    .logo {
        max-width: 300px;
        margin-bottom: 2rem;
    }
    
    .main-content {
        margin-bottom: 3rem;
    }
    
    .main-title {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }
    
    .subtitle {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }
    
    .description {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .cta-button {
        padding: 0.9rem 2.2rem;
        font-size: 1rem;
        min-width: 200px;
    }
    
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .card h4 {
        font-size: 1.3rem;
    }
    
    .requirements-header,
    .card-details-header {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .requirements-header h3,
    .card-details-header h3 {
        font-size: 1.6rem;
        text-align: center;
    }
    
    .back-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        align-self: center;
    }
    
    .requirements-list {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .requirement-item {
        padding: 0.8rem;
        margin-bottom: 1rem;
        font-size: 0.95rem;
    }
    
    .footer {
        margin-top: 3rem;
        padding: 1.5rem 1rem;
    }
}

/* Mobile phones (480px and down) */
@media (max-width: 480px) {
    .container {
        padding: 0.8rem;
    }
    
    .logo {
        max-width: 200px;
        margin-bottom: 1.5rem;
    }
    
    .main-title {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }
    
    .subtitle {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.8rem;
        font-size: 0.95rem;
        min-width: 180px;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .card {
        padding: 1.2rem;
    }
    
    .card h4 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .card p {
        font-size: 0.9rem;
    }
    
    .requirements-header h3,
    .card-details-header h3 {
        font-size: 1.4rem;
    }
    
    .back-button {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .requirements-list {
        padding: 1rem;
        margin: 0;
    }
    
    .requirement-item {
        padding: 0.7rem;
        margin-bottom: 0.8rem;
        font-size: 0.9rem;
    }
    
    .footer {
        margin-top: 2rem;
        padding: 1rem 0.5rem;
    }
    
    .footer p {
        font-size: 0.8rem;
    }
}

/* Extra small devices (360px and down) */
@media (max-width: 360px) {
    .container {
        padding: 0.5rem;
    }
    
    .logo {
        max-width: 150px;
    }
    
    .main-title {
        font-size: 1.1rem;
    }
    
    .subtitle {
        font-size: 1.3rem;
    }
    
    .description {
        font-size: 0.85rem;
    }
    
    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
        min-width: 160px;
    }
    
    .card {
        padding: 1rem;
        min-height: 100px;
    }
    
    .card h4 {
        font-size: 1.1rem;
    }
    
    .card p {
        font-size: 0.85rem;
    }
    
    .requirements-header h3,
    .card-details-header h3 {
        font-size: 1.2rem;
    }
    
    .requirements-list {
        padding: 0.8rem;
    }
    
    .requirement-item {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: none;
        border-color: transparent;
        box-shadow: 0 8px 32px rgba(0, 171, 182, 0.1);
    }
    
    .card:active {
        transform: scale(0.98);
        border-color: #00abb6;
        box-shadow: 0 4px 16px rgba(0, 171, 182, 0.2);
    }
    
    .cta-button:hover {
        transform: none;
        box-shadow: 0 8px 25px rgba(0, 171, 182, 0.3);
    }
    
    .cta-button:active {
        transform: scale(0.95);
        box-shadow: 0 4px 15px rgba(0, 171, 182, 0.4);
    }
    
    .back-button:hover {
        transform: none;
        background: rgba(0, 171, 182, 0.1);
        color: #00abb6;
    }
    
    .back-button:active {
        transform: scale(0.95);
        background: #00abb6;
        color: white;
    }
}

/* Additional mobile touch improvements */
@media (max-width: 768px) {
    .card {
        -webkit-tap-highlight-color: rgba(0, 171, 182, 0.2);
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }
    
    .cta-button,
    .back-button {
        -webkit-tap-highlight-color: rgba(0, 171, 182, 0.3);
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }
    
    /* Prevent zoom on double tap */
    .card,
    .cta-button,
    .back-button {
        touch-action: manipulation;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        padding: 0.5rem;
    }
    
    .logo {
        max-width: 120px;
        margin-bottom: 1rem;
    }
    
    .main-content {
        margin-bottom: 1.5rem;
    }
    
    .main-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .subtitle {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .cta-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .requirements-list {
        padding: 1rem;
    }
    
    .requirement-item {
        padding: 0.6rem;
        margin-bottom: 0.6rem;
    }
}

/* === Estilos del contador regresivo === */
.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
    font-size: 1.8rem;
    color: #00abb6;
    font-weight: 600;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(0, 171, 182, 0.08);
    padding: 10px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 171, 182, 0.15);
    min-width: 80px;
    transition: transform 0.2s ease;
}

.countdown-item:hover {
    transform: translateY(-3px);
}

.countdown-item span {
    display: block;
    font-size: 0.9rem;
    color: #666;
    font-weight: normal;
}

.hidden {
    display: none !important;
}

