/* ============================================================
   Didac-Click — Sistema de Diseño Compartido
   Aplica a todas las páginas del proyecto.
   ============================================================ */

:root {
    --primary:        #0E6B4F;   /* verde DIDAC corporativo */
    --primary-hover:  #063B2E;   /* verde profundo */
    --primary-light:  #E8F5EF;   /* surface-soft */
    --teal:           #1A8F67;   /* verde funcional secundario */
    --teal-light:     #E8F5EF;
    --text:           #1E2A27;   /* grafito */
    --body:           #2E3D38;   /* verde-grafito legible */
    --muted:          #5F6F68;   /* gris verdoso medio (contraste AA) */
    --border:         #DCE5E1;   /* gris verdoso */
    --bg:             #FFFFFF;
    --bg-alt:         #F5F7F6;   /* gris claro */
    --bg-deep:        #E8F5EF;   /* surface-soft */
    --shadow-sm:      0 1px 4px rgba(14,107,79,0.08);
    --shadow-md:      0 4px 16px rgba(14,107,79,0.10);
    --r:              4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--body);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    line-height: 1.2;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: var(--teal); }

/* ── REVEAL ── */
.dc-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.dc-reveal.visible { opacity: 1; transform: none; }

/* ── LAYOUT ── */
.dc-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 2rem;
}
.dc-section {
    padding: 5rem 0;
}
.dc-section-alt {
    padding: 5rem 0;
    background: var(--bg-alt);
}

/* ── KICKER (section label — no pill) ── */
.dc-kicker {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 1rem;
}

/* ── TYPOGRAPHY ── */
.dc-h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
.dc-h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
.dc-h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); font-weight: 600; }
.dc-lead { font-size: 1.05rem; color: var(--body); line-height: 1.75; }
.dc-body { font-size: 0.925rem; color: var(--body); line-height: 1.75; }
.dc-muted { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }

/* ── BUTTONS ── */
.dc-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em;
    border-radius: var(--r);
    cursor: pointer; text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    border: 1px solid transparent;
}
.dc-btn-primary {
    background: var(--primary); color: #fff;
    border-color: var(--primary);
}
.dc-btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }

.dc-btn-outline {
    background: transparent; color: var(--text);
    border-color: var(--border);
}
.dc-btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.dc-btn-ghost {
    background: transparent; color: var(--muted);
    border-color: transparent; padding-left: 0; padding-right: 0;
}
.dc-btn-ghost:hover { color: var(--primary); }

/* ── NAVBAR ── */
.dc-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    background: rgba(255,255,255,0.96);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
    padding: 0 2rem;
    height: 64px;
    display: flex; align-items: center; justify-content: space-between;
}
.dc-nav.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.dc-nav-logo {
    display: flex; align-items: center; gap: 0.6rem;
    text-decoration: none;
}
.dc-nav-logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem; font-weight: 700; color: var(--text);
    letter-spacing: -0.01em;
}
.dc-nav-logo-text span { color: var(--primary); }
.dc-nav-links {
    display: flex; align-items: center; gap: 2rem;
}
.dc-nav-link {
    font-size: 0.82rem; font-weight: 500;
    color: var(--muted); text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}
.dc-nav-link:hover, .dc-nav-link.active { color: var(--text); }
.dc-nav-actions {
    display: flex; align-items: center; gap: 0.875rem;
}
.dc-mobile-menu {
    position: fixed; top: 64px; left: 0; right: 0; z-index: 199;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    display: flex; flex-direction: column; gap: 1.25rem;
}
.dc-mobile-toggle {
    display: none;
    background: transparent; border: none; cursor: pointer;
    color: var(--text); padding: 0.25rem;
}

/* ── CARDS ── */
.dc-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--r); padding: 2rem;
    transition: border-color 0.2s;
    text-decoration: none; display: block; color: inherit;
}
.dc-card:hover { border-color: var(--teal); }

