/* =========================================
   CSS Variables & Design System - UPDATED TO BRAND IDENTITY
   ========================================= */
:root {
    /* Colors - Copagaz Dark Green & Yellow/Orange */
    --color-primary: #113629;
    /* Dark Green from the sign */
    --color-primary-light: #1c523f;
    --color-primary-dark: #0a2118;

    --color-accent: #f58220;
    --color-accent-hover: #e06c10;

    --color-whatsapp: #25D366;
    --color-whatsapp-hover: #128C7E;

    --color-text: #2c3e50;
    --color-text-light: #475569;
    --color-heading: #113629;

    --color-bg: #f8fafc;
    --color-surface: #ffffff;

    --color-copagaz: #f58220;
    --color-liquigas: #113629;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(242, 101, 34, 0.4);

    /* Radius */
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    line-height: 1.1;
    font-weight: 900;
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =========================================
   Components (Buttons, Badges)
   ========================================= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--color-whatsapp);
    color: white;
    font-weight: 800;
    font-family: var(--font-heading);
    text-transform: uppercase;
    padding: 1rem 1.75rem;
    border-radius: var(--radius-full);
    font-size: 1.125rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.btn-primary:hover {
    background-color: var(--color-whatsapp-hover);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

.btn-primary i {
    font-size: 1.5rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: white;
    color: var(--color-primary);
    font-weight: 800;
    font-family: var(--font-heading);
    text-transform: uppercase;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.btn-secondary:hover {
    background-color: var(--color-bg);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: transparent;
    border: 2px solid var(--color-whatsapp);
    color: var(--color-whatsapp);
    font-weight: 800;
    font-family: var(--font-heading);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.btn-outline:hover {
    background-color: var(--color-whatsapp);
    color: white;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.instagram-btn {
    background: #f09433;
    background: -moz-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.instagram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(220, 39, 67, 0.4);
}

.badge {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
}

.glass-card-dark {
    background: var(--color-primary);
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    border: 2px solid var(--color-primary-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    color: white;
}

/* =========================================
   Layout Sections
   ========================================= */

/* Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    transition: var(--transition-normal);
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    height: 60px;
    /* Adjust as necessary based on the real image ratio */
    width: auto;
    display: block;
}

.logo-white-img {
    filter: brightness(0) invert(1);
    height: 70px;
}

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 6rem;
    /* Soft light green from the primary brand color to remove white space */
    background: linear-gradient(135deg, #e6f0eb 0%, #cce0d8 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(242, 101, 34, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    color: var(--color-primary-dark);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--color-text);
    font-weight: 600;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

.delivery-badge-glass {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.delivery-badge-glass i {
    font-size: 1.75rem;
    color: var(--color-accent);
}

.delivery-text {
    display: flex;
    flex-direction: column;
}

.delivery-text strong {
    font-size: 1rem;
    color: var(--color-primary-dark);
    line-height: 1.2;
    font-weight: 800;
}

.delivery-text span {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-weight: 600;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero-showcase {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-3d {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
    mix-blend-mode: darken;
    /* Makes the white sky transparent against the light green hero background */
}

.hero-floating-box {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 3;
    animation: float-box 4s ease-in-out infinite alternate;
}

.box-1 {
    bottom: 10%;
    left: -5%;
}

.hero-floating-box strong {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-heading);
    display: block;
    line-height: 1.2;
}

.hero-floating-box span {
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-weight: 600;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes float-box {
    0% {
        transform: translateY(0px) rotate(-1deg);
    }

    100% {
        transform: translateY(-10px) rotate(1deg);
    }
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
    fill: white;
}

/* Brands Section */
.brands {
    padding: 3.5rem 0;
    background-color: white;
    border-bottom: 2px dashed rgba(0, 122, 83, 0.1);
}

.brands-title {
    text-align: center;
    color: var(--color-primary);
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.brands-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    align-items: center;
    flex-wrap: wrap;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    opacity: 0.8;
    transition: var(--transition-normal);
}

.brand-name:hover {
    opacity: 1;
    transform: scale(1.05);
}

.brand-name.copa {
    color: var(--color-copagaz);
}

.brand-name.liqui {
    color: var(--color-liquigas);
}

/* Benefits Section */
.benefits {
    padding: 6rem 0;
    /* Very light orange from the copagaz accent */
    background-color: #fdf5ef;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    color: var(--color-primary-dark);
}

.section-header p {
    color: var(--color-text);
    font-size: 1.25rem;
    font-weight: 500;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-card {
    background-color: white;
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transition: var(--transition-normal);
    transform-origin: left;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(242, 101, 34, 0.1);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 2.5rem;
    transition: var(--transition-normal);
}

.benefit-card:hover .icon-wrapper {
    background-color: var(--color-accent);
    color: white;
    transform: rotate(10deg);
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.benefit-card p {
    color: var(--color-text-light);
    font-weight: 500;
}

/* Reviews Section */
.reviews {
    padding: 6rem 0;
    background-color: var(--color-primary-dark);
    color: white;
    position: relative;
}

.reviews::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

.reviews-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.reviews-content h2 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    color: white;
}

.reviews-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.reviews-stats .stars {
    color: #f59e0b;
    /* Bright Yellow */
    font-size: 2rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.25rem;
}

.reviews-stats .score {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 900;
}

.reviews-stats p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.review-link {
    color: white;
    font-weight: 800;
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 2px solid white;
    border-radius: var(--radius-full);
}

.review-link:hover {
    background-color: white;
    color: var(--color-primary);
}

/* CTA Section */
.cta-section {
    padding: 7rem 0;
    background: var(--color-accent);
    background: linear-gradient(135deg, var(--color-accent) 0%, #c2410c 100%);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-container {
    position: relative;
    z-index: 1;
}

.cta-container h2 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-container p {
    font-size: 1.25rem;
    font-weight: 600;
    opacity: 0.95;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-container .btn-primary {
    background-color: white;
    color: var(--color-accent);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    font-size: 1.25rem;
    padding: 1.25rem 2.5rem;
}

.cta-container .btn-primary:hover {
    background-color: var(--color-bg);
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background-color: var(--color-heading);
    color: #94a3b8;
    padding-top: 5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-links i {
    font-size: 1.25rem;
    margin-top: 0.125rem;
    color: var(--color-primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
}

.developed-by {
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-heading);
    font-weight: 700;
}

.developed-by a {
    color: white;
}

.developed-by a:hover {
    color: var(--color-accent);
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 65px;
    height: 65px;
    background-color: var(--color-whatsapp);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.25rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    z-index: 999;
    transition: var(--transition-normal);
    animation: vibrate 2s linear infinite;
}

.floating-whatsapp::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--color-whatsapp);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
    background-color: var(--color-whatsapp-hover);
    transform: scale(1.1);
    animation: none;
}

.floating-whatsapp:hover::before {
    animation: none;
}

@keyframes vibrate {

    0%,
    10%,
    20%,
    30%,
    100% {
        transform: rotate(0deg);
    }

    5%,
    15%,
    25% {
        transform: rotate(10deg);
    }

    7%,
    17%,
    27% {
        transform: rotate(-10deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* =========================================
   Responsive Design (Mobile First Considerations)
   ========================================= */
@media (max-width: 992px) {

    .hero-container,
    .reviews-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-content p {
        margin: 0 auto 2.5rem auto;
    }

    .trust-card {
        left: 50%;
        transform: translateX(-50%);
        bottom: -30px;
    }

    @keyframes float {
        0% {
            transform: translate(-50%, 0px) rotate(-2deg);
        }

        50% {
            transform: translate(-50%, -15px) rotate(2deg);
        }

        100% {
            transform: translate(-50%, 0px) rotate(-2deg);
        }
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.75rem;
    }

    .cta-container h2 {
        font-size: 2.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links li {
        justify-content: center;
    }

    .hero-image-3d {
        max-width: 250px;
        /* Reduced for smaller screens to avoiding overflowing */
        margin: 0 auto;
        display: block;
        /* Center block */
    }

    /* Make the floating trust card scale appropriately */
    .hero-floating-box {
        transform: scale(0.85);
        /* Slightly scale down */
    }

    .box-1 {
        left: 50%;
        transform: translateX(-50%) scale(0.85);
        bottom: -10px;
        /* Push closer into the image */
    }

    @keyframes float-box {
        0% {
            transform: translate(-50%, 0px) scale(0.85);
        }

        100% {
            transform: translate(-50%, -10px) scale(0.85);
        }
    }
}

.nav-contact .btn-outline {
    display: none;
}

.floating-whatsapp {
    bottom: 1.5rem;
    right: 1.5rem;
}