/* ==========================================================================
   TANK IBÉRICA — Pillar page Cisternas (CSS)
   --------------------------------------------------------------------------
   Destino: wp-content/themes/[child]/assets/css/tank-cisternas.css
   Estilo: hero verde corporativo + secciones alternadas + topic cluster
   ========================================================================== */


:root {
    --tank-accent: #BA7517;
    --tank-accent-bright: #EF9F27;
    --tank-dark: #1a1a1a;
    --tank-green: #0F2D31;
    --tank-green-deep: #0A1F22;
    --tank-bg-soft: #F1EFE8;
}

/* Fix: full width, no sidebar, no container padding on this template */
.page-template-template-cisternas-php .site {
    padding: 0 !important;
    max-width: 100% !important;
}
.page-template-template-cisternas-php .site-content {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}
.page-template-template-cisternas-php .listing-with-sidebar__sidebar,
.page-template-template-cisternas-php #secondary,
.page-template-template-cisternas-php aside {
    display: none !important;
}
.page-template-template-cisternas-php .listing-with-sidebar__listing,
.page-template-template-cisternas-php .listing-with-sidebar {
    width: 100% !important;
    max-width: 100% !important;
}
.page-template-template-cisternas-php .listing-with-sidebar__contents {
    display: block !important;
}



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

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

html { scroll-behavior: smooth; }


/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.tank-cat-breadcrumbs {
    background: #fafafa;
    border-bottom: 0.5px solid rgba(0,0,0,0.06);
    padding: 12px 0;
}

.tank-cat-breadcrumbs-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    font-size: 12px;
    color: rgba(0,0,0,0.6);
    letter-spacing: 0.02em;
}

.tank-cat-breadcrumbs a {
    color: rgba(0,0,0,0.6);
    text-decoration: none;
}

.tank-cat-breadcrumbs a:hover {
    color: var(--tank-accent);
}

.tank-cat-breadcrumbs span {
    margin: 0 8px;
    color: rgba(0,0,0,0.3);
}

.tank-cat-breadcrumbs strong {
    color: var(--tank-dark);
    font-weight: 500;
}


/* ==========================================================================
   HERO
   ========================================================================== */

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

.tank-cat-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-cat-hero-content {
    position: relative;
    z-index: 2;
    max-width: 920px;
    margin: 0 auto;
}

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

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

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

.tank-cat-hero-lead {
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255,255,255,0.75);
    max-width: 640px;
    margin: 0 auto 36px;
}

.tank-cat-hero-stats {
    display: flex;
    justify-content: center;
    gap: 56px;
    margin-top: 16px;
}

.tank-cat-hero-stat { text-align: center; }

.tank-cat-hero-stat-num {
    font-size: 28px;
    font-weight: 300;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.tank-cat-hero-stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}


/* ==========================================================================
   SECCIONES — TIPOGRAFÍA COMÚN
   ========================================================================== */

.tank-cat-section-num {
    font-size: 11px;
    color: var(--tank-accent);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 0 12px;
    font-weight: 500;
}

.tank-cat-section-h2 {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    line-height: 1.2;
    color: var(--tank-dark);
}

.tank-cat-text {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(0,0,0,0.75);
}

.tank-cat-text p { margin: 0 0 16px; }
.tank-cat-text p:last-child { margin: 0; }
.tank-cat-text strong { color: var(--tank-dark); font-weight: 500; }
.tank-cat-text a { color: var(--tank-accent); text-decoration: none; }
.tank-cat-text a:hover { text-decoration: underline; }


/* ==========================================================================
   INTRO
   ========================================================================== */

.tank-cat-intro {
    background: #fff;
    padding: 96px 32px 64px;
}

.tank-cat-intro-inner {
    max-width: 820px;
    margin: 0 auto;
}


/* ==========================================================================
   3 SUBCATEGORÍAS
   ========================================================================== */

.tank-cat-types {
    background: var(--tank-bg-soft);
    padding: 96px 32px;
}

.tank-cat-types-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.tank-cat-types-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px;
}

.tank-cat-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tank-cat-type-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 0.5px solid rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.tank-cat-type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.tank-cat-type-card-badge {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tank-accent);
    font-weight: 600;
    margin-bottom: 16px;
    padding: 4px 10px;
    background: rgba(186,117,23,0.08);
    border-radius: 100px;
    align-self: flex-start;
}