.dc-card-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-alt); color: var(--teal);
    border-radius: var(--r); margin-bottom: 1.25rem;
}

/* ── PRODUCT CARDS ── */
.dc-product-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--r); padding: 2.5rem;
    transition: border-color 0.2s;
    text-decoration: none; display: block; color: inherit;
    position: relative;
}
.dc-product-card:hover { border-color: var(--teal); }
.dc-product-number {
    font-family: 'Poppins', sans-serif;
    font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem;
    display: block;
}
.dc-product-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem; font-weight: 700; color: var(--text);
    margin-bottom: 0.5rem;
}
.dc-product-category {
    font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--teal);
    margin-bottom: 1.25rem; display: block;
}
.dc-product-desc {
    font-size: 0.875rem; color: var(--muted); line-height: 1.7;
    margin-bottom: 1.75rem;
}
.dc-product-link {
    font-size: 0.78rem; font-weight: 600; color: var(--primary);
    letter-spacing: 0.02em; display: flex; align-items: center; gap: 0.4rem;
}

/* ── IMAGE PLACEHOLDER ── */
.dc-img-placeholder {
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--r);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 0.875rem;
    color: var(--muted);
}
.dc-img-placeholder-label {
    font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.06em; text-transform: uppercase;
}

/* ── STEPS ── */
.dc-step {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: 1.25rem;
    align-items: flex-start;
}
.dc-step-num {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem; font-weight: 700;
    color: var(--border); line-height: 1.2;
    padding-top: 0.1rem;
}
.dc-step-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem; font-weight: 600; color: var(--text);
    margin-bottom: 0.35rem;
}
.dc-step-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }

/* ── FAQ — Two-panel design ── */
.dc-faq-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.dc-faq-panel-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
}
.dc-faq-panel-q {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 0;
    border: none;
    border-bottom: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    width: 100%;
    line-height: 1.5;
    transition: color 0.2s;
}
.dc-faq-panel-q:hover, .dc-faq-panel-q.active { color: var(--text); }
.dc-faq-panel-q.active .dc-faq-num { color: var(--primary); }
.dc-faq-num {
    font-family: 'Poppins', sans-serif;
    font-size: 0.65rem; font-weight: 600;
    color: var(--border); letter-spacing: 0.08em;
    min-width: 1.75rem; padding-top: 0.2rem; flex-shrink: 0;
    transition: color 0.2s;
}
.dc-faq-answer {
    position: sticky;
    top: 5.5rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 2.5rem;
}
.dc-faq-answer-q {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem; font-weight: 700;
    color: var(--text); line-height: 1.4;
    margin-bottom: 1.25rem; padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}
.dc-faq-answer-text {
    font-size: 0.875rem; color: var(--body); line-height: 1.85;
}
@media (max-width: 768px) {
    .dc-faq-panel { grid-template-columns: 1fr; gap: 2rem; }
    .dc-faq-answer { position: static; }
}

/* ── DIVIDER ── */
.dc-divider { height: 1px; background: var(--border); }

/* ── FOOTER ── */
.dc-footer { background: var(--text); color: rgba(255,255,255,0.6); }
.dc-footer a {
    color: rgba(255,255,255,0.55); text-decoration: none;
    font-size: 0.82rem; transition: color 0.2s;
}
.dc-footer a:hover { color: rgba(255,255,255,0.95); }
.dc-footer-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem; font-weight: 700; color: #fff;
}
.dc-footer-title {
    font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 1.25rem;
}
.dc-footer-copy {
    font-size: 0.72rem; color: rgba(255,255,255,0.25);
}

