/* ======================================
   INDEX.CSS - ESTILOS ESPECÍFICOS DE LA PÁGINA DE INICIO
   ====================================== */

/* ======================================
   BACKGROUND IMAGES - ESPECÍFICO DE INDEX
   ====================================== */

/* Fondo principal con montañas para las primeras secciones */
.first-background {
    background-image: url('/media/images/index/alessio-soggetti-gdE-5Oui1Y0-unsplash.jpg');
}

/* Fondo secundario para secciones posteriores */
.second-background {
    background-image: url('/media/images/index/will-li-KnLPEWBGNwY-unsplash.jpg');
}

/* Hero section background - ESPECÍFICO DE INDEX */
.hero {
    background-image: url('/media/images/index/gaetan-meyer-WemqIKiduMo-unsplash.jpg');
}

/* CTA section background - ESPECÍFICO DE INDEX */
.cta {
    background: linear-gradient(rgba(var(--black-rgb), 0.6), rgba(var(--black-rgb), 0.6)),
        url('/media/images/cta/joshua-sortino-CTVGEm6V8qI-unsplash.jpg') center/cover;
}

/* ======================================
   HERO SECTION - ESTILO SEGÚN IMAGEN DE REFERENCIA
   ====================================== */

.hero .hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    padding-left: 8%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    padding-top: 20vh;
}

.hero .hero-content h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 700;
    color: var(--primary-light);
    margin-left: 0;
}

.hero .hero-subtitle {
    font-size: clamp(1.3rem, 4vw, 2rem);
    margin-bottom: 4rem;
    opacity: 0.9;
    color: var(--black);
    font-style: italic;
    line-height: 1.3;
    max-width: 500px;
    margin-left: 0;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ======================================
   INTRODUCCIÓN SECTION
   ====================================== */

.intro-section {
    background: rgba(var(--white-rgb), 0.4);
    backdrop-filter: blur(var(--blur-strong));
    border: 1px solid rgba(var(--white-rgb), 0.6);
    margin-left: var(--section-margin-horizontal);
    margin-right: var(--section-margin-horizontal);
    margin-bottom: var(--section-margin-bottom);
    margin-top: var(--section-margin-bottom);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
}

.intro-section:hover {
    background: rgba(var(--white-rgb), 0.5);
    transform: var(--hover-lift-medium);
    box-shadow: var(--shadow-heavy);
}

.section-intro {
    text-align: center;
    margin-bottom: var(--margin-bottom-large);
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--black);
    max-width: 800px;
    margin: 0 auto;
}

/* ======================================
   RESULTS SECTION
   ====================================== */

.results-section {
    background: rgba(var(--white-rgb), 0.4);
    backdrop-filter: blur(var(--blur-strong));
    border: 1px solid rgba(var(--white-rgb), 0.6);
    margin-left: var(--section-margin-horizontal);
    margin-right: var(--section-margin-horizontal);
    margin-bottom: var(--section-margin-bottom);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
}

.results-section:hover {
    background: rgba(var(--white-rgb), 0.5);
    transform: var(--hover-lift-medium);
    box-shadow: var(--shadow-heavy);
}

.achievement-highlight {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
    padding: 2.5rem;
    background: rgba(var(--white-rgb), 0.4);
    border-radius: var(--border-radius-standard);
    border-left: 4px solid var(--primary);
}

.achievement-content h3 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.achievement-content p {
    margin-bottom: var(--margin-bottom-small);
    line-height: 1.6;
    color: var(--black);
}

.achievement-content p:last-child {
    margin-bottom: 0;
    font-style: italic;
    color: var(--gray-900);
}

.achievement-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.trophy-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    animation: pulse 2s infinite;
}

.trophy-icon .material-symbols-rounded {
    font-size: 4rem;
    color: var(--white);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* ======================================
   FOUNDER PREVIEW SECTION
   ====================================== */

/* Founder section - restored to original */
.founder-section {
    background: linear-gradient(rgba(var(--black-rgb), 0.4), rgba(var(--black-rgb), 0.4)),
        url('/media/images/index/daniel-leone-g30P1zcOzXo-unsplash.jpg') center/cover;
    box-shadow: var(--shadow-medium);
    position: relative;
    z-index: 2;
}

.founder-preview-section .container {
    position: relative;
    z-index: 3;
}

.founder-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 0;
}

.founder-image {
    position: relative;
    text-align: center;
}

