/**
 * OR64 - Contacto — Equipo comercial
 * Premium corporativo, fondo blanco, tarjetas editoriales
 */

/* Kill body/main padding */
body.page-contacto,
body.page-contacto main {
    padding: 0 !important;
    margin: 0 !important;
}

/* ==============================================
   HERO — Mismo patrón que home/ubicación/servicios
   ============================================== */
.cto-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    text-align: center;
    overflow: hidden;
}

.cto-hero__content {
    position: relative;
    z-index: 1;
    padding: 0 24px;
}

.cto-hero__eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 24px;
    margin-bottom: 24px;
    opacity: 0;
    animation: ctoFadeUp 0.7s ease-out 0.2s forwards;
}

.cto-hero__title {
    font-family: var(--ds-font-heading);
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #fff;
    margin: 0;
    opacity: 0;
    animation: ctoFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

.cto-hero__scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.2);
    animation: ctoBounce 2.5s ease-in-out infinite;
}

@keyframes ctoBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

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

/* ==============================================
   EQUIPO — Fondo blanco, corporativo
   ============================================== */
.cto-equipo {
    padding: clamp(80px, 10vw, 140px) 24px;
    background: #fff;
}

.cto-equipo__container {
    max-width: 1200px;
    margin: 0 auto;
}

.cto-equipo__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(0, 0, 0, 0.06);
}

/* ==============================================
   CARD — Fondo blanco, iniciales gigantes como marca
   ============================================== */
.cto-card {
    position: relative;
    background: #fff;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    opacity: 0;
    transform: translateY(24px);
    animation: ctoFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--i) * 0.1s + 0.15s);
}

/* Línea accent top — entra al hover */
.cto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #e8732e;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.cto-card:hover::before {
    transform: scaleX(1);
}

/* Iniciales gigantes — marca gráfica */
.cto-card__mono {
    position: absolute;
    right: -4px;
    bottom: -16px;
    font-family: var(--ds-font-heading);
    font-size: 160px;
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
    color: rgba(0, 0, 0, 0.03);
    user-select: none;
    pointer-events: none;
    transition: color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cto-card:hover .cto-card__mono {
    color: rgba(232, 115, 46, 0.06);
}

/* Cuerpo */
.cto-card__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 36px 32px;
    width: 100%;
    transition: background 0.35s ease;
}

.cto-card:hover .cto-card__body {
    background: rgba(0, 0, 0, 0.015);
}

.cto-card__top {
    flex: 1;
}

.cto-card__name {
    font-family: var(--ds-font-heading);
    font-size: 19px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.cto-card__areas {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cto-card__area {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 5px 10px;
    line-height: 1;
    transition: border-color 0.3s, color 0.3s;
}

.cto-card:hover .cto-card__area {
    border-color: rgba(232, 115, 46, 0.25);
    color: rgba(0, 0, 0, 0.55);
}

/* Contacto */
.cto-card__bottom {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.cto-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.45);
    text-decoration: none;
    transition: color 0.25s;
    padding: 3px 0;
}

.cto-card__link:hover {
    color: #e8732e;
}

.cto-card__link svg {
    flex-shrink: 0;
    opacity: 0.3;
    transition: opacity 0.25s;
}

.cto-card__link:hover svg {
    opacity: 0.8;
}

.cto-card__link--email span {
    word-break: break-all;
}

/* ==============================================
   BANDA INFO — Oscura, contraste con las cards
   ============================================== */
.cto-band {
    background: #1a1a1a;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cto-band__container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 48px;
}

.cto-band__left,
.cto-band__center,
.cto-band__right {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cto-band__center {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.cto-band__label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
}

.cto-band__value {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}

a.cto-band__value:hover {
    color: #fff;
}

.cto-band__sep {
    color: rgba(255, 255, 255, 0.15);
}

.cto-band__right {
    text-align: right;
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 1024px) {
    .cto-equipo__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cto-card__mono {
        font-size: 130px;
    }

    .cto-band__container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 32px 24px;
    }

    .cto-band__left,
    .cto-band__right {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .cto-hero {
        height: 50vh;
        min-height: 320px;
    }

    .cto-equipo {
        padding: 48px 0;
    }

    .cto-equipo__grid {
        grid-template-columns: 1fr;
    }

    .cto-card {
        min-height: auto;
    }

    .cto-card__mono {
        font-size: 100px;
    }

    .cto-card__body {
        padding: 28px 24px;
    }

    .cto-card__name {
        font-size: 17px;
    }

    .cto-band__center {
        flex-direction: column;
        gap: 6px;
    }

    .cto-band__sep {
        display: none;
    }
}
