/* =============================================================
   TEAM — Carousel (homepage) + About Us page
   ============================================================= */

:root {
    --team-teal:       #2a9d8f;
    --team-teal-light: #3bb5a6;
    --team-coral:      #e76f51;
    --team-dark:       #1a1a2e;
    --team-mid:        #2d3561;
    --team-light:      #f4f7f6;
    --team-white:      #ffffff;
    --team-text:       #444;
    --team-muted:      #888;
    --team-radius:     16px;
    --team-shadow:     0 8px 32px rgba(42,157,143,.13);
    --team-transition: 0.35s cubic-bezier(.4,0,.2,1);
}

/* ══════════════════════════════════════════════════════════════
   HOMEPAGE CAROUSEL
   ══════════════════════════════════════════════════════════════ */

.team-carousel-section {
    background: var(--team-light);
    padding: 90px 0 70px;
    position: relative;
    overflow: hidden;
}

.team-carousel-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--team-teal), var(--team-coral));
}

.team-carousel-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 48px;
}

/* Header */
.team-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.team-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--team-teal);
    margin-bottom: 12px;
}

.team-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--team-dark);
    margin: 0 0 16px;
    line-height: 1.2;
}

.team-subtitle {
    font-size: 1rem;
    color: var(--team-text);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Wrapper */
.team-carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    padding: 0 8px;
}

/* Track */
.team-track {
    display: flex;
    gap: 20px;
    transition: transform var(--team-transition);
    will-change: transform;
}

/* Card — vertical compacta, 2 visibles en desktop */
.team-card {
    flex: 0 0 calc(33.333% - 14px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--team-white);
    border-radius: 20px;
    padding: 20px 16px 18px;
    box-shadow: var(--team-shadow);
    box-sizing: border-box;
    transition: box-shadow var(--team-transition), transform var(--team-transition);
}

.team-card:hover {
    box-shadow: 0 16px 40px rgba(42,157,143,.2);
    transform: translateY(-4px);
}

/* Avatar — cuadrado redondeado */
.team-avatar {
    position: relative;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.team-avatar img,
.team-avatar-initials {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    object-fit: cover;
    display: block;
}

.team-avatar-initials {
    background: linear-gradient(135deg, var(--team-teal), var(--team-mid));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    letter-spacing: -2px;
}

.team-avatar-ring { display: none; }

/* Card info */
.team-card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.team-member-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--team-dark);
    margin: 0 0 4px;
}

.team-member-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--team-muted);
    margin: 0 0 12px;
}

.team-member-bio {
    font-size: 0.88rem;
    color: var(--team-text);
    line-height: 1.6;
    margin: 0 0 16px;
}

/* Links */
.team-card-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 14px;
}

.team-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid currentColor;
    transition: var(--team-transition);
    text-decoration: none;
}

.team-link svg { width: 14px; height: 14px; }
.team-link--linkedin { color: #0077b5; }
.team-link--email    { color: var(--team-teal); }
.team-link:hover { background: currentColor; }
.team-link--linkedin:hover svg,
.team-link--email:hover svg { filter: brightness(10); }

.team-profile-btn {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--team-coral);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: var(--team-transition);
}
.team-profile-btn:hover { border-color: var(--team-coral); }

/* Navigation arrows */
.team-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--team-white);
    border: 2px solid var(--team-teal);
    color: var(--team-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--team-transition);
    z-index: 10;
    box-shadow: 0 2px 12px rgba(42,157,143,.2);
}
.team-nav:hover { background: var(--team-teal); color: white; }
.team-nav svg   { width: 18px; height: 18px; }
.team-nav--prev { left: -20px; }
.team-nav--next { right: -20px; }

/* Dots */
.team-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.team-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    transition: var(--team-transition);
    padding: 0;
}
.team-dot.active,
.team-dot:hover { background: var(--team-teal); transform: scale(1.3); }

/* CTA */
.team-cta { text-align: center; margin-top: 40px; }

.team-cta-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--team-teal);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--team-transition);
}
.team-cta-btn:hover {
    background: var(--team-coral);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(231,111,81,.3);
    color: white;
    text-decoration: none;
}

/* Responsive — 1 card en móvil */
@media (max-width: 640px) {
    .team-carousel-inner { padding: 0 24px; }
    .team-card { flex: 0 0 100%; }
    .team-nav--prev { left: 4px; }
    .team-nav--next { right: 4px; }
}

/* ══════════════════════════════════════════════════════════════
   ABOUT US PAGE
   ══════════════════════════════════════════════════════════════ */

.about-hero {
    background: linear-gradient(135deg, var(--team-dark) 0%, var(--team-mid) 100%);
    padding: 100px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: var(--team-light);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
}