.founder-photo {
    width: 300px;
    height: 300px;
    border-radius: var(--border-radius-circle);
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: var(--shadow-medium);
    transition: var(--transition-standard);
}

.founder-photo:hover {
    transform: var(--hover-scale-small);
    box-shadow: var(--shadow-heavy);
}

.founder-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--accent);
    color: var(--gray-800);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-badge);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    box-shadow: var(--shadow-light);
    transition: var(--transition-standard);
    cursor: default;
}

.founder-badge:hover {
    background: var(--black);
    color: var(--accent);
    transform: var(--effect-hover-lift-md);
    box-shadow: var(--shadow-md);
}

.founder-badge .material-symbols-rounded {
    font-size: 1.2rem;
    color: var(--gray-800);
}

.founder-badge:hover .material-symbols-rounded {
    color: var(--gray-200);
}

.founder-content h2 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.founder-content h3 {
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.founder-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(var(--white-rgb), 0.9);
    margin-bottom: var(--margin-bottom-standard);
}

.founder-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(var(--white-rgb), 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--white-rgb), 0.2);
    border-radius: var(--border-radius-standard);
    transition: var(--transition-standard);
}

.highlight-item:hover {
    background: rgba(var(--white-rgb), 0.15);
    transform: translateX(5px);
}

.highlight-item .material-symbols-rounded {
    font-size: 1.5rem;
    color: var(--accent);
}

.highlight-item span:last-child {
    font-weight: 500;
    color: white;
}

/* ======================================
   SERVICES PREVIEW SECTION
   ====================================== */

.services-preview-section {
    background: rgba(var(--white-rgb), 0.4);
    backdrop-filter: blur(var(--blur-strong));
    border: 1px solid rgba(var(--white-rgb), 0.6);
    margin-left: var(--section-margin-horizontal);
    margin-right: var(--section-margin-horizontal);
    margin-bottom: var(--section-margin-bottom);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
}

.services-preview-section:hover {
    background: rgba(var(--white-rgb), 0.5);
    transform: var(--hover-lift-medium);
    box-shadow: var(--shadow-heavy);
}

/* ======================================
   CONTENT GRID - SISTEMA UNIFICADO PARA SERVICIOS Y TESTIMONIOS
   ====================================== */

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--gap-standard);
    margin-bottom: var(--margin-bottom-large);
}

/* Responsive: Tablet - Primera celda ocupa todo el ancho */
@media (max-width: 82rem) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-grid > *:first-child {
        grid-column: 1;
    }

    .content-grid > *:not(:first-child) {
        grid-column: auto;
    }

    /* Las celdas 2 y 3+ forman una subcuadrícula de 2 columnas */
    @supports (display: grid) {
        .content-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .content-grid > *:first-child {
            grid-column: 1 / -1;
        }
    }
}

/* Responsive: Mobile - Todo en una columna */
@media (max-width: 53rem) {
    .content-grid {
        grid-template-columns: 1fr !important;
    }

    .content-grid > *:first-child {
        grid-column: auto;
    }
}

.service-card {
    background: rgba(var(--white-rgb), 0.9);
    padding: var(--card-padding);
    border-radius: var(--border-radius-standard);
    box-shadow: var(--shadow-light);
    transition: var(--transition-standard);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: var(--hover-lift-medium);
    box-shadow: var(--shadow-heavy);
}

.service-card.main-service {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--accent-rgb), 0.1));
    border: 2px solid var(--primary);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.service-header .material-symbols-rounded {
    font-size: 2rem;
    color: var(--primary);
}

.service-header h3 {
    color: var(--primary-dark);
    margin: 0;
    flex: 1;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--black);
}

.feature-item .material-symbols-rounded {
    font-size: 1.2rem;
    color: var(--primary);
}

.service-card p {
    color: var(--black);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--black);
    font-size: 0.95rem;
}

.service-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.services-cta {
    text-align: center;
}

/* ======================================
   TESTIMONIALS PREVIEW SECTION
   ====================================== */

.testimonials-preview-section {
    background: rgba(var(--white-rgb), 0.4);
    backdrop-filter: blur(var(--blur-strong));
    border: 1px solid rgba(var(--white-rgb), 0.6);
    margin-left: var(--section-margin-horizontal);
    margin-right: var(--section-margin-horizontal);
    margin-bottom: var(--section-margin-bottom);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
}

.testimonials-preview-section:hover {
    background: rgba(var(--white-rgb), 0.5);
    transform: var(--hover-lift-medium);
    box-shadow: var(--shadow-heavy);
}

