/* ========================================
   GasTotal - Guía Completa de Gas
   Colores: Blanco, Amarillo, Azul
   ======================================== */

:root {
    --primary-blue: #1a4b8c;
    --secondary-blue: #2563eb;
    --accent-yellow: #fbbf24;
    --light-yellow: #fef3c7;
    --white: #ffffff;
    --light-gray: #f8fafc;
    --dark-gray: #374151;
    --text-dark: #1f2937;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    font-weight: 700;
}

.logo span {
    color: var(--accent-yellow);
}

.logo-icon {
    width: 45px;
    height: 45px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-yellow);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    transition: 0.3s;
}

/* HERO */
.hero {
    background: var(--white);
    padding: 150px 20px 80px;
    text-align: center;
    border-bottom: 4px solid var(--accent-yellow);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: var(--light-yellow);
    color: var(--primary-blue);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h2 {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
}

.btn-secondary:hover {
    background-color: #f59e0b;
    transform: translateY(-2px);
}

/* SECTIONS */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--dark-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.underline {
    width: 80px;
    height: 4px;
    background: var(--accent-yellow);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* CATEGORIES */
.categories {
    padding: 80px 20px;
    background: var(--light-gray);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(26,75,140,0.15);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--light-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--primary-blue);
}

.category-card h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.category-card p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.category-card .read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
}

.category-card:hover .read-more {
    color: var(--accent-yellow);
}

/* SERVICES GRID */
.services {
    padding: 80px 20px;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 2px solid transparent;
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card:hover {
    border-color: var(--accent-yellow);
    transform: translateY(-5px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--light-yellow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--primary-blue);
}

.service-card h3 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.service-card .read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
}

.service-card:hover .read-more {
    color: var(--accent-yellow);
}

/* WHY US */
.why-us {
    padding: 80px 20px;
    background: var(--primary-blue);
    color: var(--white);
}

.why-us .section-title h2 {
    color: var(--white);
}

.why-us .section-title p {
    color: rgba(255,255,255,0.8);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.why-us-item {
    text-align: center;
    padding: 30px;
}

.why-us-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-us-icon svg {
    width: 35px;
    height: 35px;
    stroke: var(--accent-yellow);
}

.why-us-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--accent-yellow);
}

.why-us-item p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.7;
}

/* EMERGENCY BANNER */
.emergency-banner {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    padding: 50px 20px;
    text-align: center;
}

.emergency-content h2 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.emergency-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.emergency-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: #dc2626;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s;
}

.emergency-phone:hover {
    transform: scale(1.05);
}

/* COVERAGE */
.coverage {
    padding: 80px 20px;
    background: var(--white);
}

.coverage-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.coverage-text h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.coverage-text ul {
    list-style: none;
}

.coverage-text li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    color: var(--dark-gray);
    font-size: 1rem;
}

.coverage-text li svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-yellow);
    flex-shrink: 0;
}

.coverage-map {
    background: var(--light-gray);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.coverage-map svg {
    width: 120px;
    height: 120px;
    stroke: var(--primary-blue);
    margin-bottom: 20px;
}

.coverage-map h4 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.coverage-map p {
    color: var(--dark-gray);
}

/* CONTACT */
.contact {
    padding: 80px 20px;
    background: var(--light-gray);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: var(--light-yellow);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-blue);
}

.contact-item-text h4 {
    color: var(--primary-blue);
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-item-text a,
.contact-item-text p {
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 0.95rem;
}

.contact-item-text a:hover {
    color: var(--primary-blue);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.contact-form h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 25px;
}

/* FOOTER */
footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    color: var(--accent-yellow);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent-yellow);
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-logo h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--accent-yellow);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-yellow);
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -5px 30px rgba(0,0,0,0.15);
    padding: 20px;
    z-index: 9999;
    transition: bottom 0.5s ease;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    margin: 0;
}

.cookie-text a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cookie-btn.accept {
    background: var(--primary-blue);
    color: var(--white);
}

.cookie-btn.accept:hover {
    background: var(--secondary-blue);
}

.cookie-btn.reject {
    background: var(--light-gray);
    color: var(--dark-gray);
}

.cookie-btn.reject:hover {
    background: #e5e7eb;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        gap: 30px;
        transition: left 0.3s;
    }

    .nav-links.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .coverage-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}
