/* =========================================
   IPS — Contacto
   ========================================= */

/* ── Hero ── */
.contacto-hero {
    position: relative;
    min-height: 320px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding-top: var(--header-height);
}

.contacto-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(74,158,63,.15) 0%, transparent 70%);
}

.contacto-hero-content {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 24px 56px;
    width: 100%;
    z-index: 1;
}

.contacto-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 70px;
    pointer-events: none;
}
.contacto-hero-wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

.contacto-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: rgba(255,255,255,.75);
    margin-bottom: 18px;
}
.contacto-breadcrumb a {
    color: rgba(255,255,255,.75);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
.contacto-breadcrumb a:hover { color: #fff; }
.contacto-breadcrumb span   { color: rgba(255,255,255,.95); }

.contacto-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.9);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .5px;
    margin-bottom: 14px;
}

.contacto-hero-title {
    color: #fff;
    font-size: clamp(1.8rem,4vw,2.8rem);
    margin: 0 0 10px;
    font-family: Georgia, serif;
    font-weight: normal;
}
.contacto-hero-desc {
    color: rgba(255,255,255,.8);
    font-size: .97rem;
    max-width: 520px;
    margin: 0;
    line-height: 1.7;
}

/* ── Main layout ── */
.contacto-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    align-items: start;
}

/* ── Form card ── */
.contacto-form-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    padding: 40px;
}
.contacto-form-card h2 {
    font-size: 1.4rem;
    color: var(--primary-dark, #1a3a17);
    margin: 0 0 6px;
    font-family: Georgia, serif;
    font-weight: normal;
}
.contacto-form-subtitle { color: #6b7280; font-size: .88rem; margin: 0 0 28px; }

.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.cf-group { margin-bottom: 18px; }
.cf-group label {
    display: block;
    font-size: .83rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.cf-group label .req { color: #ef4444; }
.cf-group input,
.cf-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: .9rem;
    color: #111;
    transition: border-color .2s;
    box-sizing: border-box;
    background: #fff;
}
.cf-group input:focus,
.cf-group textarea:focus {
    border-color: var(--primary, #2d5a27);
    outline: none;
    box-shadow: 0 0 0 3px rgba(45,90,39,.08);
}
.cf-group textarea { resize: vertical; min-height: 140px; line-height: 1.6; }

.btn-send {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary, #2d5a27);
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s, transform .15s;
}
.btn-send:hover { background: #1e3f1b; transform: translateY(-1px); }

.form-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 10px;
    padding: 18px 20px;
    color: #166534;
    font-size: .9rem;
    line-height: 1.6;
}
.form-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 10px;
    padding: 14px 18px;
    color: #991b1b;
    font-size: .88rem;
    margin-bottom: 18px;
}

/* ── Info sidebar ── */
.contacto-info-col { display: flex; flex-direction: column; gap: 20px; }

.contacto-info-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    padding: 28px;
}
.contacto-info-card h3 {
    font-size: 1rem;
    color: var(--primary-dark, #1a3a17);
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.cic-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}
.cic-item:last-child { border-bottom: none; padding-bottom: 0; }

.cic-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f0fdf4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary, #2d5a27);
}
.cic-icon svg { width: 18px; height: 18px; }

.cic-label {
    font-size: .72rem;
    color: #9ca3af;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 3px;
}
.cic-value { font-size: .9rem; color: #374151; font-weight: 500; }
.cic-value a { color: var(--primary, #2d5a27); text-decoration: none; }
.cic-value a:hover { text-decoration: underline; }

.contacto-social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.contacto-social a {
    width: 36px; height: 36px; border-radius: 9px;
    background: #f0fdf4; color: var(--primary, #2d5a27);
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, color .2s;
}
.contacto-social a:hover { background: var(--primary, #2d5a27); color: #fff; }
.contacto-social svg { width: 17px; height: 17px; }

/* ── Mapa ── */
.contacto-map {
    background: #f8fafc;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contacto-map iframe { width: 100%; height: 100%; border: none; }
.contacto-map-placeholder {
    text-align: center;
    color: #9ca3af;
    padding: 24px;
}
.contacto-map-placeholder svg { width: 48px; height: 48px; margin-bottom: 10px; color: #d1d5db; }
.contacto-map-placeholder p { font-size: .85rem; margin: 0; line-height: 1.5; }

/* ── Responsive ── */
@media (max-width: 820px) {
    .contacto-main { grid-template-columns: 1fr; }
    .cf-row { grid-template-columns: 1fr; }
    .contacto-form-card { padding: 24px; }
}
