/* =========================================
   VARIABLES & DESIGN TOKENS
   ========================================= */
:root {
    --primary-color: #FFCC00;       /* Amarillo Industrial */
    --primary-dark: #E6B800;        /* Amarillo Oscuro para hover */
    --bg-dark: #111111;             /* Fondo Oscuro Principal */
    --bg-darker: #0a0a0a;           /* Fondo Aún más oscuro */
    --bg-light: #f5f5f5;            /* Fondo Claro para contraste */
    --text-light: #ffffff;
    --text-muted: #aaaaaa;
    --text-dark: #222222;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease-in-out;
    --border-radius: 8px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* =========================================
   RESET & BASICS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

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

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* =========================================
   TYPOGRAPHY & TITLES
   ========================================= */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

.section-title {
    margin-bottom: 40px;
}

.section-title.center {
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--bg-dark);
    text-transform: uppercase;
    letter-spacing: -1px;
}

.section-title h2 span {
    color: var(--primary-color);
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--primary-color);
    margin: 10px 0 20px 0;
}

.divider.center {
    margin: 10px auto 20px auto;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 14px 30px;
    font-weight: 600;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
}

/* =========================================
   NAVBAR
   ========================================= */
nav {
    background-color: var(--bg-darker);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: var(--shadow-heavy);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Logo Excavator SVG */
.logo-exc {
    display: inline-flex;
    align-items: center;
}

.excavator-svg {
    width: 42px;
    height: 42px;
    margin-right: 8px;
    filter: drop-shadow(0 0 6px rgba(255, 204, 0, 0.5));
}

@keyframes exc-dig {
    0%, 100% { transform: rotate(0deg); }
    25%       { transform: rotate(18deg); }
    60%       { transform: rotate(-12deg); }
    80%       { transform: rotate(6deg); }
}

.exc-arm {
    transform-origin: 24px 38px;
    animation: exc-dig 2.8s ease-in-out infinite;
}

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

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

.nav-links a {
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

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

.hamburger {
    display: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    min-height: 600px;
    background: url('img/draga-alpha.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px; /* Offset for navbar */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(17, 17, 17, 0.9), rgba(17, 17, 17, 0.7));
}

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

.hero-content h1 {
    color: var(--text-light);
    font-size: 4rem;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--primary-color);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 20px;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 204, 0, 0.15);
    border: 1px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 50px;
    margin-bottom: 35px;
    animation: pulse 2s infinite alternate;
}

.hero-badge .badge-icon {
    background: var(--primary-color);
    color: var(--bg-darker);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.hero-badge .badge-text {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.4);
    }
    100% {
        box-shadow: 0 0 15px 5px rgba(255, 204, 0, 0.1);
    }
}

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

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.about-features li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-features i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary-color);
    color: var(--bg-dark);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    display: flex;
    align-items: center;
    gap: 10px;
}

.experience-badge .number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* =========================================
   PRODUCTS — 3D CAROUSEL
   ========================================= */
.products {
    background: linear-gradient(160deg, #0f0f0f 0%, #1a1a1a 100%);
}

.products .section-title h2 {
    color: var(--text-light);
}

.products .section-title p {
    color: var(--text-muted);
}

.carousel-scene {
    width: 100%;
    height: 420px;
    perspective: 1100px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.carousel-ring {
    width: 220px;
    height: 280px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.85s cubic-bezier(0.77, 0, 0.175, 1);
}

.carousel-card {
    position: absolute;
    width: 200px;
    height: 270px;
    left: 10px;
    top: 5px;
    background: #1e1e1e;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.4s, box-shadow 0.4s;
    backface-visibility: hidden;
}

.carousel-card.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.35);
}

.carousel-card .card-img {
    width: 100%;
    height: 190px;
    overflow: hidden;
}

.carousel-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-card:hover .card-img img {
    transform: scale(1.08);
}

.carousel-card h3 {
    padding: 14px 14px 10px;
    font-size: 1.05rem;
    color: var(--text-light);
    text-align: center;
}

/* Navigation buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 204, 0, 0.15);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

/* Product detail panel */
.product-detail {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,204,0,0.2);
    border-radius: var(--border-radius);
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
    transition: var(--transition);
}

.product-detail h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.product-detail p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 500px;
}

.detail-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.detail-actions .price {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1rem;
}

/* =========================================
   DELIVERY SECTION
   ========================================= */
