/*
Theme Name: Quipu Insight v1608
Description: Tema personalizado para el sitio de Quipu Insight.
Author: Quipu Insight
Version: 1608.4.0
Text Domain: quipu-insight
*/

/* --- Variables de Color Basadas en el Logo --- */
:root {
    --dark-blue: #040d21;
    --gradient-bg: radial-gradient(circle at top right, #0a1f4d, #030814);
    --cyan-brand: #00d2ff;
    --orange-brand: #ff4d3d;
    --cyan-bar: #3de3fc;
    --text-white: #ffffff;
    --text-gray: #a6b3d1;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--gradient-bg);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Encabezado Superior --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background-color: var(--dark-blue);
}

.logo-container {
    display: flex;
    align-items: center;
    height: 55px;
}

.logo-svg {
    height: 100%;
    width: auto;
}

.search-container {
    position: relative;
    width: 280px;
}

.search-container input {
    width: 100%;
    padding: 8px 35px 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 13px;
    outline: none;
    transition: all 0.3s ease;
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-container input:focus {
    border-color: var(--cyan-brand);
    background-color: rgba(255, 255, 255, 0.1);
}

.search-container i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

/* --- Barra de Navegación --- */
nav {
    background-color: var(--cyan-bar);
    padding: 12px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links li a {
    color: #0c2040;
    font-weight: 600;
    font-size: 14px;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links li a:hover {
    opacity: 0.8;
}

.btn-aula {
    background-color: #0c2040;
    color: white !important;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-aula:hover {
    background-color: #1a3865;
}

/* --- Hero --- */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 80px 8%;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.hero-text h1 {
    font-size: 36px;
    color: var(--cyan-brand);
    line-height: 1.3;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.hero-text p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-gray);
    font-weight: 300;
}

.hero-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    list-style: none;
    margin-top: 5px;
}

.hero-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.6;
}

.hero-benefits i {
    flex: 0 0 auto;
    color: var(--cyan-brand);
    font-size: 22px;
    margin-top: 2px;
}

.hero-benefits strong {
    display: block;
    color: var(--text-white);
    margin-bottom: 4px;
}

.btn-start {
    background-color: var(--orange-brand);
    color: white;
    padding: 14px 35px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    width: fit-content;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-start:hover {
    background-color: #e03f30;
    transform: translateY(-2px);
}

/* --- Ilustración --- */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.illustration-placeholder {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0px 10px 20px rgba(0,0,0,0.5));
    animation: float 4s ease-in-out infinite;
}

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

.page-header {
    text-align: center;
    padding: 60px 8% 30px;
    max-width: 900px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: 36px;
    color: var(--cyan-brand);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-header p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.6;
    font-weight: 300;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 8% 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: rgba(10, 31, 77, 0.6);
    border: 1px solid rgba(0, 210, 255, 0.15);
    border-radius: 16px;
    padding: 40px 30px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--cyan-brand);
}

.service-card .icon {
    font-size: 40px;
    color: var(--cyan-brand);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-white);
    font-weight: 600;
}

.service-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-card ul {
    list-style: none;
    margin-bottom: 25px;
}

.service-card ul li {
    font-size: 13px;
    color: var(--text-gray);
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-card ul li i {
    color: var(--orange-brand);
    font-size: 10px;
}

.btn-card {
    background-color: transparent;
    border: 1px solid var(--cyan-brand);
    color: var(--cyan-brand);
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-card:hover {
    background-color: var(--cyan-brand);
    color: var(--dark-blue);
}

.methodology {
    background: rgba(0, 210, 255, 0.05);
    border-top: 1px solid rgba(0, 210, 255, 0.1);
    padding: 60px 8%;
    text-align: center;
}

.methodology h2 {
    font-size: 28px;
    color: var(--cyan-brand);
    margin-bottom: 40px;
}

.steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
}

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

.step h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.step p {
    font-size: 13px;
    color: var(--text-gray);
}

.services-footer {
    background-color: var(--dark-blue);
    padding: 40px 8%;
    text-align: center;
    border-top: 1px solid rgba(0, 210, 255, 0.1);
}

.services-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.services-footer .footer-links a {
    color: var(--text-gray);
    font-size: 14px;
    transition: color 0.3s ease;
}

.services-footer .footer-links a:hover {
    color: var(--cyan-brand);
}

.services-footer p {
    color: rgba(166, 179, 209, 0.5);
    font-size: 13px;
}

.story-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    padding: 60px 8%;
    max-width: 1200px;
    margin: 0 auto;
}

