/* ==========================================================
   contacto.css — Estilos de la página Contáctanos
   Ubicación: css/contacto.css
   (se carga DESPUÉS de css/styles.css)
   ========================================================== */

:root {
    --ct-navy: #1f4468;       /* Cambia por el azul de tu marca */
    --ct-navy-dark: #0a2a5e;
    --ct-accent: #f28c1b;     /* Cambia por el naranja de tu marca */
    --ct-green: #25d366;
    --ct-soft: #f4f5f7;
    --ct-text: #4a5568;
    --ct-error: #d93025;
}

/* ===== Hero con banner, título y subtítulo ===== */
.hero.hero-contacto {
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    background:
        linear-gradient(rgba(6, 24, 56, .78), rgba(6, 24, 56, .9)),
        url("../assets/contacto-banner.jpg") center / cover no-repeat,
        url("../assets/servicio-otros.jpg") center / cover no-repeat !important;
    background-color: var(--ct-navy-dark) !important;
}
.hero.hero-contacto .hero-overlay,
.hero.hero-contacto .hero-wave {
    display: none !important;
}
.ct-hero-title {
    text-align: center;
    color: #fff;
    padding: 60px 20px 70px;
}
.ct-hero-title h1 {
    margin: 0 0 8px;
    font-size: 46px;
    font-weight: 600;
}
.ct-hero-title p {
    margin: 0 auto;
    max-width: 640px;
    font-size: 17px;
    line-height: 1.6;
    opacity: .95;
}

/* ===== Panel principal ===== */
.ct-section {
    padding: 50px 0 30px;
    background: #fff;
}
.ct-panel {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 50px;
    align-items: start;
    background: var(--ct-soft);
    border-radius: 18px;
    padding: 56px 52px;
}

/* ----- Columna izquierda: medios de contacto ----- */
.ct-info h2 {
    margin: 0 0 10px;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.25;
    color: #1c2433;
}
.ct-info > p {
    margin: 0 0 28px;
    font-size: 14px;
    line-height: 1.7;
    color: #6b7280;
}
.ct-cards {
    display: grid;
    gap: 14px;
}
.ct-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    background: #fff;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(10, 42, 94, .05);
    border: 1px solid transparent;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
a.ct-card:hover {
    transform: translateX(6px);
    border-color: var(--ct-accent);
    box-shadow: 0 10px 26px rgba(10, 42, 94, .12);
}
.ct-card-icon {
    flex: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(242, 140, 27, .12);
    color: var(--ct-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    transition: background .3s, color .3s;
}
a.ct-card:hover .ct-card-icon {
    background: var(--ct-accent);
    color: #fff;
}
.ct-card strong {
    display: block;
    font-size: 14px;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--ct-navy);
}
.ct-card span {
    display: block;
    margin-top: 2px;
    font-size: 13.5px;
    color: #6b7280;
    line-height: 1.5;
}

/* Estado de atención (abierto / cerrado) */
.ct-open {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    background: #e8f7ee;
    color: #1a8d4f;
}
.ct-open::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}
.ct-open.closed {
    background: #fdecea;
    color: var(--ct-error);
}
.ct-open[hidden] {
    display: none;
}

/* Botón de WhatsApp y redes */
.ct-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
    padding: 15px 24px;
    border-radius: 12px;
    background: var(--ct-green);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(37, 211, 102, .35);
    transition: transform .3s, background .3s;
}
.ct-wa i {
    font-size: 22px;
}
.ct-wa:hover {
    background: #1ebe5b;
    transform: translateY(-3px);
}
.ct-social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    font-size: 13px;
    color: #6b7280;
}
.ct-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--ct-navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background .3s, transform .3s;
}
.ct-social a:hover {
    background: var(--ct-accent);
    transform: translateY(-3px);
}