.tank-cat-type-card h3 {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.012em;
    margin: 0 0 12px;
    color: var(--tank-dark);
}

.tank-cat-type-card p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(0,0,0,0.65);
    margin: 0 0 20px;
    flex-grow: 1;
}

.tank-cat-type-card-link {
    font-size: 13px;
    color: var(--tank-accent);
    font-weight: 500;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tank-cat-type-card-link::after {
    content: '→';
    transition: transform 0.2s ease;
}

.tank-cat-type-card:hover .tank-cat-type-card-link::after {
    transform: translateX(3px);
}


/* ==========================================================================
   LISTADO
   ========================================================================== */

.tank-cat-listing {
    background: #fff;
    padding: 96px 32px;
}

.tank-cat-listing-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.tank-cat-listing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    gap: 24px;
    flex-wrap: wrap;
}

.tank-cat-listing-h2 {
    font-size: 28px;
    font-weight: 300;
    margin: 0;
    color: var(--tank-dark);
    letter-spacing: -0.02em;
}

.tank-cat-listing-link {
    font-size: 13px;
    color: var(--tank-accent);
    text-decoration: none;
    font-weight: 500;
}

.tank-cat-listing-placeholder {
    background: var(--tank-bg-soft);
    border: 1px dashed rgba(0,0,0,0.15);
    border-radius: 16px;
    padding: 64px 32px;
    text-align: center;
}

.tank-cat-listing-placeholder p {
    font-size: 14px;
    color: rgba(0,0,0,0.5);
    margin: 0 0 8px;
    font-family: monospace;
}

.tank-cat-listing-placeholder small {
    font-size: 12px;
    color: rgba(0,0,0,0.4);
    font-family: monospace;
}


/* ==========================================================================
   SECTORES
   ========================================================================== */

.tank-cat-sectors {
    background: var(--tank-green);
    color: #fff;
    padding: 96px 32px;
}

.tank-cat-sectors-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.tank-cat-sectors-header {
    margin-bottom: 56px;
    max-width: 700px;
}

.tank-cat-sectors .tank-cat-section-num { color: var(--tank-accent-bright); }

.tank-cat-sectors-h2 {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    color: #fff;
    line-height: 1.2;
}

.tank-cat-sectors-lead {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

.tank-cat-sectors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.08);
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
}

.tank-cat-sector-item {
    background: var(--tank-green);
    padding: 28px 24px;
    transition: background 0.2s ease;
}

.tank-cat-sector-item.active {
    background: rgba(186,117,23,0.12);
}

.tank-cat-sector-item-wide {
    grid-column: span 3;
}

.tank-cat-sector-item-num {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.12em;
    margin-bottom: 8px;
    font-weight: 500;
}

.tank-cat-sector-item.active .tank-cat-sector-item-num {
    color: var(--tank-accent-bright);
}

.tank-cat-sector-item h4 {
    font-size: 17px;
    font-weight: 500;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -0.005em;
}

.tank-cat-sector-item p {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.55;
    margin: 0;
}

.tank-cat-sector-item.active p {
    color: rgba(255,255,255,0.8);
}

.tank-cat-sector-tag {
    display: inline-block;
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tank-accent-bright);
    margin-top: 12px;
    font-weight: 600;
}


/* ==========================================================================
   GUÍA DE COMPRA
   ========================================================================== */

.tank-cat-guide {
    background: #fff;
    padding: 96px 32px;
}

.tank-cat-guide-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 64px;
    align-items: flex-start;
}

.tank-cat-guide-sticky {
    position: sticky;
    top: 32px;
}

.tank-cat-guide-link-wrap {
    margin-top: 24px;
    margin-bottom: 0;
}

