/*
 * Contacto (pages/empresa/contacto.php). Se carga además de common.css ($pageCss = 'contacto')
 * y usa sus variables (variables.css). CSS propio de esta página: los
 * bloques que comparte con las demás páginas informativas (cabecera,
 * tarjetas, formulario...) están copiados en cada una a propósito.
 */

/* ---------- Cabecera de página ---------- */

.info-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1200px 400px at 85% -10%, rgba(46, 156, 99, .18), transparent 60%),
        radial-gradient(800px 300px at -10% 110%, rgba(242, 160, 61, .14), transparent 60%),
        var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.info-hero .breadcrumb {
    font-size: 13px;
    margin-bottom: 18px;
}

.info-hero .breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.info-hero .breadcrumb a:hover {
    color: var(--color-primary-dark);
}

.info-hero h1 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -.02em;
    font-size: clamp(28px, 4.2vw, 44px);
    line-height: 1.1;
    margin: 10px 0 14px;
}

.info-hero__lead {
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 0;
}

.info-hero__aside {
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-hero__icon {
    width: 140px;
    height: 140px;
    border-radius: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
    color: var(--color-primary);
    background: var(--color-primary-soft);
    box-shadow: var(--shadow-float);
    transform: rotate(-6deg);
}

.info-hero__acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

/* ---------- Secciones y tarjetas ---------- */

.info-section {
    padding: 56px 0;
}

.info-section--alt {
    background: var(--color-surface-2);
}

@media (min-width: 992px) {
    .info-section {
        padding: 80px 0;
    }
}

.info-card {
    height: 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-xs);
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.info-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--color-primary-dark);
    background: var(--color-primary-soft);
    margin-bottom: 16px;
}

.info-card__icon--accent {
    color: #9a5a10;
    background: var(--color-accent-soft);
}

.info-card h3 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
}

.info-card p,
.info-card li {
    color: var(--color-text-muted);
    font-size: 14.5px;
    line-height: 1.6;
}

.info-card p:last-child,
.info-card ul:last-child {
    margin-bottom: 0;
}

.info-card ul {
    padding-left: 18px;
}

/* ---------- Formularios ---------- */

.info-form {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
    .info-form {
        padding: 32px;
    }
}

.info-form h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 4px;
}

.info-form__sub {
    color: var(--color-text-muted);
    font-size: 14px;
    margin-bottom: 22px;
}

.info-form .form-label {
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 6px;
}

.info-form .form-label .opcional {
    font-weight: 400;
    color: var(--color-text-soft);
}

.info-form .form-control,
.info-form .form-select {
    min-height: 46px;
    border-radius: var(--radius-sm);
    border-color: var(--color-border);
    font-size: 15px;
}

.info-form textarea.form-control {
    min-height: 130px;
}

.info-form .form-control:focus,
.info-form .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
}

.info-form .invalid-feedback {
    font-size: 12.5px;
}

.info-form__pie {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.info-form__legal {
    font-size: 12.5px;
    color: var(--color-text-soft);
    margin: 0;
    max-width: 420px;
}

/* Campo trampa para bots: fuera de la vista, pero no display:none
   (algunos bots lo detectan). */
.info-form__trampa {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Estado tras enviar: sustituye al formulario. */
.info-enviado {
    text-align: center;
    padding: 40px 16px;
}

.info-enviado__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
    background: var(--color-primary);
    box-shadow: var(--shadow-float);
}

.info-enviado h3 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
}

.info-enviado p {
    color: var(--color-text-muted);
    max-width: 420px;
    margin: 0 auto 20px;
}

/* ---------- Contacto ---------- */

.contacto-canal {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast);
}

a.contacto-canal:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.contacto-canal__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--color-primary-dark);
    background: var(--color-primary-soft);
}

.contacto-canal__icon--whatsapp {
    color: #fff;
    background: #25D366;
}

.contacto-canal__label {
    font-size: 12px;
    color: var(--color-text-muted);
}

.contacto-canal__valor {
    font-weight: 600;
    font-size: 15px;
    word-break: break-word;
}

.contacto-redes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.contacto-redes a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    text-decoration: none;
}

.contacto-redes a:hover {
    color: #fff;
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* ---------- Atajos de autoservicio (cabecera) ---------- */

.contacto-atajos {
    display: grid;
    gap: 10px;
    margin-top: 28px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}

.contacto-atajo {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    text-decoration: none;
    box-shadow: var(--shadow-xs);
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

.contacto-atajo:hover {
    transform: translateY(-2px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-hover);
    color: var(--color-text);
}

.contacto-atajo > i {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: var(--color-primary-dark);
    background: var(--color-primary-soft);
}

.contacto-atajo strong {
    display: block;
    font-size: 14.5px;
    line-height: 1.3;
}

.contacto-atajo small {
    color: var(--color-text-muted);
    font-size: 12.5px;
}
