/* ===========================
   CETYE — Global Styles
   =========================== */

:root {
    --blue:    #2563eb;
    --sky:     #38bdf8;
    --dark:    #060d1f;
    --dark2:   #0f172a;
    --dark3:   #1e293b;
    --light:   #f1f5f9;
    --white:   #ffffff;
    --accent:  #38bdf8;
    --text:    #cbd5e1;
    --muted:   #64748b;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: #111;
    background: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
    position: fixed;
    width: 100%;
    height: 72px;
    background: rgba(6,13,31,0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(56,189,248,0.08);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.navbar nav {
    display: flex;
    gap: 8px;
}

.navbar nav a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    transition: 0.2s;
    letter-spacing: 0.3px;
}

.navbar nav a:hover,
.navbar nav a.active {
    color: #fff;
    background: rgba(56,189,248,0.12);
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.brand-sub {
    color: rgba(255,255,255,0.5);
    font-size: 0.62rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* ===========================
   HERO — INDEX
   =========================== */
.hero {
    height: 100vh;
    min-height: 600px;
    background: url('https://images.unsplash.com/photo-1446776811953-b23d57bd21aa?auto=format&w=1600') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(6,13,31,0.75) 0%, rgba(6,13,31,0.9) 100%);
}

/* subtle grid overlay */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56,189,248,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56,189,248,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    animation: fadeUp 1s ease-out both;
}

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

.hero-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--sky);
    border: 1px solid rgba(56,189,248,0.3);
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 28px;
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.highlight {
    display: block;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 300;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1rem;
    opacity: 0.7;
    margin-bottom: 44px;
    letter-spacing: 0.5px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================
   BUTTONS
   =========================== */
.btn-primary {
    background: linear-gradient(90deg, #2563eb, #38bdf8);
    color: white;
    padding: 13px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s ease;
    box-shadow: 0 8px 24px rgba(37,99,235,0.35);
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(37,99,235,0.5);
}

.btn-ghost {
    color: rgba(255,255,255,0.8);
    padding: 13px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.2);
    transition: 0.3s ease;
    display: inline-block;
}

.btn-ghost:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.05);
}

.btn-secondary {
    display: inline-block;
    margin-top: 28px;
    background: white;
    color: #111827;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ===========================
   STATS BAR
   =========================== */
.stats-bar {
    background: var(--dark2);
    border-bottom: 1px solid rgba(56,189,248,0.1);
    padding: 28px 0;
}

.stats-bar .container {
    display: flex;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--sky);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}

/* ===========================
   ABOUT
   =========================== */
.about {
    padding: 100px 0;
    text-align: center;
    background: #fff;
}