/* ── MODAL ── */
.dc-modal-overlay {
    position: fixed; inset: 0; z-index: 500;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.dc-modal {
    background: #fff; border-radius: 6px;
    padding: 2.5rem; max-width: 520px; width: 100%;
    position: relative; max-height: 90vh; overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.dc-input {
    width: 100%; padding: 0.8rem 1rem;
    border: 1px solid var(--border); border-radius: var(--r);
    font-family: 'Poppins', sans-serif; font-size: 0.875rem; color: var(--text);
    background: var(--bg); outline: none; transition: border-color 0.2s;
}
.dc-input:focus { border-color: var(--primary); }
.dc-input::placeholder { color: var(--muted); }

/* ── HERO CTA SECTION ── */
.dc-hero-cta {
    background: var(--primary);
    color: white;
}
.dc-hero-cta h2 { color: white; }
.dc-hero-cta p  { color: rgba(255,255,255,0.75); }

/* ── BACK LINK ── */
.dc-back-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.78rem; font-weight: 500; color: var(--muted);
    text-decoration: none; letter-spacing: 0.02em;
    transition: color 0.2s;
}
.dc-back-link:hover { color: var(--primary); }

/* ── CUSTOM SELECT / INPUT / TEXTAREA ── */
select, select.dc-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235F6F68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 14px;
    padding-right: 2.75rem;
    cursor: pointer;
}
select.dc-input:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230E6B4F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
textarea.dc-input { resize: vertical; min-height: 100px; }
.dc-input::placeholder { color: var(--muted); opacity: 0.8; }
.dc-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14,107,79,0.08);
    background: #fff;
    outline: none;
}

/* ── CAROUSEL ── */
.dc-carousel { position: relative; }
.dc-carousel-expand {
    display: inline-flex; align-items: center; gap: 0.35rem;
    margin-top: 0.875rem;
    font-size: 0.72rem; font-weight: 500; color: var(--muted);
    background: rgba(255,255,255,0.85); border: 1px solid var(--border);
    border-radius: 2px; padding: 0.3rem 0.75rem; cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.dc-carousel-expand:hover { color: var(--primary); border-color: var(--primary); }
.dc-carousel-dots {
    display: flex; gap: 0.5rem; justify-content: center;
}
.dc-carousel-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--border); border: none; cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.dc-carousel-dot.active { background: var(--primary); transform: scale(1.4); }

