/* =============================================
   Contact Page — Liam Vercceli
   ============================================= */

/* Anclas del menú (#direcciones, #formulario, #mapa) — compensar header fijo */
.ct-anchor-section,
#direcciones,
#formulario,
#mapa {
    scroll-margin-top: 140px;
}

/* ── Hero compacto (antes 320px → < mitad) ─ */
.ct-hero {
    position: relative;
height: 14rem;
    max-height: 14rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
}
.ct-hero__bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1441984904996-e0b6ba687e04?w=1600&q=80') center/cover no-repeat;
    transform: scale(1.06);
    transition: transform 5s ease;
}
.ct-hero__bg.zoomed { transform: scale(1); }
.ct-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.75) 0%, rgba(30,30,30,.5) 100%);
}
.ct-hero__content {
    position: relative;
    text-align: center;
    color: #fff;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .8s ease .2s, transform .8s ease .2s;
    padding: 0 16px;
}
.ct-hero__content.visible { opacity: 1; transform: translateY(0); }
.ct-hero__tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,.65);
    display: block;
    margin-bottom: 6px;
}
.ct-hero__title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(30px, 2.4vw, 24px);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2px;
    line-height: 1.60;
}
.ct-hero__title span { color: #e74c3c; }
.ct-hero__sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,.75);
    margin: 0;
}

/* ── Sección principal ───────────────────── */
.ct-main { padding: 36px 0 0; }

/* ── Info cards fila ─────────────────────── */
.ct-info-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}
.ct-info-card {
    background: #fff;
    border: 1px solid #efefef;
    border-radius: 8px;
    padding: 30px 22px;
    text-align: center;
    transition: transform .3s, box-shadow .3s, border-color .3s;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s ease, transform .5s ease, box-shadow .3s, border-color .3s;
    word-wrap: break-word;       /* Rompe textos muy largos de forma segura */
    word-break: break-word;      /* Evita que los correos o números se salgan del borde */
    overflow-wrap: break-word;
}
.ct-info-card.visible { opacity: 1; transform: translateY(0); }
.ct-info-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,.09);
    border-color: #c0392b;
}
.ct-info-card__icon {
    width: 56px;
    height: 56px;
    background: #fff0ee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 22px;
    color: #c0392b;
    transition: background .3s;
}
.ct-info-card:hover .ct-info-card__icon { background: #c0392b; color: #fff; }
.ct-info-card__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 8px;
}
.ct-info-card__text {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #777;
    line-height: 1.7;
}
.ct-info-card__text a {
    color: #c0392b;
    text-decoration: none;
    font-weight: 600;
}
/* 4. Modo Celular (Menos de 575px) -> ¡2 por fila estables y de la misma medida! */
@media (max-width: 575px) {
    .ct-row { flex-direction: column; }
    .ct-info-row { 
        grid-template-columns: 1fr 1fr; /* Mantiene las 2 tarjetas iguales */
        gap: 12px;                      /* Reducimos el espacio un poco para ganar área interna */
        margin-bottom: 40px;            /* Espacio controlado con el formulario en móvil */
    }
    .ct-form-wrap { padding: 24px 18px; }
    .ct-side-panel { grid-template-columns: 1fr; }
    .ct-map-wrap { height: 300px; }
    
    /* Achicamos un pelín la letra en celular para que encaje impecable */
    .ct-info-card__title { font-size: 14px; }
    .ct-info-card__text { font-size: 12px; }
}

/* ── Layout formulario + extra ───────────── */
.ct-form-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 50px;
    margin-bottom: 0;
    align-items: flex-start;
}

/* ── Formulario ──────────────────────────── */
.ct-form-wrap {
    background: #fff;
    border: 1px solid #efefef;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
}
.ct-form-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.ct-form-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #aaa;
    margin-bottom: 28px;
}

.ct-row { display: flex; gap: 16px; margin-bottom: 18px; }
.ct-row.single { flex-direction: column; }
.ct-field { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ct-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #555;
}
.ct-input,
.ct-textarea,
.ct-select {
    width: 100%;
    border: 1.5px solid #e0e0e0;
    border-radius: 4px;
    padding: 11px 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #333;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    background: #fafafa;
    appearance: none;
}
.ct-input::placeholder,
.ct-textarea::placeholder { color: #bbb; }
.ct-input:focus,
.ct-textarea:focus,
.ct-select:focus {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192,57,43,.08);
    background: #fff;
}
.ct-textarea { resize: vertical; min-height: 130px; }

/* Selector asunto */
.ct-select-wrap { position: relative; }
.ct-select-wrap::after {
    content: '\f107';
    font-family: FontAwesome;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
}

