/* Override GeneratePress containers for full-width */
.page-template-template-contacto .site.grid-container {
    max-width: 100% !important;
    padding: 0 !important;
}
.page-template-template-contacto .site-content {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}
.page-template-template-contacto .inside-article {
    padding: 0 !important;
    margin: 0 !important;
}
.page-template-template-contacto .entry-header {
    display: none !important;
}
.page-template-template-contacto {
    background: #1a1a1a;
    scrollbar-color: #333 #1a1a1a;
}

/* ==========================================================================
   TANK IBÉRICA — CSS de la página "Contacto"
   --------------------------------------------------------------------------
   Destino: wp-content/themes/[child]/assets/css/tank-contacto.css
   Estilo: Apple/Tesla coherente con Sobre nosotros
   Densidad alta sin espacios vacíos innecesarios
   ========================================================================== */


/* === Variables locales === */
:root {
    --tank-accent: #BA7517;
    --tank-accent-bright: #EF9F27;
    --tank-dark: #1a1a1a;
    --tank-dark-mid: #2C2C2A;
}


/* ==========================================================================
   ESTRUCTURA BASE
   ========================================================================== */

.tank-contacto-main {
    margin: 0;
    padding: 0;
}

.tank-contacto-wrap {
    max-width: 1280px;
    margin: 0 auto;
}


/* ==========================================================================
   BLOQUE 1: HERO MANIFESTO (gris oscuro)
   ========================================================================== */

.tank-contacto-hero {
    background: var(--tank-dark);
    color: #fff;
    padding: 100px 32px 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tank-contacto-hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.5;
}

.tank-contacto-hero-content {
    position: relative;
    z-index: 2;
    max-width: 980px;
    margin: 0 auto;
}

.tank-contacto-hero-eyebrow {
    color: var(--tank-accent-bright);
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin: 0 0 32px;
    font-weight: 500;
}

.tank-contacto-hero-h1 {
    font-size: 76px;
    font-weight: 200;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin: 0 0 24px;
    color: #fff;
}

.tank-contacto-hero-h1 strong {
    font-weight: 500;
    color: var(--tank-accent-bright);
}

.tank-contacto-hero-sub {
    font-size: 18px;
    color: rgba(255,255,255,0.65);
    margin: 0 auto;
    max-width: 620px;
    line-height: 1.55;
    font-weight: 300;
}


/* ==========================================================================
   BLOQUE 2: MAIN — Cards + Mapa + Formulario
   ========================================================================== */

.tank-contacto-body {
    background: #fff;
    padding: 56px 32px;
}


/* === CARDS DE CONTACTO === */

.tank-contacto-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 48px;
}

.tank-contacto-card {
    background: #F1EFE8;
    border-radius: 16px;
    padding: 24px 22px;
    transition: transform 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.tank-contacto-card:hover {
    transform: translateY(-3px);
}

.tank-contacto-card--info {
    cursor: default;
}

.tank-contacto-card--info:hover {
    transform: none;
}

.tank-contacto-card-icon {
    width: 40px;
    height: 40px;
    background: rgba(186,117,23,0.1);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--tank-accent);
}

.tank-contacto-card-icon svg {
    width: 20px;
    height: 20px;
}

.tank-contacto-card-label {
    font-size: 10px;
    color: rgba(0,0,0,0.5);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 0 6px;
    font-weight: 500;
}

.tank-contacto-card-value {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    margin: 0;
    color: var(--tank-dark);
}

.tank-contacto-card-detail {
    font-size: 12px;
    color: rgba(0,0,0,0.55);
    margin: 4px 0 0;
    line-height: 1.5;
}


/* === MAPA + FORMULARIO LADO A LADO === */

.tank-contacto-map-form {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 18px;
}

.tank-contacto-map-block,
.tank-contacto-form-block {
    display: flex;
    flex-direction: column;
}


/* === HEADER DE BLOQUE (mapa y formulario) === */

.tank-contacto-block-h-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.tank-contacto-block-eyebrow {
    color: var(--tank-accent);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 4px;
    font-weight: 500;
}

.tank-contacto-block-h2 {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.012em;
    line-height: 1.2;
    margin: 0;
}

.tank-contacto-block-h2 strong { font-weight: 600; }

