/* =============================================================================
   ENVÍANOS TU PELÍCULA — Estilos específicos
   Archivo: /wp-content/themes/buddyx-child/css/contacto.css
   Tipografía: Poppins (headings) / Inter (body)
   Colores: #CC8E03 gold | #1d1d1f texto | #6b7280 muted
============================================================================= */

/* ── RESET BUDDYX — scoped a esta plantilla ── */
body.page-template-page-envianos-tu-pelicula-php #page,
body.page-template-page-envianos-tu-pelicula-php .site {
    display: block !important;
    grid-template-columns: none !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.page-template-page-envianos-tu-pelicula-php #page {
    padding-top: 112px !important;
}

body.page-template-page-envianos-tu-pelicula-php #page > .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.page-template-page-envianos-tu-pelicula-php main,
body.page-template-page-envianos-tu-pelicula-php .site-main {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

body.page-template-page-envianos-tu-pelicula-php #secondary { display: none !important; }

body.page-template-page-envianos-tu-pelicula-php .site-content,
body.page-template-page-envianos-tu-pelicula-php #content {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

body.admin-bar.page-template-page-envianos-tu-pelicula-php #page {
    padding-top: 144px !important;
}
@media screen and (max-width: 782px) {
    body.admin-bar.page-template-page-envianos-tu-pelicula-php #page {
        padding-top: 46px !important;
    }
}

/* ── VARIABLES locales ── */
.imagic-envianos {
    --en-gold:      #CC8E03;
    --en-gold-dark: #a87000;
    --en-text:      #1d1d1f;
    --en-muted:     #6b7280;
    --en-border:    #e5e5e7;
    --en-bg-card:   #f9f9f9;
    --en-radius:    14px;
    --en-font-head: 'Poppins', -apple-system, sans-serif;
    --en-font-body: 'Inter', -apple-system, sans-serif;
}

.imagic-envianos,
.imagic-envianos * {
    box-sizing: border-box;
}

/* =============================================================================
   CONTENEDORES
============================================================================= */

.en-container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.en-wrap {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    gap: 60px;
    align-items: start;
}

/* =============================================================================
   SECCIÓN 1 — INTRO (igual sistema que .ib-intro en blog/actualidad)
============================================================================= */

.en-intro {
    background: #ffffff;
    padding: clamp(20px, 6vw, 80px) 0;
    text-align: center;
}

.en-intro__title {
    font-family: var(--en-font-head) !important;
    font-size: clamp(1.8rem, 4vw, 3rem) !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    color: var(--en-text) !important;
    margin: 0 0 24px !important;
}

.en-intro__desc {
    font-family: var(--en-font-body) !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.75 !important;
    color: var(--en-muted) !important;
    max-width: 980px !important;
    margin: 0 auto !important;
    text-align: center !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    text-justify: none !important;
}

/* =============================================================================
   SECCIÓN 2 — LAYOUT DOS COLUMNAS
============================================================================= */

.en-main {
    background: #ffffff;
    padding: clamp(20px, 3vw, 40px) 0 clamp(60px, 8vw, 100px)!important;
}

/* =============================================================================
   COL A — Texto
============================================================================= */

.en-col-text {
    padding-top: 8px;
}

.en-col-text__title {
    font-family: var(--en-font-head) !important;
    font-size: clamp(1.3rem, 2.5vw, 1.75rem) !important;
    font-weight: 700 !important;
    color: var(--en-text) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    margin: 0 0 20px !important;
}

.en-col-text__body {
    font-family: var(--en-font-body) !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
    color: var(--en-muted) !important;
    margin: 0 0 28px !important;
}

.en-list {
    list-style: none;
    margin: 0 0 32px !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.en-list__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: var(--en-font-body) !important;
    font-size: 14px !important;
    color: var(--en-text) !important;
    line-height: 1.55 !important;
}

.en-list__icon {
    color: var(--en-gold);
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 2px;
    font-style: normal;
}


/* =============================================================================
   COL B — Tarjeta formulario
============================================================================= */

.en-form-card {
    background: var(--en-bg-card);
    border: 1px solid var(--en-border);
    border-radius: var(--en-radius);
    padding: 40px;
}