/* ----- Columna derecha: formulario ----- */
.ct-form-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 32px 30px 30px;
    box-shadow: 0 14px 40px rgba(10, 42, 94, .1);
}
.ct-form-card h3 {
    margin: 0 0 4px;
    font-size: 20px;
    color: var(--ct-navy-dark);
}
.ct-form-card .ct-sub {
    margin: 0 0 22px;
    font-size: 13.5px;
    color: #6b7280;
}
.ct-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
}
.ct-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.ct-field.full {
    grid-column: 1 / -1;
}
.ct-field label {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}
.ct-field label em {
    font-style: normal;
    font-weight: 400;
    color: #9ca3af;
}
.ct-field label b {
    color: var(--ct-error);
}
.ct-field input,
.ct-field select,
.ct-field textarea {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #d5d8dd;
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    color: #222;
    transition: border-color .2s, box-shadow .2s;
}
.ct-field textarea {
    height: auto;
    min-height: 130px;
    padding: 12px 14px;
    resize: vertical;
    line-height: 1.6;
}
.ct-field select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231f4468' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}
.ct-field input::placeholder,
.ct-field textarea::placeholder {
    color: #aab0ba;
}
.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
    outline: none;
    border-color: var(--ct-navy);
    box-shadow: 0 0 0 3px rgba(31, 68, 104, .15);
}
.ct-field.invalid input,
.ct-field.invalid select,
.ct-field.invalid textarea {
    border-color: var(--ct-error);
    background: #fffafa;
}
.ct-field.invalid input:focus,
.ct-field.invalid select:focus,
.ct-field.invalid textarea:focus {
    box-shadow: 0 0 0 3px rgba(217, 48, 37, .15);
}
.ct-error {
    min-height: 0;
    margin-top: 5px;
    font-size: 12px;
    color: var(--ct-error);
}
.ct-error:empty {
    display: none;
}
.ct-count {
    align-self: flex-end;
    margin-top: 4px;
    font-size: 11.5px;
    color: #9ca3af;
}

/* Campo trampa anti-spam (no visible para personas) */
.ct-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Privacidad */
.ct-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    line-height: 1.55;
    color: #6b7280;
    cursor: pointer;
}
.ct-check input {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--ct-navy);
}

/* Botones */
.ct-actions {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}
.ct-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .25s, transform .25s, opacity .25s;
}
.ct-btn.primary {
    background: var(--ct-navy);
    color: #fff;
}
.ct-btn.primary:hover:not(:disabled) {
    background: var(--ct-accent);
    transform: translateY(-2px);
}
.ct-btn.wa {
    background: #fff;
    color: #1a8d4f;
    border: 1.5px solid var(--ct-green);
}
.ct-btn.wa:hover {
    background: var(--ct-green);
    color: #fff;
    transform: translateY(-2px);
}
.ct-btn:disabled {
    opacity: .65;
    cursor: wait;
}
.ct-or {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #9ca3af;
}
.ct-or::before,
.ct-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}
.ct-spin {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ct-spin .7s linear infinite;
}
@keyframes ct-spin {
    to { transform: rotate(360deg); }
}

/* Mensaje de estado del formulario */
.ct-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.5;
    background: #fdecea;
    color: #a3221a;
}
.ct-status[hidden] {
    display: none;
}

/* Panel de éxito */
.ct-success {
    text-align: center;
    padding: 30px 10px;
    animation: ct-rise .5s ease both;
}
.ct-success[hidden] {
    display: none;
}
.ct-success-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #e8f7ee;
    color: #1fa463;
    font-size: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ct-pop .6s ease both;
}
.ct-success h3 {
    margin: 0 0 8px;
    font-size: 24px;
    color: var(--ct-navy-dark);
}
.ct-success p {
    margin: 0 auto 22px;
    max-width: 380px;
    line-height: 1.7;
    color: var(--ct-text);
    font-size: 14.5px;
}
.ct-success .ct-btn {
    width: auto;
    padding: 0 30px;
    margin: 0 auto;
}
@keyframes ct-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes ct-pop {
    0%   { transform: scale(.4); opacity: 0; }
    70%  { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

/* ===== Mapa ===== */
.ct-map-section {
    padding: 30px 0 70px;
    background: #fff;
}
.ct-map-head {
    text-align: center;
    margin-bottom: 26px;
}
.ct-map-head h2 {
    margin: 0 0 8px;
    font-size: 28px;
    color: var(--ct-navy-dark);
}
.ct-map-head p {
    margin: 0;
    color: var(--ct-text);
    font-size: 14.5px;
}
.ct-map-line {
    width: 70px;
    height: 4px;
    border-radius: 4px;
    background: var(--ct-accent);
    margin: 14px auto 0;
}
.ct-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(10, 42, 94, .14);
    line-height: 0;
}
.ct-map iframe {
    width: 100%;
    height: 380px;
    border: 0;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .ct-panel {
        grid-template-columns: 1fr;
        padding: 40px 28px;
        gap: 36px;
    }
}
@media (max-width: 640px) {
    .ct-panel {
        padding: 28px 16px;
        border-radius: 14px;
    }
    .ct-info h2 {
        font-size: 26px;
    }
    .ct-grid {
        grid-template-columns: 1fr;
    }
    .ct-form-card {
        padding: 24px 18px;
    }
    .ct-hero-title {
        padding: 44px 20px 52px;
    }
    .ct-hero-title h1 {
        font-size: 36px;
    }
    .ct-map iframe {
        height: 300px;
    }
}
