/* ============================================================
   REYES IT - HOME (Página principal)
   ============================================================ */

/* ---------- HERO ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #f8faff;
    padding-bottom: 0;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(31, 94, 187, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(73, 167, 232, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(127, 216, 247, 0.05) 0%, transparent 50%);
    z-index: 0;
    animation: gradientMove 15s ease-in-out infinite alternate;
}

@keyframes gradientMove {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

#particles-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 120px 0 40px;
}

.hero-content {
    position: relative;
}

.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(31, 94, 187, 0.1);
    border: 1px solid rgba(31, 94, 187, 0.15);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1f5ebb;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.1;
    color: #1a1a2e;
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.hero-title span {
    background: linear-gradient(135deg, #1f5ebb, #49a7e8, #7fd8f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(31, 94, 187, 0.15);
    border-radius: 4px;
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #4a4a6a;
    margin-top: 20px;
    max-width: 500px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 32px;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-stats .stat-item {
    text-align: left;
}

.hero-stats .stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1f5ebb, #49a7e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-stats .stat-label {
    font-size: 0.85rem;
    color: #4a4a6a;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-illustration {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-illustration .icon-wrapper {
    width: 110px;
    height: 110px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.8rem;
    color: #1f5ebb;
    box-shadow: 0 20px 60px rgba(31, 94, 187, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-illustration .icon-wrapper:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 30px 80px rgba(31, 94, 187, 0.2);
}

.hero-illustration .icon-wrapper:nth-child(1) { animation: float 4s ease-in-out infinite; }
.hero-illustration .icon-wrapper:nth-child(2) { animation: float 4s ease-in-out infinite 0.5s; }
.hero-illustration .icon-wrapper:nth-child(3) { animation: float 4s ease-in-out infinite 1s; }

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.3;
}

.hero-orb.orb-1 {
    width: 250px;
    height: 250px;
    background: #1f5ebb;
    top: -40px;
    right: -40px;
    animation: orbPulse 8s ease-in-out infinite;
}

.hero-orb.orb-2 {
    width: 180px;
    height: 180px;
    background: #49a7e8;
    bottom: -30px;
    left: -30px;
    animation: orbPulse 8s ease-in-out infinite 2s;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    pointer-events: none;
    margin-bottom: -2px;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: -2px;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.2) translate(20px, -20px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- SERVICIOS (Index) ---------- */
.services {
    background: #ffffff;
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.services-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.services-grid-4 .service-card {
    display: flex;
    flex-direction: column;
}

.services-grid-4 .service-card .service-desc {
    flex: 1;
}

.services-grid-4 .service-card .service-link {
    margin-top: auto;
}

.services-grid-4 .service-card ul {
    min-height: 60px;
}

.service-card {
    background: #ffffff;
    border: 1px solid #e8ecf0;
    padding: 40px 30px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    cursor: default;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(31, 94, 187, 0.03), rgba(73, 167, 232, 0.03));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #1f5ebb, #49a7e8, #7fd8f7);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::after { transform: scaleX(1); }
.service-card:hover::before { opacity: 1; }
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(31, 94, 187, 0.12);
    border-color: rgba(31, 94, 187, 0.15);
}

.service-card .service-icon {
    font-size: 2.8rem;
    color: #1f5ebb;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
}

.service-card .service-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.service-card .service-desc {
    color: #4a4a6a;
    font-size: 0.95rem;
    line-height: 1.7;
}

.service-card .service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1f5ebb;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 16px;
    transition: gap 0.3s ease;
    text-decoration: none;
}

.service-card:hover .service-link { gap: 14px; }

.services-cta {
    text-align: center;
    margin-top: 40px;
}

