/* ==========================================================================
   CONTACT PAGE - LIGHT PREMIUM MONOCHROMATIC
   ========================================================================== */
:root {
    --ct-tinta: #0f172a;        /* Slate 900 - Texto principal y títulos */
    --ct-tinta-suave: #475569;  /* Slate 600 - Párrafos y subtítulos */
    --ct-linea: rgba(15, 23, 42, 0.08); /* Líneas divisorias muy sutiles */
    --ct-fondo: #fafafa;        /* Fondo base editorial */
    --ct-blanco: #ffffff;
    --ct-hover: #f1f5f9;        /* Slate 100 */
}

body.contacto-body {
    background-color: var(--ct-fondo) !important;
    color: var(--ct-tinta-suave);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* ---------- ORBES DE FONDO (GLASSMORPHISM) ---------- */
.orb-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.contacto-orb {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.06) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    filter: blur(40px);
}

.contacto-orb-2 {
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.04) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    filter: blur(60px);
}

/* ---------- HERO SECTION ---------- */
.contacto-hero {
    padding: 160px 24px 60px 24px;
    text-align: center;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--ct-tinta-suave);
    margin-bottom: 24px;
    text-transform: uppercase;
    padding: 6px 14px;
    border: 1px solid var(--ct-linea);
    border-radius: 100px;
}

.contacto-hero::before {
    content: '';
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.15), transparent);
}

.contacto-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 800;
    color: var(--ct-tinta);
    line-height: 1.1;
    margin: 0 0 24px 0;
    letter-spacing: -0.03em;
}

.title-serif {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
}

.contacto-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 400;
    color: var(--ct-tinta-suave);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---------- STATS BAR ---------- */
.stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto 60px auto;
    padding: 0 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-number {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--ct-tinta);
}

.stat-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ct-tinta-suave);
    text-align: center;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--ct-linea);
}

@media (max-width: 768px) {
    .stats-bar {
        flex-direction: column;
        gap: 24px;
    }
    .stat-divider {
        width: 40px;
        height: 1px;
    }
}

/* ---------- MAIN GRID ---------- */
.contacto-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 60px 24px;
}

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

@media (max-width: 900px) {
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

/* ---------- COLUMNA IZQUIERDA: FORMULARIO ---------- */
.contacto-form-wrapper {
    background: var(--ct-blanco);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.04);
    border: 1px solid var(--ct-linea);
    /* Glassmorphism hint */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-header {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ct-tinta);
    margin: 0 0 32px 0;
    letter-spacing: -0.02em;
}

@media (max-width: 600px) {
    .contacto-form-wrapper {
        padding: 30px 20px;
    }
}

/* ---------- MICRO-INTERACTIONS: FLOATING LABELS ---------- */
.form-group.floating {
    position: relative;
    margin-bottom: 32px;
}

.form-group.floating:last-of-type {
    margin-bottom: 40px;
}

.form-group.floating .form-control {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--ct-linea);
    padding: 28px 0 8px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--ct-tinta);
    transition: border-color 0.3s ease;
}

.form-group.floating .form-control:focus {
    outline: none;
    border-bottom-color: var(--ct-tinta);
}

.form-group.floating .form-label {
    position: absolute;
    top: 26px;
    left: 0;
    font-size: 1.1rem;
    font-weight: 400;
    color: #94a3b8;
    pointer-events: none;
    transition: 0.2s ease all;
    text-transform: none;
    letter-spacing: normal;
    margin: 0;
}

/* Cuando el usuario enfoca o cuando el campo NO muestra su placeholder vacio */
.form-group.floating .form-control:focus ~ .form-label,
.form-group.floating .form-control:not(:placeholder-shown) ~ .form-label {
    top: 0px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ct-tinta);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group.floating textarea.form-control {
    resize: vertical;
    min-height: 120px;
    padding-top: 45px; /* Added more padding and specificity to fix mobile overlap */
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--ct-tinta);
    color: var(--ct-blanco);
    border: none;
    padding: 18px 32px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* ---------- COLUMNA DERECHA: CANALES DIRECTOS (PREMIUM REDESIGN) ---------- */
.contacto-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 300;
    color: var(--ct-tinta);
    margin: 0;
    line-height: 1.2;
}

.info-title-serif {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
}

/* --- WHATSAPP HERO CARD --- */
.channel-hero-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 32px;
    background: var(--ct-tinta);
    border-radius: 20px;
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.channel-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.channel-hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
}

.channel-hero-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(5px);
}

.channel-hero-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot-green {
    width: 8px;
    height: 8px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 0 10px #25D366;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.status-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.channel-hero-body {
    display: flex;
    align-items: center;
    gap: 18px;
}

.channel-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: #25D366;
    border-radius: 14px;
    flex-shrink: 0;
}

.channel-hero-icon svg {
    width: 28px;
    height: 28px;
    fill: #ffffff;
}

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

.channel-hero-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #ffffff;
}

.channel-hero-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.channel-hero-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff;
}

/* --- ARROW INDICATOR --- */
.card-arrow {
    font-size: 1.1rem;
    opacity: 0.4;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* --- MINI CARDS GRID --- */
.channel-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 600px) {
    .channel-mini-grid {
        grid-template-columns: 1fr;
    }
}

.channel-mini-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 22px 18px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
    position: relative;
}

.channel-mini-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border-color: rgba(15, 23, 42, 0.12);
}

.channel-mini-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.channel-mini-card .card-arrow {
    position: absolute;
    top: 22px;
    right: 18px;
    font-size: 0.95rem;
    color: var(--ct-tinta-suave);
}

.mini-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--ct-tinta);
    border-radius: 10px;
    flex-shrink: 0;
}

