/* ========================================
   GasConfort - Estilos del Sitio Web
   Colores: Blanco, Amarillo, Azul
   ======================================== */

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

/* Reset básico */
* {
    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);
}

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

/* ========================================
   HEADER / NAVEGACIÓN
   ======================================== */
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);
}

.nav-cta {
    background-color: var(--accent-yellow);
    color: var(--primary-blue) !important;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background-color: var(--primary-blue);
    color: var(--white) !important;
}

/* Menú hamburguesa móvil */
.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 SECTION
   ======================================== */
.hero {
    background: var(--white);
    color: var(--primary-blue);
    padding: 150px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--accent-yellow);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a4b8c' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

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

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

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

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

.btn-primary:hover {
    background-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

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

/* ========================================
   SERVICIOS
   ======================================== */
.services {
    padding: 80px 20px;
    background-color: var(--light-gray);
}

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

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

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

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-yellow);
    box-shadow: 0 15px 30px rgba(26,75,140,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--light-yellow) 0%, var(--accent-yellow) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

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

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

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

/* ========================================
   POR QUÉ ELEGIRNOS
   ======================================== */
.why-us {
    padding: 80px 20px;
    background-color: var(--white);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

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

.why-us-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

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

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

.why-us-item p {
    color: var(--dark-gray);
    font-size: 0.95rem;
}

/* ========================================
   EMERGENCIAS BANNER
   ======================================== */
.emergency-banner {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #f59e0b 100%);
    padding: 60px 20px;
    text-align: center;
}

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

.emergency-banner h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 15px;
}

.emergency-banner p {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.emergency-phone {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.emergency-phone:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    transform: scale(1.05);
}

/* ========================================
   ZONA DE COBERTURA
   ======================================== */
.coverage {
    padding: 80px 20px;
    background-color: var(--light-gray);
}

.coverage-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.coverage-text {
    flex: 1;
    min-width: 300px;
}

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

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

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

.coverage-text li svg {
    width: 24px;
    height: 24px;
    color: var(--accent-yellow);
}

.coverage-map {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    color: var(--white);
}

.coverage-map svg {
    width: 100px;
    height: 100px;
    color: var(--accent-yellow);
    margin-bottom: 20px;
}

.coverage-map h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* ========================================
   CONTACTO
   ======================================== */
.contact {
    padding: 80px 20px;
    background-color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

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

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

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

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

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

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

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

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #25D366;
    color: var(--white);
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    margin-top: 20px;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37,211,102,0.3);
}

.contact-form {
    background-color: var(--light-gray);
    padding: 35px;
    border-radius: 15px;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--primary-blue);
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

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

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

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

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

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

.footer-section a {
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

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

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

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

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

.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;
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

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

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

/* ========================================
   PÁGINAS LEGALES
   ======================================== */
.legal-page {
    padding: 120px 20px 80px;
    min-height: 100vh;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.legal-content h1 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.legal-content .last-updated {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-yellow);
}

.legal-content h2 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin: 30px 0 15px;
}

.legal-content h3 {
    color: var(--secondary-blue);
    font-size: 1.2rem;
    margin: 20px 0 10px;
}

.legal-content p {
    color: var(--dark-gray);
    margin-bottom: 15px;
    line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
    margin: 15px 0;
    padding-left: 25px;
    color: var(--dark-gray);
}

.legal-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.legal-content a {
    color: var(--secondary-blue);
}

.legal-content a:hover {
    color: var(--primary-blue);
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 30px;
    transition: color 0.3s;
}

.back-home:hover {
    color: var(--accent-yellow);
}

/* ========================================
   COOKIE BANNER
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 20px;
    z-index: 9999;
    display: none;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
}

.cookie-banner.show {
    display: block;
}

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

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text p {
    margin: 0;
    font-size: 0.95rem;
}

.cookie-text a {
    color: var(--accent-yellow);
}

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

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

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

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

.cookie-btn.reject {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .hero {
        padding: 120px 20px 80px;
    }

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

    .hero p {
        font-size: 1.1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .emergency-banner h2 {
        font-size: 1.5rem;
    }

    .emergency-phone {
        font-size: 1.2rem;
        padding: 12px 30px;
    }

    .coverage-content {
        flex-direction: column;
    }

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

    .legal-content {
        padding: 30px 20px;
    }

    .legal-content h1 {
        font-size: 1.8rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ========================================
   ANIMACIONES
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.service-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Floating WhatsApp button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(37,211,102,0.4);
    z-index: 999;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37,211,102,0.5);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    color: var(--white);
}