/* ── GALLERY COVERFLOW 3D ── */
.dc-gallery-coverflow { position: relative; }
.dc-gallery-stage {
    position: relative;
    aspect-ratio: 16/9;
    max-width: 780px;
    margin: 0 auto;
    perspective: 1400px;
}
.dc-gallery-slide {
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.07);
    cursor: zoom-in;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-60%) scale(0.7) rotateY(28deg);
    transition: transform 0.6s cubic-bezier(0.3, 0.8, 0.3, 1), opacity 0.5s ease;
}
.dc-gallery-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-gallery-slide.left  { transform: translateX(-60%) scale(0.7) rotateY(28deg); opacity: 1; pointer-events: none; }
.dc-gallery-slide.right { transform: translateX(60%) scale(0.7) rotateY(-28deg); opacity: 1; pointer-events: none; }
.dc-gallery-slide.center { transform: translateX(0) scale(1) rotateY(0); opacity: 1; pointer-events: auto; z-index: 2; }
.dc-gallery-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: 50%;
    background: rgba(255,255,255,0.92); color: var(--text);
    font-size: 1.05rem; line-height: 1; cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.dc-gallery-arrow:hover { color: var(--primary); border-color: var(--primary); background: #fff; }
.dc-gallery-arrow-prev { left: 8%; }
.dc-gallery-arrow-next { right: 8%; }
.dc-gallery-dots {
    display: flex; gap: 0.4rem; justify-content: center;
    margin-top: 0.75rem;
}
.dc-gallery-dot {
    width: 7px; height: 7px; border-radius: 50%;
    border: none; padding: 0; cursor: pointer;
    background: var(--border);
    transition: background 0.2s, transform 0.2s;
}
.dc-gallery-dot.active { background: var(--primary); transform: scale(1.4); }
.dc-lightbox {
    position: fixed; inset: 0; z-index: 1200;
    display: flex; align-items: center; justify-content: center;
    background: rgba(15,22,18,0.9);
    padding: 1.5rem;
}
.dc-lightbox-inner { position: relative; max-width: 96vw; outline: none; }
.dc-lightbox-inner img {
    display: block;
    max-width: 96vw; max-height: 84vh; width: auto; height: auto;
    border-radius: 0.5rem; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    background: #fff;
}
.dc-lightbox-close {
    position: absolute; top: 0.4rem; right: 0.4rem; z-index: 3;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.35); border-radius: 50%;
    background: rgba(255,255,255,0.14); color: #fff;
    font-size: 1.05rem; line-height: 1; cursor: pointer;
    transition: background 0.15s;
}
.dc-lightbox-close:hover { background: rgba(255,255,255,0.28); }
.dc-lightbox-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.35); border-radius: 50%;
    background: rgba(255,255,255,0.14); color: #fff;
    font-size: 1.35rem; line-height: 1; cursor: pointer;
    transition: background 0.15s;
}
.dc-lightbox-arrow:hover { background: rgba(255,255,255,0.28); }
.dc-lightbox-arrow-prev { left: -3.25rem; }
.dc-lightbox-arrow-next { right: -3.25rem; }
.dc-lightbox-caption {
    position: absolute; bottom: -2.4rem; left: 0; right: 0;
    text-align: center;
    font-size: 0.8rem; color: rgba(255,255,255,0.85);
}
@media (max-width: 720px) {
    .dc-lightbox { padding: 1rem; }
    .dc-lightbox-arrow-prev { left: -0.85rem; }
    .dc-lightbox-arrow-next { right: -0.85rem; }
}
@media (max-width: 480px) {
    .dc-gallery-stage { max-width: 100%; }
    .dc-gallery-arrow { width: 28px; height: 28px; font-size: 0.9rem; }
    .dc-gallery-arrow-prev { left: 4%; }
    .dc-gallery-arrow-next { right: 4%; }
}

/* ── FEATURES ROW (subpáginas) ── */
.dc-feature-row {
    display: grid;
    grid-template-columns: 3rem 1fr 1fr;
    gap: 2rem;
    padding: 2.25rem 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
}
@media (max-width: 720px) {
    .dc-feature-row {
        grid-template-columns: 2.5rem 1fr;
        grid-template-rows: auto auto;
    }
    .dc-feature-row > :nth-child(3) { grid-column: 2; }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .dc-nav-links, .dc-nav-actions { display: none; }
    .dc-mobile-toggle { display: flex; }
    .dc-section, .dc-section-alt { padding: 3.5rem 0; }
    .dc-container { padding: 0 1.25rem; }
}
@media (max-width: 480px) {
    .dc-container { padding: 0 1rem; }
    .dc-modal { padding: 1.75rem; }
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(1rem) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes selectFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HERO — El tiempo del docente es sagrado (DOS COLUMNAS)
   Columna 1: titular. Columna 2: lead + acciones.
   Simetría, fondo claro, tokens del sistema. Sin imagen, sin
   clichés IA.
   ============================================================ */
.dc-hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.dc-hero-copy,
.dc-hero-side {
    text-align: left;
}
/* Marca de agua: isotipo oficial en opacidad mínima (opción B, 2026-09-19) */
.dc-hero-watermark {
    position: absolute;
    right: -4rem;
    bottom: -2rem;
    width: 30rem;
    height: 30rem;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dc-hero-watermark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.dc-hero-split {
    position: relative;
    z-index: 1;
}
/* Responsive: apila a una columna */
@media (max-width: 900px) {
    .dc-hero-split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    .dc-hero-copy,
    .dc-hero-side {
        text-align: center;
    }
    .dc-hero-side > div {
        justify-content: center;
    }
    .dc-hero-watermark {
        width: 17rem;
        height: 17rem;
        right: -2rem;
        bottom: -1rem;
        opacity: 0.07;
    }
}