.delivery {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.delivery .section-title h2 {
    color: var(--text-light);
}

.delivery-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.zones-list {
    margin-top: 20px;
}

.zones-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.zones-list i {
    color: var(--primary-color);
}

.delivery-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.method-card {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.method-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.method-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.method-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

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

.contact-item .icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.social-links {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.social-links h4 {
    margin-bottom: 15px;
}

.social-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background-color: var(--bg-dark);
    color: var(--primary-color);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 1.2rem;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.contact-form-container {
    background-color: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.contact-form h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--bg-dark);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

/* =========================================
   PRODUCTS GRID (icon cards)
   ========================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.product-card {
    background: var(--bg-dark);
    border: 1px solid rgba(255,204,0,0.15);
    border-radius: var(--border-radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.product-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
}
.product-visual {
    width: 100%;
    height: 110px;
    border-radius: 6px;
    margin-bottom: 4px;
}

/* Arena Fina — puntos muy chicos y juntos, color crema claro */
.product-visual.arena-fina {
    background-color: #e8d49a;
    background-image:
        radial-gradient(circle, #c8a85a 1px, transparent 1px);
    background-size: 5px 5px;
}

/* Arena Voladora — puntos aún más finos, más clara y pareja */
.product-visual.arena-voladora {
    background-color: #f2e4b0;
    background-image:
        radial-gradient(circle, #d8bc70 0.8px, transparent 0.8px);
    background-size: 4px 4px;
}

/* Arena Gruesa — puntos más grandes y separados */
.product-visual.arena-gruesa {
    background-color: #c8943c;
    background-image:
        radial-gradient(circle, #a07028 2.5px, transparent 2.5px);
    background-size: 11px 11px;
}

/* Arena con Piedra — puntos finos de arena + manchas grandes de piedra */
.product-visual.arena-piedra {
    background-color: #b8904c;
    background-image:
        radial-gradient(ellipse 5px 4px, #787060 5px, transparent 5px),
        radial-gradient(circle, #d4a85a 1px, transparent 1px);
    background-size: 22px 18px, 6px 6px;
    background-position: 0 0, 3px 3px;
}

/* Piedra / Pedregoso — manchas irregulares grises grandes */
.product-visual.piedra {
    background-color: #909090;
    background-image:
        radial-gradient(ellipse 7px 5px, #585858 6px, transparent 6px),
        radial-gradient(ellipse 5px 7px, #aaaaaa 4px, transparent 4px),
        radial-gradient(circle, #6a6a6a 3px, transparent 3px);
    background-size: 24px 20px, 20px 24px, 14px 14px;
    background-position: 0 0, 12px 10px, 6px 6px;
}

/* Granza — partículas medianas, color arena oscura / gris cálido */
.product-visual.granza {
    background-color: #a09070;
    background-image:
        radial-gradient(circle, #706040 3px, transparent 3px),
        radial-gradient(circle, #c0a878 2px, transparent 2px);
    background-size: 14px 14px, 8px 8px;
    background-position: 0 0, 7px 7px;
}

/* Tierra — color marrón oscuro, textura orgánica irregular */
.product-visual.tierra {
    background-color: #5c3518;
    background-image:
        radial-gradient(ellipse 4px 3px, #3a2010 3px, transparent 3px),
        radial-gradient(circle, #7a4a28 2px, transparent 2px),
        radial-gradient(ellipse 2px 3px, #8a5830 1.5px, transparent 1.5px);
    background-size: 14px 12px, 8px 8px, 6px 10px;
    background-position: 0 0, 7px 6px, 3px 3px;
}
.product-card h3 {
    color: var(--text-light);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
}
.product-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    flex-grow: 1;
}
@media (max-width: 900px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
}

/* =========================================
   GALLERY GRID
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 40px;
}
.gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: var(--transition);
}
.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-heavy);
}
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   SEO SECTION
   ========================================= */
.seo-section {
    background-color: var(--bg-light);
}
.seo-text {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-dark);
    line-height: 1.8;
}
.seo-text p {
    margin-bottom: 1rem;
}

/* =========================================
   REVIEW CTA
   ========================================= */
.review-cta {
    margin-top: 24px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: var(--border-radius);
    border: 1px solid #e0e0e0;
    text-align: center;
}
.review-cta p {
    color: var(--text-dark);
    margin-bottom: 14px;
    font-size: 0.95rem;
}
.btn-review {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #444;
    border: 2px solid #dadada;
    padding: 10px 22px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
}
.btn-review i {
    color: #4285F4;
    font-size: 1.1rem;
}
.btn-review:hover {
    border-color: #4285F4;
    background: #f0f4ff;
    color: #222;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background-color: var(--bg-darker);
    color: var(--text-muted);
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 800;
}

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

/* =========================================
   FAB WHATSAPP
   ========================================= */
.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-heavy);
    z-index: 999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-fab:hover {
    transform: scale(1.1);
}

/* =========================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================= */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .experience-badge {
        bottom: 20px;
        right: 20px;
    }
    
    .carousel-scene {
        height: 360px;
    }

    .carousel-card {
        width: 170px;
        height: 240px;
    }

    .carousel-card .card-img {
        height: 160px;
    }
    
    .delivery-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        background-color: var(--bg-darker);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        transition: 0.3s;
        box-shadow: var(--shadow-heavy);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }

    .carousel-scene {
        height: 320px;
    }

    .carousel-card {
        width: 145px;
        height: 210px;
    }

    .carousel-card .card-img {
        height: 135px;
    }

    .carousel-card h3 {
        font-size: 0.85rem;
        padding: 10px 8px;
    }

    .product-detail {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .detail-actions {
        flex-direction: column;
        width: 100%;
    }

    .detail-actions .btn {
        width: 100%;
    }
    
    .contact-form-container {
        padding: 20px;
    }
}
