/* ============================================================
   Contacto — EAVicar
   ============================================================ */

#cto-page {
    font-family: 'Open Sans', sans-serif;
}

/* ---- HERO ---- */
.cto-hero {
    position: relative;
    min-height: 68vh;
    background-size: cover;
    background-position: center 40%;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.cto-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,46,62,0.90) 0%, rgba(46,163,242,0.48) 100%);
}
.cto-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1080px;
    margin: 0 auto;
    padding: 120px 40px 80px;
    width: 100%;
}
.cto-eyebrow {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.88);
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.cto-hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    margin: 0 0 18px;
    line-height: 1.1;
    color: #fff;
}
.cto-hero p {
    font-size: 1.1rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.84);
    margin: 0;
    max-width: 600px;
}
@media (max-width: 768px) {
    .cto-hero { min-height: 52vh; background-attachment: scroll; }
    .cto-hero-inner { padding: 100px 24px 60px; }
}

/* ---- TARJETAS DE DATOS ---- */
.cto-info-section {
    background: #fff;
    padding: 64px 20px 56px;
}
.cto-info-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.cto-info-card {
    background: #f0f6fc;
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cto-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(46,163,242,0.14);
}
.cto-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #2ea3f2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cto-info-icon svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.cto-info-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #2ea3f2;
    margin: 0;
}
.cto-info-value {
    font-size: 15px;
    font-weight: 700;
    color: #1a2e3e;
    margin: 0;
    line-height: 1.4;
}
.cto-info-value a {
    color: #1a2e3e;
    text-decoration: none;
    transition: color 0.2s;
}
.cto-info-value a:hover {
    color: #2ea3f2;
}
.cto-info-sub {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}
@media (max-width: 1024px) {
    .cto-info-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .cto-info-inner { grid-template-columns: 1fr; }
    .cto-info-section { padding: 44px 20px 40px; }
}

/* ---- SECCIÓN FORMULARIO + MAPA ---- */
.cto-main-section {
    background: #f0f6fc;
    padding: 72px 20px 80px;
}
.cto-main-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Cabecera de sección */
.cto-section-header {
    margin-bottom: 28px;
}
.cto-section-tag {
    display: inline-block;
    background: #daeefa;
    color: #2ea3f2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 10px;
}
.cto-section-header h2 {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    color: #1a2e3e;
    margin: 0;
}

/* ---- FORMULARIO ---- */
.cto-form-col {
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.07);
}
.cto-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.cto-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.cto-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cto-form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #1a2e3e;
}
.cto-form-group input,
.cto-form-group select,
.cto-form-group textarea {
    border: 1.5px solid #cde5f7;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #1a2e3e;
    background: #f7fbff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}
.cto-form-group input:focus,
.cto-form-group select:focus,
.cto-form-group textarea:focus {
    border-color: #2ea3f2;
    box-shadow: 0 0 0 3px rgba(46,163,242,0.12);
    background: #fff;
}
.cto-form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.cto-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.cto-form-legal {
    font-size: 12px;
    color: #888;
    margin: 0;
    line-height: 1.5;
}
.cto-form-legal a {
    color: #2ea3f2;
}
.cto-btn-send {
    background: #2ea3f2;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 13px 32px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}
.cto-btn-send:hover {
    background: #1a8fd9;
    transform: translateY(-1px);
}
.cto-btn-send:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}
.cto-form-status {
    font-size: 14px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    display: none;
}
.cto-form-status.ok {
    display: block;
    background: #e8f7ed;
    color: #1a7a35;
    border: 1px solid #a8ddb8;
}
.cto-form-status.error {
    display: block;
    background: #fdecea;
    color: #b71c1c;
    border: 1px solid #f5c6c2;
}

/* ---- MAPA ---- */
.cto-map-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.cto-map-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 32px rgba(0,0,0,0.10);
    min-height: 460px;
    flex: 1;
}
.cto-map-wrap iframe {
    width: 100%;
    height: 100%;
    min-height: 460px;
    border: none;
    display: block;
}
.cto-map-address {
    background: #fff;
    border-radius: 14px;
    padding: 20px 22px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.cto-map-address svg {
    width: 20px;
    height: 20px;
    stroke: #2ea3f2;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
    margin-top: 2px;
}
.cto-map-address p {
    margin: 0;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}
.cto-map-address strong {
    display: block;
    color: #1a2e3e;
    font-weight: 700;
    margin-bottom: 2px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .cto-main-inner {
        grid-template-columns: 1fr;
    }
    .cto-map-wrap { min-height: 300px; }
}
@media (max-width: 600px) {
    .cto-form-col { padding: 24px 20px; }
    .cto-form-row-2 { grid-template-columns: 1fr; gap: 0; }
    .cto-form-footer { flex-direction: column; align-items: flex-start; }
    .cto-btn-send { width: 100%; text-align: center; }
    .cto-main-section { padding: 48px 16px 56px; }
}

/* CAPTCHA — inline compacto, alineado a la derecha */
.cto-captcha-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
    margin-bottom: 4px;
}
.cto-captcha-group label {
    margin: 0;
    font-size: 13px;
    white-space: nowrap;
}
.cto-captcha-group input[type="number"] {
    width: 72px !important;
    max-width: 72px !important;
    text-align: center;
    padding: 8px 10px;
}
