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

/* IMPORTANTE: Prevenir scroll horizontal */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

:root {
    --primary-green: #7CFC00;
    --dark-green: #5CB200;
    --light-green: #9AFF47;
    --dark-gray: #2C2C2C;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --text-dark: #333333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    position: relative;
    width: 100%;
}

/* Contenedor general para prevenir desbordamiento */
section {
    overflow: hidden;
    position: relative;
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, var(--dark-gray) 0%, #1a1a1a 100%);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 60px;
    width: 60px;
    object-fit: cover;
    margin: 5px 15px;
    border-radius: 8px;
    box-shadow: 0px 2px 8px rgba(0,0,0,0.2);
}

.logo img:hover {
    transform: scale(1.05);
}

.logo-text {
    color: var(--primary-green);
    font-size: 1.8rem;
    font-weight: bold;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 80%;
}

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

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--primary-green);
    transition: all 0.3s ease;
}

/* Hero Section MEJORADA */
.hero {
    margin-top: 82px;
    background: linear-gradient(rgba(44, 44, 44, 0.7), rgba(124, 252, 0, 0.1)), 
                url('../img/vemadi-afuera.jpeg') center/cover;
    padding: 6rem 5%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Elementos flotantes animados */
.hero::before {
    content: '⚡';
    position: absolute;
    top: 15%;
    left: 8%;
    font-size: 4rem;
    color: rgba(124, 252, 0, 0.3);
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

.hero::after {
    content: '💡';
    position: absolute;
    bottom: 15%;
    right: 10%;
    font-size: 3rem;
    color: rgba(124, 252, 0, 0.4);
    animation: float 8s ease-in-out infinite reverse;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Partículas eléctricas */
.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: particles 10s linear infinite;
    opacity: 0.6;
    box-shadow: 0 0 10px var(--primary-green);
}

.particle:nth-child(1) { left: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 40%; animation-delay: 3s; }
.particle:nth-child(3) { left: 60%; animation-delay: 6s; }
.particle:nth-child(4) { left: 80%; animation-delay: 9s; }

@keyframes particles {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
    text-align: center;
    width: 100%;
    padding: 0 1rem;
}

/* Título mejorado con gradiente */
.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    background: linear-gradient(135deg, var(--primary-green), var(--white));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    animation: slideInLeft 1s ease;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: var(--primary-green);
    transform: translateX(-50%) scaleX(0);
    animation: lineExpand 1s ease 0.5s forwards;
}

@keyframes lineExpand {
    to {
        transform: translateX(-50%) scaleX(1);
    }
}

/* Tagline con efecto typewriter */
.hero .tagline {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    color: var(--white);
    margin-bottom: 3rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    overflow: hidden;
    border-right: 3px solid var(--primary-green);
    white-space: nowrap;
    animation: typing 3s steps(20, end), 
               blink-caret 0.75s step-end infinite;
    max-width: 100%;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-green) }
}

/* Botones del hero */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Botón CTA estilo neomorfismo */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1.3rem 2.5rem;
    background: #e8e8e8;
    color: var(--dark-gray);
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    transition: all 0.4s ease;
    animation: slideInLeft 1s ease 0.4s backwards;
    box-shadow: 12px 12px 24px rgba(0,0,0,0.15), 
                -12px -12px 24px rgba(255,255,255,0.9);
    border: 2px solid var(--primary-green);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '📞';
    margin-right: 8px;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124,252,0,0.3), transparent);
    transition: left 0.6s;
}

.cta-button:hover::after {
    left: 100%;
}

.cta-button:hover {
    box-shadow: inset 12px 12px 24px rgba(0,0,0,0.1), 
                inset -12px -12px 24px rgba(255,255,255,0.9);
    color: var(--dark-green);
    transform: translateY(-2px);
}

/* Botón secundario */
.cta-button-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1.3rem 2.5rem;
    background: transparent;
    color: var(--white);
    text-decoration: none;
    border: 2px solid var(--primary-green);
    border-radius: 25px;
    font-weight: bold;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cta-button-secondary:hover {
    background: var(--primary-green);
    color: var(--dark-gray);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 252, 0, 0.3);
}

/* Estadísticas del hero */
.hero-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(124, 252, 0, 0.3);
    min-width: 140px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-8px);
    background: rgba(124, 252, 0, 0.1);
    box-shadow: 0 15px 35px rgba(124, 252, 0, 0.2);
}

.stat-number {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: bold;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    color: var(--white);
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Image Carousel */
.carousel {
    padding: 4rem 5%;
    background: var(--light-gray);
    width: 100%;
    overflow: hidden;
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background: var(--dark-gray);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
}

.carousel-btn {
    background: rgba(124, 252, 0, 0.8);
    color: var(--dark-gray);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.carousel-btn:hover {
    background: var(--primary-green);
    transform: scale(1.1);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary-green);
    transform: scale(1.3);
}

/* About Section */
.about {
    padding: 4rem 5%;
    background: var(--white);
    width: 100%;
    overflow: hidden;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--dark-gray);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-green);
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: center;
    width: 100%;
}

.about-text {
    animation: fadeIn 1s ease;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
    box-shadow: 0 5px 15px rgba(124, 252, 0, 0.2);
}

.feature-icon {
    font-size: 2rem;
    color: var(--dark-green);
    margin-bottom: 0.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Services Section */
.services {
    padding: 4rem 5%;
    background: var(--light-gray);
    width: 100%;
    overflow: hidden;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--dark-green));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(124, 252, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.service-card h3 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

.service-card p {
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Contact Section */
.contact {
    padding: 4rem 5%;
    background: var(--white);
    width: 100%;
    overflow: hidden;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.contact-form {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(124, 252, 0, 0.1);
}

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

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: var(--dark-gray);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 252, 0, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 252, 0, 0.4);
}

.contact-info {
    padding: 2rem;
    width: 100%;
}

.info-item {
    display: flex;
    align-items: start;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.info-text h4 {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.info-text p {
    color: var(--text-dark);
    word-break: break-word;
}

.map-container {
    margin-top: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 300px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    width: 100%;
}

/* Footer */
footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 3rem 5% 1rem;
    width: 100%;
    overflow: hidden;
}

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

.footer-section h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section ul {
    line-height: 1.8;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-green);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(124, 252, 0, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #aaa;
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
    text-decoration: none;
}

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

/* Responsive Design MEJORADO */
@media (max-width: 768px) {
    /* Prevenir scroll horizontal en móvil */
    * {
        max-width: 100vw !important;
    }
    
    body {
        overflow-x: hidden !important;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--dark-gray);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

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

    .mobile-menu {
        display: flex;
    }

    .logo img {
        height: 50px;
        width: 50px;
    }
    
    /* Hero responsive */
    .hero {
        margin-top: 70px;
        padding: 3rem 1rem;
        min-height: auto;
    }
    
    .hero::before,
    .hero::after {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .tagline {
        font-size: 1.2rem;
        white-space: normal;
        border-right: none;
        animation: none;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .cta-button,
    .cta-button-secondary {
        width: 90%;
        max-width: 300px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .stat-item {
        min-width: 200px;
        width: 90%;
    }
    
    /* Carousel responsive */
    .carousel-container {
        height: 250px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    /* About responsive */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .about-image img {
        max-width: 100%;
    }
    
    /* Contact responsive */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .info-item:hover {
        transform: none;
    }
    
    .info-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    /* Services responsive */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .social-links {
        justify-content: center;
    }
    
    /* WhatsApp button responsive */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .about-content {
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Prevenir zoom accidental en inputs móviles */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px !important;
    }
}