.mini-icon svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.mini-icon--linkedin {
    background: #0A66C2;
}

.mini-icon--instagram {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.mini-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ct-tinta);
    line-height: 1.3;
}

.mini-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--ct-tinta-suave);
    word-break: break-all;
}


/* ---------- PURE CSS ENTRY ANIMATIONS ---------- */
@keyframes smoothFadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-up {
    opacity: 0;
    animation: smoothFadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 0.2s; }
.delay-200 { animation-delay: 0.4s; }
.delay-300 { animation-delay: 0.6s; }


/* ---------- SECCIÓN EXPLORA MÁS (EDITORIAL CAROUSEL) ---------- */
.explore-section {
    padding: 80px 24px 120px;
    background-color: transparent;
    max-width: 1200px;
    margin: 0 auto;
}

.explore-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    color: var(--ct-tinta);
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
}

.explore-carousel-wrapper {
    position: relative;
    width: 100%;
}

.explore-carousel {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 20px 20px 40px 20px; /* Padding for shadows to not clip */
    margin: -20px; /* Offset the padding visually */
    
    /* Ocultar barra de scroll nativa */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.explore-carousel::-webkit-scrollbar {
    display: none;
}

.explore-card {
    flex: 0 0 calc(33.333% - 22px);
    min-width: 300px;
    scroll-snap-align: center;
    
    /* Fondo Premium Monolito */
    background: radial-gradient(circle at 100% 0%, #0a1120 0%, #03060c 60%, #000000 100%);
    border: 1px solid rgba(255, 255, 255, 0.03);
    
    border-radius: 20px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.card-watermark {
    position: absolute;
    right: -10px;
    bottom: -30px;
    font-family: 'Playfair Display', serif;
    font-size: 10rem;
    font-weight: 700;
    font-style: italic;
    color: #ffffff;
    opacity: 0.02;
    line-height: 1;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

@media (max-width: 900px) {
    .explore-card {
        flex: 0 0 85%;
    }
}

.explore-card:hover {
    box-shadow: 0 15px 40px rgba(0, 81, 255, 0.15), 0 0 80px rgba(0, 81, 255, 0.05);
    border-color: rgba(0, 81, 255, 0.3);
}

.explore-card:hover .card-watermark {
    opacity: 0.04;
    transform: scale(1.05) translate(-10px, -10px);
}

.explore-eyebrow {
    position: relative;
    z-index: 2;
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.explore-card-title {
    position: relative;
    z-index: 2;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px 0;
}

.explore-card-desc {
    position: relative;
    z-index: 2;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 40px 0;
    flex-grow: 1;
}

.explore-btn {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    background: transparent;
    border-radius: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    transition: border-color 0.4s ease;
}

.explore-card:hover .explore-btn {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
}

.explore-arrow {
    opacity: 0.5;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.explore-card:hover .explore-arrow {
    opacity: 1;
    transform: translateX(8px);
}

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(15, 23, 42, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.carousel-dots .dot.active {
    background-color: var(--ct-tinta);
    transform: scale(1.3);
}

/* Mensajes de respuesta del formulario (Premium Redesign) */
.form-msg {
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideUpMsg 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.form-msg.exito {
    background: var(--ct-tinta);
    color: #ffffff;
    border-left: 4px solid #00ff66;
}
.form-msg.exito::before {
    content: "✓";
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    background: rgba(0, 255, 102, 0.15);
    color: #00ff66;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-msg.error {
    background: var(--ct-tinta);
    color: #ffffff;
    border-left: 4px solid #ff3b30;
}
.form-msg.error::before {
    content: "!";
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 59, 48, 0.15);
    color: #ff3b30;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Captcha */
.h-captcha {
    margin: 1.25rem 0;
}
@media (max-width: 400px) {
    .h-captcha {
        transform: scale(0.88);
        transform-origin: 0 0;
    }
}

/* Teléfono y Select Específicos */
.phone-group {
    margin-bottom: 32px;
}
.form-label-static {
    display: block;
    margin-bottom: .45rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ct-tinta);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.phone-row {
    display: flex;
    gap: .6rem;
    align-items: stretch;
}
.phone-group .form-control {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--ct-linea);
    padding: 10px 0 8px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--ct-tinta);
    transition: border-color 0.3s ease;
}
.phone-group .form-control:focus {
    outline: none;
    border-bottom-color: var(--ct-tinta);
}
.phone-row .select-pais {
    flex: 0 1 42%;
    max-width: 190px;
    min-width: 0;
    text-overflow: ellipsis;
    cursor: pointer;
    /* Remover flecha de dropdown nativa si se desea, o dejarla */
}
.phone-row input[type="tel"] { 
    flex: 1 1 auto; 
    min-width: 0; 
}

.form-hint {
    display: block;
    margin-top: .35rem;
    font-size: .8rem;
    opacity: .6;
    color: var(--tr-gray);
}

.form-check {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: -0.25rem 0 1.25rem;
}
.form-check input[type="checkbox"] {
    width: 1.05rem; 
    height: 1.05rem;
    flex: 0 0 auto;
    accent-color: var(--ct-tinta);
    cursor: pointer;
}
.form-check label { 
    font-size: .9rem; 
    opacity: .8; 
    cursor: pointer; 
    margin: 0; 
    color: var(--ct-tinta);
}

@media (max-width: 420px) {
    .phone-row { flex-wrap: wrap; }
    .phone-row .select-pais { flex: 1 1 100%; max-width: none; }
}

/* Ocultar paginacion en PC donde no hay scroll */
@media (min-width: 1024px) {
    .carousel-dots { display: none !important; }
}