.tank-contacto-map-link {
    font-size: 12px;
    color: var(--tank-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    background: #F1EFE8;
    border: 0.5px solid rgba(0,0,0,0.1);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.tank-contacto-map-link:hover {
    background: #E8E6E0;
}

.tank-contacto-map-link svg {
    width: 11px;
    height: 11px;
}


/* === MAPA === */

.tank-contacto-map-frame {
    width: 100%;
    flex: 1;
    min-height: 480px;
    border-radius: 16px;
    overflow: hidden;
    background: #E8E6E0;
    border: 0.5px solid rgba(0,0,0,0.1);
    position: relative;
}

.tank-contacto-map-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.tank-contacto-map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    color: rgba(0,0,0,0.55);
    font-size: 13px;
}

.tank-contacto-map-placeholder p {
    margin: 4px 0;
}


/* === FORMULARIO === */

.tank-contacto-form-card {
    background: #F1EFE8;
    border-radius: 16px;
    padding: 28px 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tank-contacto-form-sub {
    font-size: 13px;
    color: rgba(0,0,0,0.55);
    margin: 0 0 20px;
    line-height: 1.55;
}

.tank-contacto-form-shortcode {
    flex: 1;
}

/* Estilos sobre los inputs/textarea generados por el plugin de formularios */
.tank-contacto-form-shortcode input[type="text"],
.tank-contacto-form-shortcode input[type="email"],
.tank-contacto-form-shortcode input[type="tel"],
.tank-contacto-form-shortcode textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 7px;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
    color: var(--tank-dark);
    box-sizing: border-box;
    margin-bottom: 10px;
}

.tank-contacto-form-shortcode input::placeholder,
.tank-contacto-form-shortcode textarea::placeholder {
    color: rgba(0,0,0,0.35);
}

.tank-contacto-form-shortcode textarea {
    min-height: 110px;
    resize: vertical;
}

.tank-contacto-form-shortcode label {
    font-size: 11px;
    color: rgba(0,0,0,0.55);
    font-weight: 500;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 5px;
}

.tank-contacto-form-shortcode input[type="submit"],
.tank-contacto-form-shortcode button[type="submit"] {
    background: var(--tank-dark-mid);
    color: #fff;
    border: none;
    padding: 12px 26px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease;
}

.tank-contacto-form-shortcode input[type="submit"]:hover,
.tank-contacto-form-shortcode button[type="submit"]:hover {
    background: #1a1a1a;
}

/* Si el plugin permite layout en grid (CF7 con HTML personalizado) */
.tank-contacto-form-shortcode .tank-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tank-contacto-form-shortcode .tank-form-field-full {
    grid-column: 1 / -1;
}


/* === CTA WhatsApp inline === */

.tank-contacto-wa-inline {
    background: #25D366;
    color: #fff;
    padding: 14px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-top: 14px;
    transition: background 0.15s ease;
}

.tank-contacto-wa-inline:hover {
    background: #1eb455;
    color: #fff;
}

.tank-contacto-wa-inline svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}


/* ==========================================================================
   RESPONSIVE — TABLET (1024px)
   ========================================================================== */

@media (max-width: 1023px) {

    .tank-contacto-hero {
        padding: 70px 24px 60px;
    }

    .tank-contacto-hero-h1 {
        font-size: 56px;
    }

    .tank-contacto-hero-sub {
        font-size: 16px;
    }

    .tank-contacto-body {
        padding: 40px 24px;
    }

    .tank-contacto-cards {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 32px;
    }

    .tank-contacto-map-form {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .tank-contacto-map-frame {
        min-height: 380px;
    }

    .tank-contacto-block-h2 {
        font-size: 20px;
    }
}


/* ==========================================================================
   RESPONSIVE — MÓVIL (768px)
   ========================================================================== */

@media (max-width: 767px) {

    .tank-contacto-hero {
        padding: 56px 20px 48px;
    }

    .tank-contacto-hero-eyebrow {
        font-size: 10px;
        margin-bottom: 20px;
    }

    .tank-contacto-hero-h1 {
        font-size: 36px;
        margin-bottom: 16px;
    }

    .tank-contacto-hero-sub {
        font-size: 14px;
    }

    .tank-contacto-body {
        padding: 32px 16px 40px;
    }

    /* Cards: 1 columna, más compactas */
    .tank-contacto-cards {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 24px;
    }

    .tank-contacto-card {
        padding: 18px 20px;
    }

    .tank-contacto-card-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 12px;
    }

    .tank-contacto-card-icon svg {
        width: 18px;
        height: 18px;
    }

    /* Mapa primero, formulario después */
    .tank-contacto-map-form {
        gap: 24px;
    }

    .tank-contacto-map-frame {
        min-height: 320px;
    }

    .tank-contacto-block-h-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .tank-contacto-block-h2 {
        font-size: 18px;
    }

    .tank-contacto-form-card {
        padding: 22px 20px;
    }

    /* Formulario en 1 columna en móvil */
    .tank-contacto-form-shortcode .tank-form-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}


/* ==========================================================================
   MÓVIL PEQUEÑO (480px)
   ========================================================================== */

@media (max-width: 480px) {

    .tank-contacto-hero-h1 {
        font-size: 32px;
    }

    .tank-contacto-block-h2 {
        font-size: 17px;
    }
}
