/*
Theme Name: Gasolinera Santa Catarina
Text Domain: Gasolinera Santa Catarina
Theme URI: https://gasolinerasantacatarina.com
Author: Eliza Espinosa
Author URI: https://elizaespinosa.com
Description: Theme 2026 de alto rendimiento.
tags: light, flexible-width
License: GNU General Public License v2 or later
License URI: http://gnu.org
Text Domain: cehe-gsc
Version: 1.0.0
*/

:root {
    --primary: #50e600; 
    --secondary: #ebe300;
    --container: 1200px;
    --container-fullwidht: 100%;
    --font-base: system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-base); line-height: 1.6; color: #334155; background: #ffffff; }

h1, h2, h3, h4, h5, h6 { margin-top: 0; color: #1e293b; }
a { color: var(--primary); text-decoration: none; transition: 0.3s; }
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; display: block; }

/* CSS Grid Nativo 12 Columnas */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }

.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }

/*General*/
.hide {
    display: none;
}

/* Header & Navegacion */
.site-header { border-bottom: 1px solid #e2e8f0; padding: 1.5rem 0; position: relative; }
.site-nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; align-items: center; }
.site-nav a { font-weight: 600; color: #1e293b; }
.menu-toggle { display: none; background: transparent; color: var(--primary); font-size: 1.8rem; padding: 0.5rem; border: none; cursor: pointer; }

/* Footer */
.site-footer { background: #0f172a; color: #ffffff; padding: 3rem 0; margin-top: 4rem; text-align: center; }

/* Layout Cards (Archive) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.post-card { border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.post-card-content { padding: 1.5rem; flex-grow: 1; }
.post-card-content h2 { font-size: 1.3rem; margin-bottom: 0.5rem; }

/* Layout Single */
.single-content { background: #fff; padding: 2rem; border-radius: 8px; border: 1px solid #e2e8f0; }
.widget { background: #f8fafc; padding: 1.5rem; border-radius: 8px; border: 1px solid #e2e8f0; margin-bottom: 1.5rem; }

/* Form */
.form-group { margin-bottom: 1rem; }
        .form-group.full { grid-column: span 2; }
        label { display: block; font-weight: 500; font-size: 0.9rem; margin-bottom: 0.5rem; color: var(--text-muted); }
        input[type="text"], input[type="url"], select { width: 100%; padding: 0.75rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: 1rem; }
        input:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2); }
        .cpt-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 1rem; align-items: end; background: rgba(15, 23, 42, 0.5); padding: 1rem; border-radius: var(--radius); border: 1px dashed var(--border); margin-bottom: 1rem; }
        button { cursor: pointer; padding: 0.75rem 1.5rem; border-radius: var(--radius); border: none; font-weight: 600; font-size: 1rem; transition: all 0.2s; }
        .btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); width: 100%; }
        .btn-outline:hover { background: var(--primary); color: #fff; }
        .btn-danger { background: var(--danger); color: white; padding: 0.75rem; }
        .btn-primary { background: var(--primary); color: white; width: 100%; padding: 1.25rem; font-size: 1.1rem; margin-top: 1rem; }
        .btn-primary:hover { background: var(--primary-hover); }
        .btn-primary:disabled { background: var(--border); color: var(--text-muted); cursor: not-allowed; }
@media (max-width: 992px) {
    .col-8, .col-4, .col-6, .col-3 { grid-column: span 12; }
}
@media (max-width: 768px) { 
    .menu-toggle { display: block; }
    .site-nav { width: 100%; position: absolute; top: 100%; left: 0; background: #fff; box-shadow: 0 4px 6px rgba(0,0,0,0.1); z-index: 999; display: none; }
    .site-nav.active { display: block; }
    .site-nav ul { flex-direction: column; padding: 1.5rem; gap: 1rem; }
}
/* Estilos específicos del Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 80vh; /* Altura fluida del hero */
    min-height: 500px;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease-in-out;
    display: flex;
    align-items: center; /* Centrado vertical del contenido */
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

/* Fondo con Overlay para legibilidad */
.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    z-index: 2;
}

/* Contenido sobre el Grid */
.slide-content {
    position: relative;
    z-index: 3;
    color: #fff;
}

.slide-title {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.slide-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.btn-hero {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: transform 0.3s;
}

.btn-hero:hover {
    transform: translateY(-3px);
}

/* Navegación (Puntos) */
.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    border: none;
}

.dot.active {
    background: #fff;
    width: 30px;
    border-radius: 10px;
}