/* Checkbox términos */
.ct-check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    color: #666;
    line-height: 1.5;
}
.ct-check-row input { accent-color: #c0392b; margin-top: 2px; flex-shrink: 0; }
.ct-check-row a { color: #c0392b; text-decoration: underline; }

/* Botón enviar */
.ct-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: #c0392b;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    /* text-transform: uppercase; */
    cursor: pointer;
    transition: background .2s, transform .15s;
    position: relative;
    overflow: hidden;
}
.ct-submit-btn:hover { background: #a93226; transform: translateY(-1px); }
.ct-submit-btn:active { transform: translateY(0); }

/* Ripple effect */
.ct-submit-btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    background: rgba(255,255,255,.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: width .4s ease, height .4s ease, opacity .4s ease;
    opacity: 0;
}
.ct-submit-btn:active::after { width: 300px; height: 300px; opacity: 1; }

/* Mensaje de éxito */
.ct-success-msg {
    display: none;
    text-align: center;
    padding: 20px;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 6px;
    margin-top: 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #2e7d32;
    font-weight: 600;
}
.ct-success-msg i { font-size: 20px; display: block; margin-bottom: 8px; }

/* ── Panel derecho ───────────────────────── */
.ct-side-panel { display: flex; flex-direction: column; gap: 20px; }

/* WhatsApp directo — rediseño premium */
.ct-wa-card {
    position: relative;
    overflow: hidden;
    background: #111;
    border-radius: 14px;
    padding: 36px 28px 32px;
    color: #fff;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,.22);
}
.ct-wa-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(37,211,102,.18) 0%, transparent 70%);
    pointer-events: none;
}
.ct-wa-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(37,211,102,.10) 0%, transparent 70%);
    pointer-events: none;
}
.ct-wa-icon-wrap {
    width: 68px;
    height: 68px;
    background: rgba(37,211,102,.12);
    border: 1.5px solid rgba(37,211,102,.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.ct-wa-icon-wrap i,
.ct-wa-icon-wrap svg {
    font-size: 28px;
    width: 32px;
    height: 32px;
    color: #25d366;
    fill: #25d366;
    line-height: 1;
}
.ct-wa-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #fff;
}
.ct-wa-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,.6);
    margin-bottom: 24px;
    line-height: 1.7;
}
.ct-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: #25d366;
    color: #fff;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(37,211,102,.35);
}
.ct-wa-btn:hover {
    background: #20ba5a;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,211,102,.45);
}

/* Redes sociales — rediseño premium */
.ct-social-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    padding: 26px 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
}
.ct-social-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 18px;
    text-align: center;
}
.ct-social-list {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.ct-social-btn {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.ct-social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
    text-decoration: none;
    color: #fff;
}
.ct-social-btn.fb  { background: #1877f2; }
.ct-social-btn.ig  { background: linear-gradient(135deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.ct-social-btn.tt  { background: #010101; }
.ct-social-btn.wa  { background: #25d366; }
.ct-social-btn.yt  { background: #ff0000; }

/* Horario */
.ct-hours-card {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    padding: 24px 28px;
}
.ct-hours-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 16px;
}
.ct-hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}
.ct-hours-row:last-child { border-bottom: none; }
.ct-hours-row .day { font-weight: 600; color: #1a1a1a; }
.ct-hours-row .time {
    background: #fff0ee;
    color: #c0392b;
    font-weight: 700;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: .5px;
}

/* ── Mapa ────────────────────────────────── */
.ct-map-section {
    margin-top: 60px;
    position: relative;
}
.ct-map-header {
    text-align: center;
    margin-bottom: 28px;
}
.ct-map-header span {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #c0392b;
    display: block;
    margin-bottom: 8px;
}
.ct-map-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: 1px;
}
.ct-map-wrap {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
}
.ct-map-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
/* Overlay info sobre el mapa */
.ct-map-info {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: rgba(255,255,255,.97);
    border-radius: 8px;
    padding: 18px 22px;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    min-width: 220px;
}
.ct-map-info h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}
.ct-map-info p {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}
.ct-map-info p i { color: #c0392b; margin-right: 5px; }

/* ── Responsive ──────────────────────────── */
@media (max-width: 991px) {
    .ct-info-row { grid-template-columns: repeat(2, 1fr); }
    .ct-form-layout { grid-template-columns: 1fr; }
    .ct-side-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .ct-wa-card { grid-column: 1 / -1; }
}
@media (max-width: 575px) {
    .ct-row { flex-direction: column; }
    .ct-info-row { grid-template-columns: 1fr 1fr; }
    .ct-form-wrap { padding: 24px 18px; }
    .ct-side-panel { grid-template-columns: 1fr; }
    .ct-map-wrap { height: 300px; }
}

/* ── Botón Abrir en Maps ── */
.ct-map-open-btn {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    color: #1a1a1a;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0,0,0,.18);
    transition: background .18s, color .18s, box-shadow .18s;
    border: 1.5px solid rgba(0,0,0,.08);
}
.ct-map-open-btn svg { fill: #c0392b; flex-shrink: 0; }
.ct-map-open-btn:hover {
    background: #c0392b;
    color: #fff;
    box-shadow: 0 4px 18px rgba(192,57,43,.35);
    text-decoration: none;
}
.ct-map-open-btn:hover svg { fill: #fff; }

/* ── Variante Llamada Telefónica ── */
.ct-call-card::before { background: radial-gradient(circle, rgba(192,57,43,.18) 0%, transparent 70%); }
.ct-call-card::after  { background: radial-gradient(circle, rgba(192,57,43,.10) 0%, transparent 70%); }
.ct-call-icon-wrap {
    background: rgba(192,57,43,.12);
    border: 1.5px solid rgba(192,57,43,.35);
}
.ct-call-icon-wrap svg { fill: #c0392b; }
.ct-call-btn {
    background: #c0392b;
    box-shadow: 0 4px 16px rgba(192,57,43,.35);
    color: #fff;
}
.ct-call-btn:hover { background: #a93226; color: #fff; }