.story-text h2 {
    font-size: 32px;
    color: var(--cyan-brand);
    margin-bottom: 20px;
}

.story-text p {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.story-visual {
    display: flex;
    justify-content: center;
}

.values-section,
.team-section,
.why-section {
    padding: 60px 8%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.values-section h2,
.team-section h2,
.why-section h2 {
    font-size: 32px;
    color: var(--cyan-brand);
    margin-bottom: 30px;
}

.values-grid,
.team-grid,
.why-grid {
    display: grid;
    gap: 25px;
}

.values-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.value-card {
    background: rgba(10, 31, 77, 0.6);
    border: 1px solid rgba(0, 210, 255, 0.15);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: left;
}

.value-card i {
    color: var(--cyan-brand);
    font-size: 32px;
    margin-bottom: 18px;
}

.value-card h3 {
    color: var(--text-white);
    font-size: 20px;
    margin-bottom: 12px;
}

.value-card p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.7;
}

.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.team-member {
    background: rgba(10, 31, 77, 0.6);
    border: 1px solid rgba(0, 210, 255, 0.15);
    border-radius: 20px;
    padding: 35px 25px;
}

.member-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--cyan-brand);
    color: var(--dark-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 20px;
}

.team-member h3 {
    color: var(--text-white);
    font-size: 20px;
    margin-bottom: 8px;
}

.team-member .role {
    color: var(--cyan-brand);
    font-size: 14px;
    margin-bottom: 16px;
}

.team-member .bio {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.socials a {
    color: var(--text-gray);
    margin-right: 12px;
    font-size: 18px;
}

.socials a:hover {
    color: var(--cyan-brand);
}

.why-intro {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 30px;
}

.why-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.why-item {
    background: rgba(10, 31, 77, 0.6);
    border: 1px solid rgba(0, 210, 255, 0.15);
    border-radius: 18px;
    padding: 30px 20px;
}

.why-item .number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--orange-brand);
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.why-item p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.7;
}

.contact-page .page-header {
    padding-bottom: 30px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(280px, 760px);
    gap: 50px;
    padding: 40px 8% 80px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
    justify-content: center;
}

.contact-form,
.info-card {
    background: rgba(10, 31, 77, 0.6);
    border: 1px solid rgba(0, 210, 255, 0.15);
    border-radius: 16px;
}

.contact-form {
    padding: 40px;
}

.contact-form h2 {
    font-size: 22px;
    color: var(--cyan-brand);
    margin-bottom: 25px;
}

.contact-form h2 i {
    margin-right: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 8px;
}

.form-group label span {
    color: var(--orange-brand);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

.form-group select {
    appearance: none;
    background-color: #0a1f4d;
    background-image: linear-gradient(45deg, transparent 50%, var(--cyan-brand) 50%), linear-gradient(135deg, var(--cyan-brand) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    cursor: pointer;
}

.form-group select option {
    background-color: #0a1f4d;
    color: var(--text-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--cyan-brand);
    outline: 2px solid rgba(0, 210, 255, 0.2);
    outline-offset: 1px;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    padding: 30px;
}

.info-card h3 {
    font-size: 18px;
    color: var(--cyan-brand);
    margin-bottom: 15px;
}

.info-card h3 i {
    margin-right: 10px;
}

.info-card p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.contact-secondary-text {
    margin-top: 10px;
    font-size: 13px !important;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-gray);
}

.contact-method i {
    width: 20px;
    text-align: center;
    color: var(--cyan-brand);
}

.info-card a {
    color: var(--cyan-brand);
    font-weight: 600;
}

.quick-cta {
    background: rgba(255, 77, 61, 0.1);
    border: 1px solid rgba(255, 77, 61, 0.3);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
}

.quick-cta h3 {
    font-size: 20px;
    color: var(--orange-brand);
    margin-bottom: 10px;
}

.quick-cta h3 i,
.btn-cta + i {
    margin-right: 8px;
}

.quick-cta p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-cta {
    display: inline-block;
    background-color: var(--orange-brand);
    color: white !important;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background-color: #e03f30;
    transform: translateY(-2px);
}

.social-section {
    text-align: center;
    padding: 40px 8%;
    border-top: 1px solid rgba(0, 210, 255, 0.1);
}

.social-section h2 {
    font-size: 22px;
    color: var(--cyan-brand);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(0, 210, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--cyan-brand);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--cyan-brand);
    color: var(--dark-blue);
    border-color: var(--cyan-brand);
    transform: translateY(-3px);
}

