/* =================================
   SERVICIOS PÚBLICOS - TEMA AMARILLO/NARANJA
   ================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta de colores amarillo-naranja */
    --yellow-primary: #FFD700;
    --orange-primary: #FF8C00;
    --orange-light: #FFA500;
    --orange-dark: #FF6B00;
    --gradient-main: linear-gradient(135deg, #FFD700 0%, #FFA726 50%, #FF8C00 100%);
    --gradient-card: linear-gradient(145deg, #FFFBF0 0%, #FFFFFF 100%);
    
    /* Colores de texto */
    --text-dark: #1F2937;
    --text-medium: #4B5563;
    --text-light: #6B7280;
    --text-muted: #9CA3AF;
    
    /* Colores de fondo */
    --bg-light: #FFFBF0;
    --bg-card: #FFFFFF;
    --bg-hover: #FFF8E1;
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(255, 140, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(255, 140, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(255, 140, 0, 0.16);
    --shadow-hover: 0 12px 40px rgba(255, 165, 0, 0.25);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #FFFBF0 0%, #FFF8E1 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* =================================
   HEADER
   ================================= */
.header {
    background: var(--gradient-main);
    padding: 0;
    box-shadow: 0 4px 24px rgba(255, 165, 0, 0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--orange-primary);
}

.header h1 {
    color: white;
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 800;
    margin: 0;
    padding: 25px 40px 15px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header nav {
    display: flex;
    gap: 0;
    padding: 0 40px 20px;
    flex-wrap: wrap;
}

.header nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    position: relative;
    overflow: hidden;
}

.header nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.header nav a:hover::before {
    left: 0;
}

.header nav a:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header nav a.active {
    background-color: rgba(255, 255, 255, 0.35);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* =================================
   CONTAINER
   ================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}

.container > h1 {
    font-size: clamp(32px, 5vw, 48px);
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.025em;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container > p {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--text-light);
    margin-bottom: 50px;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* =================================
   FEATURES SECTION
   ================================= */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 60px 0;
    animation: fadeInUp 0.8s ease-out;
}

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

.feature-card {
    background: var(--bg-card);
    padding: 35px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--orange-light);
}

.feature-card .icon {
    font-size: 56px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

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

.feature-card h3 {
    color: var(--text-dark);
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* =================================
   COURSE GRID
   ================================= */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
    margin-top: 40px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* =================================
   SERVICE CARD
   ================================= */
.service-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid transparent;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
    border-color: var(--orange-light);
}

.service-card-content {
    padding: 35px;
    flex-grow: 1;
}

.service-card-content h2 {
    margin: 0 0 20px 0;
    font-size: 26px;
    color: var(--text-dark);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.service-card-content .meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #FFF8E1;
}

.service-card-content .meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--orange-dark);
    font-weight: 700;
    font-size: 15px;
    background: linear-gradient(135deg, #FFF8E1 0%, #FFE4B5 100%);
    padding: 10px 16px;
    border-radius: 25px;
    border: 1px solid rgba(255, 165, 0, 0.2);
}

.service-card-content .meta span::before {
    content: '⏱️';
    font-size: 18px;
}

.service-card-content p {
    color: var(--text-medium);
    line-height: 1.8;
    font-size: 15px;
    margin: 0;
}

.service-card-footer {
    background: linear-gradient(to bottom, transparent, #FFFBF0);
    padding: 28px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid #FFF8E1;
}

.service-card-footer .price {
    font-size: 36px;
    font-weight: 900;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: baseline;
    letter-spacing: -0.02em;
}

.service-card-footer .price::before {
    content: '$';
    font-size: 24px;
    margin-right: 3px;
}

.details-btn {
    background: var(--gradient-main);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 16px rgba(255, 165, 0, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.details-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.details-btn:hover::before {
    left: 0;
}

.details-btn::after {
    content: '→';
    font-size: 20px;
    transition: transform 0.3s ease;
}

.details-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 165, 0, 0.45);
}

.details-btn:hover::after {
    transform: translateX(5px);
}

.details-btn:active {
    transform: translateY(-1px);
}

/* =================================
   EMPTY STATE
   ================================= */
.course-grid > p {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 30px;
    color: var(--text-light);
    font-size: 18px;
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 2px dashed var(--orange-light);
}

/* =================================
   CTA SECTION
   ================================= */
.cta-section {
    background: var(--gradient-main);
    padding: 60px 40px;
    border-radius: 24px;
    text-align: center;
    margin: 80px 0;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-section h2 {
    color: white;
    font-size: clamp(28px, 5vw, 42px);
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(16px, 2vw, 18px);
    margin-bottom: 30px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.cta-button {
    background: white;
    color: var(--orange-primary);
    padding: 18px 36px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: #FFFBF0;
}

/* =================================
   SECTION TITLE (para "Nuestros Servicios")
   ================================= */
.container h2 {
    font-size: clamp(28px, 4vw, 36px);
    text-align: center;
    margin: 60px 0 30px;
    color: var(--text-dark);
    font-weight: 800;
    position: relative;
    display: inline-block;
    width: 100%;
}

.container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-main);
    border-radius: 2px;
}

/* =================================
   INFO SECTION (Cómo funcionan las mentorías)
   ================================= */
.info-section {
    margin-top: 60px;
    padding: 45px;
    background: var(--bg-card);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(255, 165, 0, 0.1);
}

.info-section h2 {
    color: var(--text-dark);
    margin-bottom: 30px;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
}

.info-section h2::after {
    display: none;
}

.info-steps {
    display: grid;
    gap: 30px;
}

.info-step {
    display: flex;
    gap: 20px;
    align-items: start;
}

.step-number {
    background: var(--gradient-main);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
}

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

.step-content p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.7;
    font-size: 15px;
}

/* =================================
   RESPONSIVE
   ================================= */
@media (max-width: 768px) {
    .header h1 {
        font-size: 22px;
        padding: 20px 20px 12px;
    }

    .header nav {
        padding: 0 20px 15px;
        gap: 8px;
    }

    .header nav a {
        padding: 8px 14px;
        font-size: 14px;
    }

    .container {
        padding: 40px 20px;
    }

    .features-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .course-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .service-card-content h2 {
        font-size: 22px;
    }

    .service-card-footer {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .details-btn {
        width: 100%;
        justify-content: center;
    }

    .cta-section {
        padding: 40px 25px;
        margin: 60px 0;
    }

    .info-section {
        padding: 30px 20px;
    }

    .info-step {
        flex-direction: column;
        gap: 15px;
    }

    .step-number {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .service-card-content,
    .service-card-footer {
        padding: 25px 20px;
    }

    .service-card-footer .price {
        font-size: 30px;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .feature-card .icon {
        font-size: 48px;
    }
}

/* =================================
   ANIMACIONES Y EFECTOS
   ================================= */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}