.about h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.about p {
    max-width: 680px;
    margin: auto;
    color: #475569;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ===========================
   AREAS / CARDS
   =========================== */
.areas {
    background: var(--light);
    padding: 100px 0;
    text-align: center;
}

.areas h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 48px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
    text-align: left;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.card h3 {
    margin: 18px 20px 8px;
    font-size: 1rem;
    font-weight: 700;
}

.card p {
    padding: 0 20px 20px;
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.6;
}

/* ===========================
   CTA
   =========================== */
.cta {
    padding: 80px 0;
    text-align: center;
    background: var(--dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(37,99,235,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta h2 {
    font-size: 2rem;
    font-weight: 800;
    position: relative;
}

/* ===========================
   FOOTER
   =========================== */
footer {
    padding: 28px 20px;
    text-align: center;
    background: #000;
    color: rgba(255,255,255,0.4);
    font-size: 0.82rem;
    letter-spacing: 0.5px;
}

/* ===========================
   HERO SMALL (interior pages)
   =========================== */
.hero-small {
    min-height: 38vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    background: linear-gradient(160deg, var(--dark) 0%, var(--dark2) 100%);
    text-align: left;
    padding: 80px 0 52px;
    position: relative;
    overflow: hidden;
}

.hero-small::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56,189,248,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56,189,248,0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.hero-small .container {
    position: relative;
    z-index: 1;
}

.hero-small .page-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--sky);
    margin-bottom: 12px;
}

.hero-small h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: white;
    letter-spacing: -1px;
    line-height: 1.1;
    max-width: 600px;
}

.hero-small p {
    margin-top: 14px;
    color: rgba(255,255,255,0.5);
    font-size: 0.95rem;
    max-width: 520px;
}

/* ===========================
   SECTION WRAPPER
   =========================== */
.section {
    padding: 80px 0;
}

.section-dark {
    background: var(--dark2);
    color: var(--text);
}

/* ===========================
   ACCORDION — CURSOS
   =========================== */
.accordion {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accordion-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(56,189,248,0.12);
    background: var(--dark2);
}

.accordion-btn {
    background: transparent;
    color: white;
    cursor: pointer;
    padding: 20px 24px;
    width: 100%;
    border: none;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: 0.2s;
}

.accordion-btn:hover {
    background: rgba(56,189,248,0.06);
}

.accordion-btn .acc-icon {
    font-size: 1.2rem;
}

.accordion-btn .acc-arrow {
    font-size: 0.7rem;
    opacity: 0.5;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.accordion-btn.active .acc-arrow {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--sky);
}

.accordion-btn .acc-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.accordion-content {
    display: none;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(56,189,248,0.08);
}

.accordion-content ul {
    list-style: none;
    padding: 16px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.accordion-content li {
    padding: 11px 0;
    font-size: 0.9rem;
    color: var(--text);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.accordion-content li:last-child {
    border-bottom: none;
}

.accordion-content li::before {
    content: '→';
    color: var(--sky);
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* cursos intro */
.cursos-intro {
    background: var(--dark);
    padding: 60px 0 40px;
    text-align: center;
}

.cursos-intro p {
    color: var(--muted);
    font-size: 1rem;
    max-width: 580px;
    margin: 12px auto 0;
    line-height: 1.7;
}

.cursos-intro h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
}

/* ===========================
   NOSOTROS — TEAM
   =========================== */
.team-section {
    background: #fff;
    padding: 100px 0;
}

.team-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.team-section .section-sub {
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 64px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

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

.team-card {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.1);
    border-color: rgba(37,99,235,0.2);
}

.team-card-photo {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center top;
    display: block;
    background: #e2e8f0;
}

/* placeholder if no photo */
.team-card-placeholder {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, var(--dark2) 0%, var(--dark3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: rgba(56,189,248,0.4);
}

.team-card-body {
    padding: 24px;
}

.team-card-role {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 8px;
}

.team-card-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.team-card-bio {
    font-size: 0.87rem;
    color: #64748b;
    line-height: 1.75;
}

/* NOSOTROS — Mission/values */
.mission-section {
    background: var(--dark);
    padding: 100px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.mission-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56,189,248,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56,189,248,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.mission-section .container {
    position: relative;
    z-index: 1;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 768px) {
    .mission-grid { grid-template-columns: 1fr; gap: 48px; }
}

.mission-text h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.mission-text p {
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    font-size: 0.95rem;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(56,189,248,0.08);
    transition: 0.2s;
}

.value-item:hover {
    background: rgba(56,189,248,0.05);
    border-color: rgba(56,189,248,0.2);
}

.value-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.value-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: white;
}

.value-desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
}

/* ===========================
   CONTACT PAGE
   =========================== */
.contact-section {
    padding: 80px 0;
    background: #f8fafc;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 64px;
    align-items: start;
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.contact-info h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.contact-info p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.88rem;
    color: #475569;
}

.contact-detail .cd-icon {
    font-size: 1rem;
    width: 32px;
    height: 32px;
    background: var(--dark2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #111;
    background: #f8fafc;
    transition: 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .form-row { grid-template-columns: 1fr; }
}

.btn-submit {
    width: 100%;
    padding: 13px;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
    color: white;
    border: none;
    border-radius: 40px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 6px 20px rgba(37,99,235,0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(37,99,235,0.45);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 600px) {
    .hero-title { font-size: 2rem; }
    .stats-bar .container { gap: 32px; }
    .navbar nav a { font-size: 0.78rem; padding: 5px 10px; }
    .team-grid { grid-template-columns: 1fr; }
}