/* ---------- ABOUT ---------- */
.about {
    background: #f8faff;
    padding: 80px 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content .section-tag { margin-bottom: 12px; }
.about-content .section-title { font-size: 2.6rem; margin-bottom: 20px; }

.about-text {
    color: #4a4a6a;
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    color: #1a1a2e;
}

.value-item:hover {
    background: white;
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(31, 94, 187, 0.06);
}

.value-item i {
    color: #1f5ebb;
    font-size: 1.2rem;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-illustration {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(31, 94, 187, 0.06), rgba(73, 167, 232, 0.06));
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8rem;
    color: #1f5ebb;
    border: 1px solid rgba(31, 94, 187, 0.08);
}

.about-illustration i { opacity: 0.6; animation: float 4s ease-in-out infinite; }

/* ---------- LEITBILD ---------- */
.leitbild-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.leitbild-content h3 {
    font-size: 1.6rem;
    font-family: 'Montserrat', sans-serif;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.leitbild-content p {
    color: #4a4a6a;
    line-height: 1.8;
    font-size: 1.05rem;
}

.leitbild-content ul {
    list-style: none;
    margin-top: 20px;
}

.leitbild-content ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 500;
}

.leitbild-content ul li i {
    color: #1f5ebb;
    font-size: 1.2rem;
}

.leitbild-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(31, 94, 187, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ---------- TESTIMONIOS ---------- */
.testimonials {
    background: #ffffff;
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #f8faff;
    border: 1px solid #e8ecf0;
    padding: 32px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(31, 94, 187, 0.08);
    border-color: rgba(31, 94, 187, 0.12);
}

.testimonial-stars {
    color: #f5a623;
    font-size: 1.1rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-style: italic;
    color: #1a1a2e;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-author .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1f5ebb, #49a7e8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.testimonial-author .info strong {
    display: block;
    color: #1a1a2e;
    font-size: 0.95rem;
}

.testimonial-author .info span {
    font-size: 0.85rem;
    color: #4a4a6a;
}

/* ---------- TEAM ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.team-card {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #f0f4ff;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(31, 94, 187, 0.08);
    border-color: rgba(31, 94, 187, 0.15);
}

.team-card .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    font-weight: 700;
}

.team-card h4 { font-weight: 700; color: #1a1a2e; }
.team-card p { color: #4a4a6a; font-size: 0.9rem; }

/* ============================================================
   ⭐ NUEVO: TECNOLOGÍAS EN 2 LÍNEAS (CORREGIDO)
   ============================================================ */
.tech-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    text-align: center;
}

.tech-grid-6 > div {
    background: #f8faff;
    padding: 16px 12px;
    border-radius: 16px;
    border: 1px solid #f0f4ff;
    transition: all 0.3s ease;
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.tech-grid-6 > div:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(31, 94, 187, 0.08);
    border-color: rgba(31, 94, 187, 0.15);
}

.tech-grid-6 > div i {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 6px;
}

.tech-grid-6 > div p {
    margin: 0;
    font-weight: 600;
    color: #1a1a2e;
    font-size: 0.85rem;
}

/* ---------- PROCESO ---------- */
.process-timeline {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 40px;
}

.process-step-wrapper {
    display: flex;
    align-items: center;
}

.process-step-card {
    background: white;
    padding: 30px 24px;
    border-radius: 20px;
    border: 1px solid #f0f4ff;
    text-align: center;
    width: 220px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.process-step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(31, 94, 187, 0.10);
    border-color: rgba(31, 94, 187, 0.15);
}

.process-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #1f5ebb, #49a7e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 4px;
}

.process-icon {
    font-size: 2.2rem;
    color: #1f5ebb;
    margin-bottom: 12px;
}

.process-step-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.process-step-card p {
    font-size: 0.9rem;
    color: #4a4a6a;
    line-height: 1.6;
}

.process-arrow {
    font-size: 1.8rem;
    color: #1f5ebb;
    padding: 0 16px;
    opacity: 0.5;
}

/* ---------- FAQ ---------- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 16px;
    border: 1px solid #f0f4ff;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.faq-item:hover {
    border-color: rgba(31, 94, 187, 0.15);
    box-shadow: 0 4px 20px rgba(31, 94, 187, 0.06);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    color: #1a1a2e;
    font-size: 1rem;
    transition: all 0.3s ease;
    user-select: none;
}

.faq-question:hover { color: #1f5ebb; }

.faq-question .faq-toggle {
    color: #1f5ebb;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-question .faq-toggle { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 20px;
}

.faq-answer p {
    color: #4a4a6a;
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .services-grid-4 { grid-template-columns: repeat(2, 1fr); }
    
    /* Tecnologías: 4 columnas en tablet */
    .tech-grid-6 {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
    
    .process-timeline {
        flex-direction: column;
        gap: 0;
    }
    .process-step-wrapper {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    .process-step-card { width: 100%; }
    .process-arrow {
        transform: rotate(90deg);
        padding: 8px 0;
    }
    .leitbild-container { grid-template-columns: 1fr; text-align: center; }
    .leitbild-content ul li { justify-content: center; }
    .leitbild-image img { max-width: 300px; }
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding-top: 100px;
    }
    
    .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .services-grid-4 { grid-template-columns: 1fr 1fr; }
    
    /* Tecnologías: 3 columnas en móvil */
    .tech-grid-6 {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .tech-grid-6 > div { 
        padding: 12px 8px;
        min-height: 85px;
    }
    .tech-grid-6 > div i { font-size: 1.8rem; }
    .tech-grid-6 > div p { font-size: 0.75rem; }
    
    .process-step-card { padding: 24px 20px; }
    .process-number { font-size: 2.2rem; }
    .process-icon { font-size: 1.8rem; }
    .faq-question { padding: 16px 18px; font-size: 0.95rem; }
    .faq-answer { padding: 0 18px; }
    .faq-item.active .faq-answer { padding: 0 18px 16px; }
    .services-grid-4 .service-card ul { min-height: auto; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .leitbild-container { grid-template-columns: 1fr; text-align: center; }
    .leitbild-content ul li { justify-content: center; }
    .leitbild-image img { max-width: 250px; }
    .about-container { grid-template-columns: 1fr; text-align: center; }
    .about-values { grid-template-columns: 1fr 1fr; }
    .about-illustration { display: none; }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .services-grid-4 { grid-template-columns: 1fr; }
    
    /* Tecnologías: 3 columnas en móvil pequeño */
    .tech-grid-6 {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .tech-grid-6 > div { 
        padding: 10px 6px;
        min-height: 75px;
    }
    .tech-grid-6 > div i { font-size: 1.5rem; }
    .tech-grid-6 > div p { font-size: 0.65rem; }
    
    .about-values { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .hero-illustration .icon-wrapper {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    .hero-orb.orb-1 {
        width: 120px;
        height: 120px;
    }
    .hero-orb.orb-2 {
        width: 80px;
        height: 80px;
    }
}