.contact-notice {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.contact-notice-success {
    background: rgba(136, 231, 131, 0.12);
    border: 1px solid rgba(136, 231, 131, 0.4);
    color: #b9f2b5;
}

.contact-notice-error {
    background: rgba(255, 77, 61, 0.12);
    border: 1px solid rgba(255, 77, 61, 0.4);
    color: #ffb0a8;
}

.contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 960px) {
    .story-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    header { flex-direction: column; gap: 15px; }
    .page-header h1 { font-size: 28px; }
    .services-grid { grid-template-columns: 1fr; padding: 30px 5%; }
    .steps { flex-direction: column; align-items: center; }
    .story-section,
    .values-section,
    .team-section,
    .why-section {
        padding: 40px 5%;
    }
    .tab-content {
        padding: 0 5%;
    }
    .instant-hero,
    .courses-section {
        padding: 0 5% 40px;
    }
    .topics-grid {
        grid-template-columns: 1fr;
    }
    .course-card {
        grid-template-columns: 1fr;
    }
    .course-actions {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .contact-layout {
        grid-template-columns: 1fr;
        padding: 30px 5% 60px;
    }
    .hero-benefits {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 25px;
    }
}

/* --- Diseño Adaptable --- */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 5%;
        gap: 40px;
    }

    .hero-text {
        align-items: center;
    }

    .nav-links {
        display: none;
    }

    header {
        flex-direction: column;
        gap: 15px;
    }
}
/* --- Ajuste Contenedor Global --- */
main.page-content {
    padding: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* --- Tabs & Capacitación --- */
.tabs {
    display: flex;
    justify-content: center;
    margin: 30px auto 50px;
    max-width: 600px;
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
}

.tab-btn {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--cyan-brand);
    color: var(--dark-blue);
}

.tab-btn:hover:not(.active) {
    background: rgba(0, 210, 255, 0.1);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* --- Instant Training & Cursos --- */
.instant-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 0 8% 60px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.instant-text h2 {
    font-size: 28px;
    color: var(--orange-brand);
    margin-bottom: 20px;
}

.instant-text p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.features-list {
    list-style: none;
    margin-bottom: 30px;
}

.features-list li {
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.features-list li i {
    color: var(--cyan-brand);
    font-size: 16px;
    width: 20px;
}

.btn-orange {
    background-color: var(--orange-brand);
    color: #fff !important;
    padding: 14px 35px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-orange:hover {
    background-color: #e03f30;
    transform: translateY(-2px);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.topic-tag {
    background: rgba(10, 31, 77, 0.6);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-white);
    transition: all 0.3s ease;
}

.topic-tag:hover {
    border-color: var(--cyan-brand);
    transform: translateY(-3px);
}

.topic-tag i {
    display: block;
    font-size: 24px;
    color: var(--cyan-brand);
    margin-bottom: 8px;
}

.calendar-note {
    background: rgba(255, 77, 61, 0.1);
    border: 1px solid rgba(255, 77, 61, 0.3);
    border-radius: 12px;
    padding: 20px 30px;
    text-align: center;
    margin-bottom: 40px;
}

.calendar-note i {
    color: var(--orange-brand);
    font-size: 20px;
    margin-right: 10px;
}

.calendar-note span {
    font-size: 15px;
    color: var(--text-white);
    font-weight: 600;
}

.calendar-note p {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 5px;
}

.course-card {
    background: rgba(10, 31, 77, 0.6);
    border: 1px solid rgba(0, 210, 255, 0.15);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
    transition: border-color 0.3s ease;
}

.course-card:hover {
    border-color: var(--cyan-brand);
}

.course-info h3 {
    font-size: 20px;
    color: var(--cyan-brand);
    margin-bottom: 10px;
}

.course-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.course-meta span {
    font-size: 13px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.course-meta span i {
    color: var(--orange-brand);
    font-size: 12px;
}

.course-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

.course-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.badge {
    background: rgba(0, 210, 255, 0.15);
    color: var(--cyan-brand);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge.orange {
    background: rgba(255, 77, 61, 0.15);
    color: var(--orange-brand);
}

.btn-small {
    background-color: var(--cyan-brand);
    color: var(--dark-blue);
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background-color: #00b8e6;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--cyan-brand);
    color: var(--cyan-brand);
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--cyan-brand);
    color: var(--dark-blue);
}