.tank-cat-guide-link-art {
    color: var(--tank-accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.tank-cat-guide-link-art:hover {
    text-decoration: underline;
}

.tank-cat-guide-list {
    display: flex;
    flex-direction: column;
}

.tank-cat-guide-item {
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
    padding: 24px 0;
}

.tank-cat-guide-item:first-child { padding-top: 0; }
.tank-cat-guide-item:last-child { border-bottom: none; padding-bottom: 0; }

.tank-cat-guide-item-num {
    font-size: 11px;
    color: var(--tank-accent);
    letter-spacing: 0.12em;
    margin-bottom: 6px;
    font-weight: 500;
}

.tank-cat-guide-item h4 {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 8px;
    color: var(--tank-dark);
    letter-spacing: -0.008em;
}

.tank-cat-guide-item p {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(0,0,0,0.65);
    margin: 0;
}


/* ==========================================================================
   FAQ
   ========================================================================== */

.tank-cat-faq {
    background: var(--tank-bg-soft);
    padding: 96px 32px;
}

.tank-cat-faq-inner {
    max-width: 820px;
    margin: 0 auto;
}

.tank-cat-faq-header {
    text-align: center;
    margin-bottom: 48px;
}

.tank-cat-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tank-cat-faq-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
    border: 0.5px solid rgba(0,0,0,0.05);
}

.tank-cat-faq-q {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    list-style: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--tank-dark);
}

.tank-cat-faq-q::-webkit-details-marker { display: none; }

.tank-cat-faq-q-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(186,117,23,0.1);
    color: var(--tank-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: transform 0.2s ease;
    font-size: 14px;
    line-height: 1;
}

.tank-cat-faq-item[open] .tank-cat-faq-q-icon {
    transform: rotate(45deg);
}

.tank-cat-faq-a {
    padding: 0 24px 20px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(0,0,0,0.7);
}

.tank-cat-faq-a p { margin: 0 0 12px; }
.tank-cat-faq-a p:last-child { margin: 0; }
.tank-cat-faq-a a { color: var(--tank-accent); font-weight: 500; text-decoration: none; }
.tank-cat-faq-a a:hover { text-decoration: underline; }


/* ==========================================================================
   RELATED
   ========================================================================== */

.tank-cat-related {
    background: #fff;
    padding: 96px 32px 64px;
    border-top: 0.5px solid rgba(0,0,0,0.05);
}

.tank-cat-related-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.tank-cat-related-header {
    text-align: center;
    margin-bottom: 40px;
}

.tank-cat-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.tank-cat-related-card {
    background: var(--tank-bg-soft);
    border-radius: 12px;
    padding: 24px 22px;
    text-decoration: none;
    color: var(--tank-dark);
    transition: background 0.2s ease, transform 0.2s ease;
    display: block;
}

.tank-cat-related-card:hover {
    background: rgba(186,117,23,0.06);
    transform: translateY(-2px);
}

.tank-cat-related-card-eyebrow {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.5);
    margin-bottom: 10px;
    font-weight: 500;
}

.tank-cat-related-card h4 {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 6px;
    color: var(--tank-dark);
    letter-spacing: -0.005em;
}

.tank-cat-related-card p {
    font-size: 12.5px;
    color: rgba(0,0,0,0.55);
    margin: 0;
    line-height: 1.5;
}


/* ==========================================================================
   ARTÍCULOS DEL BLOG (TOPIC CLUSTER)
   ========================================================================== */

.tank-cat-articles {
    background: var(--tank-bg-soft);
    padding: 96px 32px;
}

.tank-cat-articles-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.tank-cat-articles-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.tank-cat-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.tank-cat-article-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px 26px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    border: 0.5px solid rgba(0,0,0,0.05);
}

.tank-cat-article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.tank-cat-article-tag {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tank-accent);
    font-weight: 600;
    margin-bottom: 14px;
    padding: 4px 10px;
    background: rgba(186,117,23,0.08);
    border-radius: 100px;
    align-self: flex-start;
}

.tank-cat-article-card h4 {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 10px;
    color: var(--tank-dark);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.tank-cat-article-card p {
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(0,0,0,0.6);
    margin: 0 0 18px;
    flex-grow: 1;
}

.tank-cat-article-link {
    font-size: 12.5px;
    color: var(--tank-accent);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.tank-cat-articles-footer {
    text-align: center;
    margin-top: 36px;
}


/* ==========================================================================
   CTA FINAL
   ========================================================================== */

.tank-cat-cta {
    background: var(--tank-dark);
    color: #fff;
    padding: 96px 32px;
    text-align: center;
}

.tank-cat-cta-inner {
    max-width: 820px;
    margin: 0 auto;
}

.tank-cat-cta-h2 {
    font-size: 40px;
    font-weight: 200;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 0 0 20px;
    color: #fff;
}

.tank-cat-cta-h2 strong {
    color: var(--tank-accent-bright);
    font-weight: 400;
}

.tank-cat-cta-lead {
    font-size: 15px;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 36px;
}

.tank-cat-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tank-cat-cta-btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.tank-cat-cta-btn-primary {
    background: var(--tank-accent);
    color: #fff;
}

.tank-cat-cta-btn-primary:hover {
    background: var(--tank-accent-bright);
}

.tank-cat-cta-btn-secondary {
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #fff;
}

.tank-cat-cta-btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.5);
}