/* Nota: .testimonials-preview-grid ahora usa .content-grid (ver arriba) */

.testimonial-preview-card {
    background: rgba(var(--white-rgb), 0.9);
    padding: var(--card-padding);
    border-radius: var(--border-radius-standard);
    box-shadow: var(--shadow-light);
    transition: var(--transition-standard);
    display: flex;
    flex-direction: column;
}

.testimonial-preview-card:hover {
    transform: var(--hover-lift-medium);
    box-shadow: var(--shadow-heavy);
}

.testimonial-preview-card.featured {
    background: linear-gradient(135deg, var(--black), var(--gray-900));
    color: var(--accent);
    border: 2px solid var(--accent);
    box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.2);
}

.testimonial-preview-card.featured:hover {
    transform: var(--hover-lift-medium);
    box-shadow: 0 16px 48px rgba(var(--accent-rgb), 0.4);
}

.testimonial-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-badge);
    font-size: 0.8rem;
    font-weight: 600;
    width: fit-content;
    margin-bottom: 1.5rem;
}

.testimonial-preview-card.featured .testimonial-badge {
    background: var(--accent);
    color: var(--gray-800);
}

.testimonial-badge .material-symbols-rounded {
    font-size: 1rem;
}

.testimonial-content {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    line-height: 1.6;
    color: var(--black);
    margin: 0;
}

.testimonial-preview-card.featured .testimonial-content p {
    color: var(--gray-200);
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-preview-card.featured .author-name {
    color: var(--accent);
}

.author-university {
    color: var(--gray-900);
    font-size: 0.9rem;
}

.testimonial-preview-card.featured .author-university {
    color: var(--gray-300);
}

.testimonial-score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(var(--primary-rgb), 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-badge);
    font-size: 0.85rem;
    font-weight: 600;
}

.testimonial-preview-card.featured .testimonial-score {
    background: rgba(var(--accent-rgb), 0.2);
}

.score-label {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}

.testimonial-preview-card.featured .score-label {
    color: var(--accent);
}

.score-value {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.testimonial-preview-card.featured .score-value {
    color: var(--accent);
}

.testimonials-cta {
    text-align: center;
}

.testimonials-loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: rgba(var(--white-rgb), 0.9);
    border-radius: var(--border-radius-standard);
    box-shadow: var(--shadow-light);
    transition: var(--transition-standard);
}

.testimonials-loading-placeholder:hover {
    background: rgba(var(--white-rgb), 0.95);
    box-shadow: var(--shadow-medium);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-300);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.testimonials-loading-placeholder p {
    color: var(--gray-800);
    font-style: italic;
    margin: 0;
    font-size: 1.1rem;
}

/* ======================================
   MEJORAS ADICIONALES PARA FEATURED LOGIC
   ====================================== */

/* Asegurar que el efecto featured sea más prominente */
.testimonial-preview-card.featured {
    /* Aumentar el contraste visual */
    background: linear-gradient(135deg, var(--black), var(--gray-900)) !important;
    color: var(--accent) !important;
    border: 2px solid var(--accent) !important;
    box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.3) !important;
    
    /* Efecto de resplandor sutil */
    position: relative;
    overflow: visible;
}

.testimonial-preview-card.featured::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--border-radius-standard);
    padding: 2px;
    background: linear-gradient(45deg, var(--accent), transparent, var(--accent));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: subtract;
    opacity: 0.6;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Asegurar que el badge sea visible en featured */
.testimonial-preview-card.featured .testimonial-badge {
    background: var(--accent) !important;
    color: var(--black) !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.4);
}

/* ======================================
   PROCESS STEPS
   ====================================== */

.process-step {
    text-align: center;
    padding: var(--card-padding);
    background: rgba(var(--white-rgb), 0.8);
    border-radius: var(--border-radius-standard);
    transition: var(--transition-standard);
    position: relative;
}

.process-step:hover {
    background: rgba(var(--white-rgb), 0.95);
    transform: var(--hover-lift-medium);
    box-shadow: var(--shadow-heavy);
}

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

.step-content h3 {
    color: var(--primary-dark);
    margin-bottom: var(--margin-bottom-small);
    font-size: 1.3rem;
}

.step-content p {
    color: var(--black);
    line-height: 1.6;
    margin-bottom: var(--margin-bottom-small);
}

.step-duration {
    display: inline-block;
    background: var(--accent);
    color: var(--gray-800);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-large);
    font-size: 0.85rem;
    font-weight: 600;
}