.about-hero-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--team-teal);
    margin-bottom: 16px;
}

.about-hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: white;
    margin: 0 0 20px;
    line-height: 1.15;
}

.about-hero-intro {
    font-size: 1.05rem;
    color: rgba(255,255,255,.75);
    line-height: 1.8;
    margin: 0 0 28px;
}

.about-back-link {
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--team-teal);
    text-decoration: none;
    transition: var(--team-transition);
    border-bottom: 1px solid transparent;
}
.about-back-link:hover { border-color: var(--team-teal); }

.about-team-section { background: var(--team-light); padding: 80px 24px; }

.about-container {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.about-profile-card {
    background: var(--team-white);
    border-radius: 20px;
    box-shadow: var(--team-shadow);
    overflow: hidden;
    display: grid;
    grid-template-columns: 220px 1fr;
    scroll-margin-top: 80px;
    transition: box-shadow var(--team-transition);
}
.about-profile-card:hover { box-shadow: 0 16px 48px rgba(42,157,143,.18); }

.about-profile-avatar {
    background: linear-gradient(160deg, var(--team-teal) 0%, var(--team-mid) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.about-profile-avatar img,
.about-avatar-initials {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,.3);
}

.about-avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    background: rgba(255,255,255,.15);
    letter-spacing: -2px;
}

.about-profile-content { padding: 40px 48px; }

.about-profile-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.about-profile-name {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--team-dark);
    margin: 0 0 6px;
}

.about-profile-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--team-teal);
    margin: 0;
}

.about-profile-links { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }

.about-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--team-transition);
    white-space: nowrap;
}
.about-link svg       { width: 15px; height: 15px; flex-shrink: 0; }
.about-link--linkedin { color: #0077b5; }
.about-link--email    { color: var(--team-teal); }
.about-link--phone    { color: var(--team-mid); }
.about-link:hover     { opacity: 0.75; }

.about-profile-bio {
    font-size: 0.97rem;
    color: var(--team-text);
    line-height: 1.85;
    border-top: 1px solid #eee;
    padding-top: 20px;
}
.about-bio-placeholder { color: var(--team-muted); font-style: italic; }

.about-cta-section {
    background: linear-gradient(135deg, var(--team-teal), var(--team-mid));
    padding: 80px 24px;
    text-align: center;
}
.about-cta-inner { max-width: 600px; margin: 0 auto; }
.about-cta-inner h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: white;
    margin: 0 0 12px;
}
.about-cta-inner p { color: rgba(255,255,255,.8); font-size: 1.05rem; margin: 0 0 32px; }

.about-cta-btn {
    display: inline-block;
    padding: 16px 48px;
    background: white;
    color: var(--team-teal);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--team-transition);
}
.about-cta-btn:hover {
    background: var(--team-coral);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,.2);
    text-decoration: none;
}

@media (max-width: 700px) {
    .about-profile-card    { grid-template-columns: 1fr; }
    .about-profile-avatar  { padding: 32px 24px; min-height: 180px; }
    .about-profile-content { padding: 28px 24px; }
    .about-profile-header  { flex-direction: column; }
    .about-profile-links   { flex-direction: row; flex-wrap: wrap; }
}
/* ══════════════════════════════════════════════════════════════
   ABOUT — Company Intro Section
   ══════════════════════════════════════════════════════════════ */
.about-company-section {
    background: var(--team-white);
    padding: 70px 24px;
}

.about-company-container {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.about-company-block h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--team-dark);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--team-teal);
    display: inline-block;
}

.about-company-block p {
    font-size: 1rem;
    color: var(--team-text);
    line-height: 1.85;
    margin: 0 0 14px;
}

.about-team-heading {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--team-dark);
    text-align: center;
    margin: 0 0 48px;
}


/* ── Custom Studies section ─────────────────────────────────── */
.about-custom-section {
    background: var(--color-surface, #f8f9fb);
    padding: 5rem 1.5rem;
}

.about-custom-list {
    margin: 1rem 0 1rem 1.25rem;
    padding: 0;
    list-style: disc;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--color-text, #1a1a2e);
    line-height: 1.7;
}

.about-custom-sublist {
    margin: 0.5rem 0 0.25rem 1.25rem;
    list-style: circle;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* Highlighted block (price callout) */
.about-company-block--highlight {
    background: var(--color-white, #ffffff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-left: 4px solid var(--color-primary, #2563eb);
    border-radius: 0.75rem;
    padding: 2rem 2rem 2rem 2rem;
    margin-top: 0.5rem;
}

.about-company-block--highlight strong {
    color: var(--color-primary, #2563eb);
}

/* Inline CTA button variant */
.about-cta-btn--inline {
    display: inline-block;
    margin-top: 1.5rem;
}