/* ── Selector tipo de obra ── */
.en-tipo-wrap {
    margin-bottom: 32px;
}

.en-tipo__label {
    font-family: var(--en-font-body) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: var(--en-muted) !important;
    margin: 0 0 12px !important;
}

.en-tipo-btns {
    display: flex;
    gap: 12px;
}

/* Ocultar el radio nativo */
.en-tipo-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.en-tipo-btn {
    cursor: pointer;
}

.en-tipo-btn__face {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    border: 2px solid var(--en-border);
    background: #ffffff;
    font-family: var(--en-font-body) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--en-muted) !important;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
    user-select: none;
}

/* Círculo decorativo tipo check */
.en-tipo-btn__face::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--en-border);
    transition: border-color 0.18s ease, background 0.18s ease;
    flex-shrink: 0;
}

/* Estado activo — gold */
.en-tipo-btn__face.is-active {
    border-color: var(--en-gold) !important;
    background: rgba(204, 142, 3, 0.07) !important;
    color: var(--en-text) !important;
}

.en-tipo-btn__face.is-active::before {
    border-color: var(--en-gold);
    background: var(--en-gold);
}

/* Hover cuando no está activo */
.en-tipo-btn:hover .en-tipo-btn__face:not(.is-active) {
    border-color: #c0c0c5;
    color: var(--en-text) !important;
}

/* =============================================================================
   FORMULARIO — campos
============================================================================= */

.en-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.en-form__row--full {
    grid-template-columns: 1fr;
}

.en-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.en-form__label {
    font-family: var(--en-font-body) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: var(--en-muted) !important;
}

.en-form__input {
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--en-border);
    border-radius: 8px;
    background: #ffffff;
    font-family: var(--en-font-body) !important;
    font-size: 15px !important;
    color: var(--en-text) !important;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    width: 100%;
}

.en-form__input::placeholder {
    color: #b0b0b8;
}

.en-form__input:focus {
    border-color: var(--en-gold);
    box-shadow: 0 0 0 3px rgba(204, 142, 3, 0.12);
}

/* =============================================================================
   RGPD
============================================================================= */

.en-rgpd {
    margin: 24px 0 28px;
}

.en-rgpd__label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

/* Ocultar check nativo */
.en-rgpd__check {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Check custom */
.en-rgpd__custom {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid var(--en-border);
    background: #ffffff;
    margin-top: 2px;
    transition: border-color 0.18s ease, background 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.en-rgpd__check:checked + .en-rgpd__custom {
    background: var(--en-gold);
    border-color: var(--en-gold);
}

.en-rgpd__check:checked + .en-rgpd__custom::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translate(-1px, -1px);
}

.en-rgpd__text {
    font-family: var(--en-font-body) !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: var(--en-muted) !important;
}

.en-rgpd__link {
    color: var(--en-gold) !important;
    text-decoration: underline;
}

/* =============================================================================
   BOTÓN ENVIAR
============================================================================= */

.en-form__submit-wrap {
    text-align: center;
}

.en-submit-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--en-gold);
    color: #ffffff !important;
    font-family: var(--en-font-head) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.en-submit-btn:hover {
    background: var(--en-gold-dark);
    transform: translateY(-1px);
}

.en-submit-btn:active {
    transform: translateY(0);
}

.en-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* =============================================================================
   FEEDBACK
============================================================================= */

.en-feedback {
    margin-top: 16px;
    font-family: var(--en-font-body) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    text-align: center;
    min-height: 20px;
}

.en-feedback--ok {
    color: #2d8c4e;
}

.en-feedback--error {
    color: #c0392b;
}

/* =============================================================================
   RESPONSIVE
============================================================================= */

@media (max-width: 900px) {
    .en-wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .en-col-text {
        padding-top: 0;
    }
}

@media (max-width: 600px) {
    .en-form-card {
        padding: 28px 20px;
    }

    .en-form__row {
        grid-template-columns: 1fr;
    }

    .en-tipo-btns {
        flex-direction: column;
    }
}

/* Asterisco campo obligatorio */
.en-required {
    color: #CC8E03;
    font-style: normal;
}