.tank-cat-cta-btn-whatsapp {
    background: #25D366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tank-cat-cta-btn-whatsapp:hover {
    background: #128C7E;
}

.tank-cat-cta-btn-whatsapp svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}


/* ==========================================================================
   RESPONSIVE — TABLET
   ========================================================================== */

@media (max-width: 1023px) {
    .tank-cat-hero { padding: 80px 24px 70px; }
    .tank-cat-hero-h1 { font-size: 48px; }
    .tank-cat-hero-stats { gap: 40px; }

    .tank-cat-intro { padding: 72px 24px 48px; }

    .tank-cat-types { padding: 72px 24px; }
    .tank-cat-types-grid { grid-template-columns: 1fr; gap: 16px; }

    .tank-cat-listing { padding: 72px 24px; }

    .tank-cat-sectors { padding: 72px 24px; }
    .tank-cat-sectors-grid { grid-template-columns: 1fr 1fr; }
    .tank-cat-sector-item-wide { grid-column: span 2; }

    .tank-cat-guide { padding: 72px 24px; }
    .tank-cat-guide-inner { grid-template-columns: 1fr; gap: 40px; }
    .tank-cat-guide-sticky { position: static; }

    .tank-cat-faq { padding: 72px 24px; }

    .tank-cat-related { padding: 72px 24px 48px; }
    .tank-cat-related-grid { grid-template-columns: 1fr 1fr; }

    .tank-cat-articles { padding: 72px 24px; }
    .tank-cat-articles-grid { grid-template-columns: 1fr; gap: 14px; }

    .tank-cat-cta { padding: 72px 24px; }
    .tank-cat-cta-h2 { font-size: 32px; }
}


/* ==========================================================================
   RESPONSIVE — MÓVIL
   ========================================================================== */

@media (max-width: 640px) {
    .tank-cat-hero { padding: 64px 20px 56px; }
    .tank-cat-hero-eyebrow { font-size: 10px; letter-spacing: 0.22em; margin-bottom: 20px; }
    .tank-cat-hero-h1 { font-size: 36px; }
    .tank-cat-hero-lead { font-size: 14px; }
    .tank-cat-hero-stats { gap: 28px; }
    .tank-cat-hero-stat-num { font-size: 22px; }

    .tank-cat-intro { padding: 56px 20px 40px; }
    .tank-cat-section-h2 { font-size: 24px; }
    .tank-cat-text { font-size: 14px; }

    .tank-cat-types { padding: 56px 20px; }
    .tank-cat-type-card { padding: 24px 22px; }

    .tank-cat-listing { padding: 56px 20px; }
    .tank-cat-listing-h2 { font-size: 22px; }

    .tank-cat-sectors { padding: 56px 20px; }
    .tank-cat-sectors-h2 { font-size: 24px; }
    .tank-cat-sectors-grid { grid-template-columns: 1fr; }
    .tank-cat-sector-item-wide { grid-column: span 1; }

    .tank-cat-guide { padding: 56px 20px; }
    .tank-cat-guide-item h4 { font-size: 16px; }

    .tank-cat-faq { padding: 56px 20px; }
    .tank-cat-faq-q { font-size: 14px; padding: 16px 18px; }
    .tank-cat-faq-a { font-size: 13.5px; padding: 0 18px 16px; }

    .tank-cat-related { padding: 56px 20px 40px; }
    .tank-cat-related-grid { grid-template-columns: 1fr; }

    .tank-cat-articles { padding: 56px 20px; }
    .tank-cat-article-card { padding: 22px 20px; }
    .tank-cat-article-card h4 { font-size: 16px; }

    .tank-cat-cta { padding: 56px 20px; }
    .tank-cat-cta-h2 { font-size: 26px; }
    .tank-cat-cta-buttons { flex-direction: column; gap: 10px; }
    .tank-cat-cta-btn { width: 100%; justify-content: center; }
}
