/* General Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

/* Animaciones personalizadas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ===== BARRA DE SCROLL PERSONALIZADA ===== */
/* Para navegadores WebKit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #5D8A48 0%, #4a7039 100%);
    border-radius: 10px;
    border: 2px solid #1a1a1a;
    transition: all 0.3s ease;
}



::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, #4a7039 0%, #3a5a2d 100%);
}

/* Para Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: #5D8A48 #1a1a1a;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px #5D8A48;
    }
    50% {
        box-shadow: 0 0 20px #5D8A48, 0 0 30px #5D8A48;
    }
    100% {
        box-shadow: 0 0 5px #5D8A48;
    }
}

@keyframes icon {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

html, body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 25%, #0f0f0f 50%, #1a1a1a 75%, #0a0a0a 100%);
    background-attachment: fixed;
    color: #f5f5f5;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* Prevenir overflow horizontal en todos los elementos */
*, *::before, *::after {
    box-sizing: border-box;
    max-width: 100%;
}

/* Contenedores principales */
.container, .hero, .services, .contact, .footer {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Partículas de fondo animadas mejoradas */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(3px 3px at 25px 35px, #5D8A48, transparent),
        radial-gradient(2px 2px at 45px 75px, rgba(255,255,255,0.15), transparent),
        radial-gradient(1px 1px at 95px 45px, #7BA05B, transparent),
        radial-gradient(2px 2px at 135px 85px, rgba(93, 138, 72, 0.3), transparent),
        radial-gradient(3px 3px at 165px 35px, #5D8A48, transparent),
        radial-gradient(1px 1px at 200px 120px, rgba(255,255,255,0.1), transparent);
    background-repeat: repeat;
    background-size: 250px 150px;
    animation: icon 8s ease-in-out infinite;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

/* Header mejorado */
header {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.98) 0%, rgba(26, 26, 26, 0.95) 50%, rgba(0, 0, 0, 0.98) 100%);
    padding: 2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, transparent, #5D8A48, #7BA05B, #5D8A48, transparent) 1;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(93, 138, 72, 0.1);
    overflow-x: hidden;
}

header.scrolled {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(15, 15, 15, 0.95) 50%, rgba(26, 26, 26, 0.98) 100%);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(93, 138, 72, 0.2);
    backdrop-filter: blur(25px) saturate(200%);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    max-width: 1400px;
    margin: 0 auto;
    animation: slideInLeft 0.8s ease-out;
}

.logo {
    overflow: hidden;
}

.logo img {
    height: 80px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 15px rgba(93, 138, 72, 0.4));
}




nav ul {
    display: flex;
    gap: 50px;
    margin: 0;
    padding: 0;
    list-style: none;
    animation: slideInRight 0.8s ease-out 0.3s both;
}

nav ul li {
    position: relative;
    overflow: hidden;
}

nav ul li::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #5D8A48, #7BA05B, #5D8A48);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(93, 138, 72, 0.5);
}



nav ul li a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.1rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 600;
    position: relative;
    padding: 12px 0;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul li:hover::before {
    width: 100%;
}

nav ul li:hover a {
    background: linear-gradient(45deg, #5D8A48, #7BA05B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(-2px);
    text-shadow: 0 4px 8px rgba(93, 138, 72, 0.3);
}




/* Hero Section mejorado */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    color: #fff;
    margin-top: 0;
}

/* Hero container para imagen estática */
.hero-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* MENÚ MÓVIL OPTIMIZADO PARA TÁCTIL */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 15px;
    z-index: 1002;
    position: relative;
    border-radius: 10px;
    background: rgba(93, 138, 72, 0.2);
    min-width: 50px;
    min-height: 50px;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}



.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px); /* AJUSTADO */
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px); /* AJUSTADO */
}

/* Mobile Menu OPTIMIZADO PARA TÁCTIL */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(26, 26, 26, 0.95) 100%);
    transition: right 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    touch-action: manipulation;
}

.mobile-menu.active {
    right: 0;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    border-bottom: 2px solid #5D8A48;
    min-height: 90px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.menu-header img {
    height: 60px;
    width: auto;
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(93, 138, 72, 0.4));
    transition: all 0.3s ease;
}

.close-menu {
    font-size: 2.8rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 12px;
    line-height: 1;
    border-radius: 50%;
    background: rgba(93, 138, 72, 0.2);
    min-width: 52px;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.close-menu:hover {
    background: rgba(93, 138, 72, 0.3);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(93, 138, 72, 0.3);
}

.close-menu:active {
    transform: scale(0.9);
    background: rgba(93, 138, 72, 0.4);
}



.mobile-menu ul {
    list-style: none;
    padding: 40px 0; /* AUMENTADO */
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* CENTRADO VERTICAL */
}

.mobile-menu ul li {
    margin: 0;
    border-bottom: 1px solid rgba(93, 138, 72, 0.2);
    transform: translateX(-50px);
    opacity: 0;
    animation: slideInLeft 0.5s ease-out forwards;
}

.mobile-menu ul li:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu ul li:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu ul li:nth-child(3) { animation-delay: 0.3s; }
.mobile-menu ul li:nth-child(4) { animation-delay: 0.4s; }

.mobile-menu ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.9rem;
    padding: 30px 35px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    transition: all 0.3s ease;
    position: relative;
    font-weight: bold;
    text-align: center;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    border-radius: 8px;
    margin: 5px 15px;
}

.mobile-menu ul li a::before {
    content: '';
    position: absolute;
    left: 50%; /* CENTRADO */
    bottom: 0;
    width: 0;
    height: 3px; /* AUMENTADO */
    background: linear-gradient(90deg, #5D8A48, #4a7039);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.mobile-menu ul li a:hover::before {
    width: 80%; /* REDUCIDO para mejor apariencia */
}



/* RESPONSIVE MEJORADO */
@media (max-width: 768px) {
    /* TIPOGRAFÍA GLOBAL MÓVIL */
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    h1 {
        font-size: 2.2em;
        line-height: 1.3;
        margin-bottom: 20px;
    }
    
    h2 {
        font-size: 2em;
        line-height: 1.4;
        margin-bottom: 18px;
    }
    
    h3 {
        font-size: 1.5em;
        line-height: 1.4;
        margin-bottom: 15px;
    }
    
    p {
        font-size: 1.05em;
        line-height: 1.6;
        margin-bottom: 16px;
    }
    
    /* ESPACIADO GLOBAL MÓVIL */
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    section {
        padding: 60px 0;
    }
    
    .menu-toggle {
        display: flex;
    }

    .desktop-nav {
        display: none;
    }

    /* HEADER MÓVIL MEJORADO */
    header {
        padding: 1rem 0;
    }

    header .container {
        padding: 0 15px;
    }

    /* HERO ESTÁTICO MÓVIL - OPTIMIZADO */
    .hero-content {
        position: absolute;
        bottom: 15%;
        left: 50%;
        transform: translateX(-50%);
        width: 82%;
        max-width: 320px;
        padding: 18px 15px;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.93) 0%, rgba(26, 26, 26, 0.96) 100%);
        border: 2px solid #5D8A48;
        text-align: center;
        border-radius: 12px;
        backdrop-filter: blur(20px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(93, 138, 72, 0.3);
        z-index: 3;
    }

    .hero-content h1 {
        font-size: 1.4rem;
        margin-bottom: 10px;
        line-height: 1.0;
        font-weight: 700;
        letter-spacing: 0px;
    }

    .hero-content p {
        font-size: 0.8rem;
        line-height: 1.3;
        margin: 0;
        opacity: 0.96;
        font-weight: 400;
    }

    /* OPTIMIZACIÓN IMAGEN HERO MÓVIL */
    .hero-image {
        object-fit: cover;
        object-position: center center;
        min-height: 100vh;
        width: 100%;
    }

    .hero {
        min-height: 100vh;
        height: 100vh;
    }
}

/* iPhone 6/7/8 Plus y dispositivos similares (414px) */
@media (max-width: 420px) {
    .mobile-menu ul li a {
        font-size: 1.4rem;
        padding: 18px 22px;
    }

    .hero-content {
        padding: 25px 20px;
        bottom: 12%;
        width: 90%;
        max-width: 350px;
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
        letter-spacing: 0.5px;
        line-height: 1.2;
        font-weight: 700;
    }

    .hero-content p {
        font-size: 1rem;
        line-height: 1.4;
        margin: 0;
        opacity: 0.95;
    }

    /* Servicios optimizados para iPhone Plus */
    .service-content {
        padding: 75px 18px 22px 18px;
    }

    .service-content h2 {
        font-size: 1.85em;
    }

    .service-image {
        width: 185px;
        height: 185px;
        top: -32px;
    }

    /* Formulario de contacto para iPhone Plus */
    .contact form input,
    .contact form textarea {
        padding: 17px;
        font-size: 16px;
        border-radius: 12px;
    }

    .contact form button {
        padding: 17px 32px;
        font-size: 15px;
        min-height: 54px;
    }
}

/* iPhone 6/7/8 y dispositivos similares (375px) */
@media (max-width: 414px) {
    .mobile-menu ul li a {
        font-size: 1.35rem;
        padding: 17px 20px;
    }

    .hero-content {
        padding: 22px 18px;
        bottom: 12%;
        width: 88%;
        max-width: 320px;
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-content h1 {
        font-size: 1.6rem;
        margin-bottom: 12px;
        letter-spacing: 0.3px;
        line-height: 1.15;
        font-weight: 700;
    }

    .hero-content p {
        font-size: 0.95rem;
        line-height: 1.35;
        margin: 0;
        opacity: 0.95;
    }

    /* Servicios optimizados para iPhone */
    .service-content {
        padding: 70px 16px 20px 16px;
    }

    .service-content h2 {
        font-size: 1.8em;
    }

    .service-image {
        width: 175px;
        height: 175px;
        top: -30px;
    }

    /* Formulario de contacto para iPhone */
    .contact form input,
    .contact form textarea {
        padding: 16px;
        font-size: 16px;
        border-radius: 10px;
    }

    .contact form button {
        padding: 16px 30px;
        font-size: 15px;
        min-height: 52px;
    }

    /* Footer optimizado para iPhone */
    .footer-logo img {
        height: 70px;
    }

    .footer-brand p {
        font-size: 0.95em;
        line-height: 1.6;
    }

    .footer-links ul li a,
    .footer-contact p {
        font-size: 0.95em;
        padding: 10px 0;
    }

    /* Carrusel optimizado para iPhone */
    .carousel-caption {
        bottom: 18%;
        left: 4%;
        right: 4%;
        padding: 20px 16px;
        max-width: 92%;
    }

    .carousel-caption h1 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .carousel-caption p {
        font-size: 0.9rem;
        line-height: 1.35;
    }

    .carousel-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

@media (max-width: 390px) {
    .hero-content {
        padding: 15px 10px;
        bottom: 12%;
        width: 100%;
        max-width: 100%;
        left: 0;
        transform: none;
        background: none !important;
        border: none !important;
        border-image: none !important;
        backdrop-filter: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
        letter-spacing: 0.2px;
        line-height: 1.1;
        font-weight: 800;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
        color: #ffffff;
        text-align: center;
        width: 100%;
    }

    .hero-content p {
        font-size: 0.9rem;
        line-height: 1.3;
        margin: 0;
        opacity: 1;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
        color: #ffffff;
        text-align: center;
        width: 100%;
        max-width: 95%;
    }
}

@media (max-width: 360px) {
    .mobile-menu ul li a {
        font-size: 1.3rem;
        padding: 16px 20px;
    }

    .hero-content {
        padding: 12px 8px;
        bottom: 12%;
        width: 100%;
        max-width: 100%;
        left: 0;
        transform: none;
        background: none !important;
        border: none !important;
        border-image: none !important;
        backdrop-filter: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .hero-content h1 {
        font-size: 1.4rem;
        margin-bottom: 10px;
        letter-spacing: 0.1px;
        line-height: 1.1;
        font-weight: 800;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
        color: #ffffff;
        text-align: center;
        width: 100%;
    }

    .hero-content p {
        font-size: 0.85rem;
        line-height: 1.3;
        margin: 0;
        opacity: 1;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
        color: #ffffff;
        text-align: center;
        width: 100%;
        max-width: 98%;
    }
}

/* OVERLAY PARA MENÚ MÓVIL */
.mobile-menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu.active::before {
    opacity: 1;
}

.carousel-caption {
    position: absolute;
    bottom: 10%;
    left: 5%;
    right: 5%;
    max-width: min(45%, 600px);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(26, 26, 26, 0.9) 100%);
    padding: 40px;
    border: 2px solid #5D8A48;
    border-radius: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: slideInLeft 1s ease-out 1.5s both;
}

/* Contenido del hero estático */
.hero-content {
    position: absolute;
    bottom: 10%;
    left: 5%;
    right: 5%;
    max-width: min(50%, 700px);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(10, 10, 10, 0.9) 50%, rgba(26, 26, 26, 0.95) 100%);
    padding: 50px;
    border: 3px solid transparent;
    border-image: linear-gradient(45deg, #5D8A48, #7BA05B, #5D8A48) 1;
    border-radius: 15px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: slideInLeft 1s ease-out 1.5s both;
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(93, 138, 72, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
    margin: 0 0 25px 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.1;
    background: linear-gradient(45deg, #fff, #f0f0f0, #5D8A48, #7BA05B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 300%;
    animation: gradientShift 4s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(93, 138, 72, 0.3));
    position: relative;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-content h1::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 150px;
    height: 5px;
    background: linear-gradient(90deg, #5D8A48, #7BA05B, #5D8A48);
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(93, 138, 72, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

.hero-content p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin: 20px 0 25px 0;
    color: #f5f5f5;
    font-weight: 400;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease-out 1s both;
    opacity: 0.95;
}

/* MEJORAS ADICIONALES PARA MÓVIL - ELIMINADAS DUPLICADAS */
    
    .hero-content h1::after {
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .hero-content {
        bottom: 5%;
        width: 95%;
        padding: 20px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
        margin-bottom: 12px;
    }
    
    .hero-content h1::after {
        width: 60px;
        height: 3px;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin: 8px 0;
    }
}



/* Contact Section mejorado */
.contact {
    background: linear-gradient(135deg, #222 0%, #1a1a1a 100%);
    padding: 80px 20px;
    text-align: center;
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(93, 138, 72, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.contact h2 {
    font-size: 2.5em;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0 20px;
    background: linear-gradient(45deg, #fff, #5D8A48);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

.contact .slogan {
    font-size: 1.3em;
    margin-bottom: 40px;
    font-style: italic;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.contact form {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.contact form input,
.contact form textarea {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #333 0%, #2a2a2a 100%);
    border: 1px solid rgba(93, 138, 72, 0.3);
    color: #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    position: relative;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.contact form input:focus,
.contact form textarea:focus {
    outline: none;
    border-color: #5D8A48;
    box-shadow: 0 0 20px rgba(93, 138, 72, 0.3), 0 0 0 3px rgba(93, 138, 72, 0.1);
    transform: translateY(-2px);
    border-width: 2px;
}

.contact form textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

.char-counter {
    text-align: right;
    font-size: 0.9em;
    color: #888;
    margin-top: -15px;
    margin-bottom: 10px;
}

#charCount {
    color: #5D8A48;
    font-weight: bold;
}

.contact form button {
    background: linear-gradient(45deg, #5D8A48, #4a7039);
    color: #fff;
    padding: 18px 35px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 56px;
    min-width: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.contact form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.contact form button:hover {
    background: linear-gradient(45deg, #4a7039, #5D8A48);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(93, 138, 72, 0.4);
}

.contact form button:hover::before {
    left: 100%;
}






footer {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 50px 0 25px 0;
    border-top: 2px solid rgba(93, 138, 72, 0.4);
    position: relative;
    color: #e0e0e0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #5D8A48, transparent);
}

footer .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}
.footer-main {
    display: grid;
    grid-template-columns: 2.5fr 1.2fr 1.3fr;
    gap: 50px;
    margin-bottom: 35px;
    animation: fadeInUp 0.8s ease-out;
    align-items: start;
}

/* Columna izquierda: Brand con titulo.png bien proporcionado */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    margin-bottom: 5px;
}

.footer-logo img {
    height: 85px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(93, 138, 72, 0.4));
    transition: all 0.3s ease;
    opacity: 0.95;
}



.footer-brand p {
    color: #c0c0c0;
    line-height: 1.7;
    margin: 20px 0 0 0;
    font-size: 1.1em;
    max-width: 350px;
    font-weight: 400;
}

/* Columna central: Enlaces */
.footer-links h4 {
    color: #5D8A48;
    font-size: 1.1em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95em;
    position: relative;
    padding-left: 0;
}



.footer-links ul li a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #5D8A48;
    transition: width 0.3s ease;
}



/* Columna derecha: Contacto */
.footer-contact h4 {
    color: #5D8A48;
    font-size: 1.1em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.footer-contact p {
    color: #b0b0b0;
    margin: 12px 0;
    font-size: 0.95em;
    transition: color 0.3s ease;
}



/* Parte inferior del footer */
.footer-bottom {
    border-top: 1px solid rgba(93, 138, 72, 0.2);
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    color: #888;
    font-size: 0.9em;
    margin: 8px 0;
    opacity: 0.8;
}

.privacy-policy {
    font-size: 0.85em !important;
    opacity: 0.7 !important;
    margin-top: 15px !important;
}



@media (max-width: 768px) {
    footer {
        padding: 30px 0 20px 0;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .footer-brand {
        align-items: center;
    }
    
    .footer-logo img {
        height: 90px;
    }
    
    .footer-brand p {
        max-width: none;
        text-align: center;
        font-size: 1.1em;
        margin-top: 20px;
    }
    
    .footer-links h4,
    .footer-contact h4 {
        font-size: 1.2em;
        margin-bottom: 25px;
    }
    
    .footer-links ul li a {
        font-size: 1.1em;
        padding: 15px 0;
    }
    
    .footer-contact p {
        font-size: 1.1em;
        margin: 15px 0;
    }
    
    .footer-links ul li a:hover {
        padding-left: 0;
    }
    
    .footer-links ul li a::before {
        display: none;
    }
}
@media (max-width: 480px) {
    footer {
        padding: 25px 0 15px 0;
    }
    
    .footer-main {
        gap: 20px;
        margin-bottom: 15px;
    }
    
    .footer-logo img {
        height: 75px;
    }
    
    .footer-brand p {
        font-size: 1em;
        line-height: 1.6;
    }
    
    .footer-links h4,
    .footer-contact h4 {
        font-size: 1.1em;
        margin-bottom: 20px;
    }
    
    .footer-links ul li a {
        font-size: 1em;
        padding: 12px 0;
    }
    
    .footer-contact p {
        font-size: 1em;
    }
    
    .footer-bottom p {
        font-size: 0.9em;
        padding: 0 15px;
    }
}

/* PORTADA COMPLETAMENTE REDISEÑADA */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    color: #fff;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    max-width: 100vw; /* Asegurar que no se salga de la pantalla */
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    background-size: cover;
    background-position: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    position: relative;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.1);
}

/* OVERLAY PROFESIONAL PARA EL HERO ESTÁTICO */
.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(26, 26, 26, 0.5) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 2;
}




/* ===== HERO ESTÁTICO - SIN CONTROLES DE CARRUSEL ===== */
/* Los controles del carrusel han sido eliminados */

/* Estilos del carrusel eliminados */

/* OPTIMIZACIÓN PARA RESOLUCIONES INTERMEDIAS */
@media (min-width: 1200px) and (max-width: 1366px) {
    .container {
        max-width: 1140px;
        margin: 0 auto;
        padding: 0 30px;
    }
    
    .carousel-caption {
        max-width: 40%;
        padding: 35px;
        left: 6%;
    }
    
    .carousel-caption h1 {
        font-size: 3.2rem;
    }
    
    .carousel-caption p {
        font-size: 1.3rem;
    }
}

@media (min-width: 1367px) and (max-width: 1439px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 35px;
    }
    
    .carousel-caption {
        max-width: 40%;
        padding: 38px;
        left: 6%;
        background: rgba(0, 0, 0, 0.32);
        border-radius: 12px;
        backdrop-filter: blur(6px);
    }
    
    .carousel-caption h1 {
        font-size: 3.3rem;
        line-height: 1.15;
        letter-spacing: 2px;
    }
    
    .carousel-caption p {
        font-size: 1.25rem;
        line-height: 1.6;
        max-width: 85%;
    }
    
    .service-item {
        padding: 45px 25px;
    }
    
    .service-content {
        padding: 38px;
    }
    
    .service-content h2 {
        font-size: 2.4em;
    }
}

@media (min-width: 1440px) and (max-height: 900px) {
    .container {
        max-width: 1250px;
        margin: 0 auto;
        padding: 0 35px;
    }
    
    .carousel-caption {
        max-width: 42%;
        padding: 35px;
        left: 6%;
        background: rgba(0, 0, 0, 0.32);
        border-radius: 12px;
        backdrop-filter: blur(6px);
    }
    
    .carousel-caption h1 {
        font-size: 3.2rem;
        line-height: 1.15;
        letter-spacing: 2px;
        margin-bottom: 18px;
    }
    
    .carousel-caption p {
        font-size: 1.2rem;
        line-height: 1.5;
        max-width: 85%;
        margin: 12px 0 18px 0;
    }
    
    .service-item {
        padding: 40px 25px;
    }
    
    .service-content {
        padding: 35px;
    }
    
    .service-content h2 {
        font-size: 2.3em;
    }
}

@media (min-width: 1600px) and (max-height: 900px) {
    .container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 40px;
    }
    
    .carousel-caption {
        max-width: 40%;
        padding: 38px;
        left: 6.5%;
        background: rgba(0, 0, 0, 0.32);
        border-radius: 12px;
        backdrop-filter: blur(6px);
    }
    
    .carousel-caption h1 {
        font-size: 3.4rem;
        line-height: 1.15;
        letter-spacing: 2.2px;
        margin-bottom: 18px;
    }
    
    .carousel-caption p {
        font-size: 1.25rem;
        line-height: 1.5;
        max-width: 85%;
        margin: 12px 0 18px 0;
    }
    
    .service-item {
        padding: 45px 30px;
    }
    
    .service-content {
        padding: 38px;
    }
    
    .service-content h2 {
        font-size: 2.4em;
    }
}

@media (min-width: 1440px) and (min-height: 901px) and (max-width: 1599px) {
    .container {
        max-width: 1300px;
        margin: 0 auto;
        padding: 0 40px;
    }
    
    .carousel-caption {
        max-width: 38%;
        padding: 40px;
        left: 6.5%;
        background: rgba(0, 0, 0, 0.32);
        border-radius: 12px;
        backdrop-filter: blur(6px);
    }
    
    .carousel-caption h1 {
        font-size: 3.6rem;
        line-height: 1.15;
        letter-spacing: 2.5px;
    }
    
    .carousel-caption p {
        font-size: 1.4rem;
        line-height: 1.6;
        max-width: 85%;
    }
}

/* Resolución específica 1680x1050 */
@media (min-width: 1680px) and (max-height: 1050px) {
    .container {
        max-width: 1450px;
        margin: 0 auto;
        padding: 0 40px;
    }
    
    .carousel-caption {
        max-width: 32%;
        padding: 35px;
        left: 6%;
        background: rgba(0, 0, 0, 0.35);
        border-radius: 12px;
        backdrop-filter: blur(6px);
    }
    
    .carousel-caption h1 {
        font-size: 3.5rem;
        line-height: 1.15;
        letter-spacing: 2.3px;
        margin-bottom: 20px;
    }
    
    .carousel-caption p {
        font-size: 1.35rem;
        line-height: 1.6;
        max-width: 85%;
        margin: 15px 0 20px 0;
    }
    
    .service-item {
        padding: 48px 32px;
    }
    
    .service-content {
        padding: 40px;
    }
    
    .service-content h2 {
        font-size: 2.5em;
    }
}

/* Resolución específica 1600x1200 */
@media (min-width: 1600px) and (min-height: 1200px) and (max-width: 1679px) {
    .container {
        max-width: 1380px;
        margin: 0 auto;
        padding: 0 40px;
    }
    
    .carousel-caption {
        max-width: 30%;
        padding: 38px;
        left: 5.5%;
        background: rgba(0, 0, 0, 0.35);
        border-radius: 12px;
        backdrop-filter: blur(6px);
    }
    
    .carousel-caption h1 {
        font-size: 3.6rem;
        line-height: 1.15;
        letter-spacing: 2.4px;
        margin-bottom: 22px;
    }
    
    .carousel-caption p {
        font-size: 1.4rem;
        line-height: 1.6;
        max-width: 85%;
        margin: 18px 0 22px 0;
    }
    
    .service-item {
        padding: 50px 35px;
    }
    
    .service-content {
        padding: 42px;
    }
    
    .service-content h2 {
        font-size: 2.6em;
    }
}

@media (min-width: 1600px) and (min-height: 901px) and (max-height: 1199px) and (max-width: 1679px) {
    .container {
        max-width: 1350px;
        margin: 0 auto;
        padding: 0 40px;
    }
    
    .carousel-caption {
        max-width: 37%;
        padding: 42px;
        left: 6.5%;
        background: rgba(0, 0, 0, 0.32);
        border-radius: 12px;
        backdrop-filter: blur(6px);
    }
    
    .carousel-caption h1 {
        font-size: 3.7rem;
        line-height: 1.15;
        letter-spacing: 2.5px;
    }
    
    .carousel-caption p {
        font-size: 1.45rem;
        line-height: 1.6;
        max-width: 85%;
    }
}

/* Resolución específica 1768x992 (laptops intermedios) */
@media (min-width: 1768px) and (max-height: 992px) {
    .container {
        max-width: 1500px;
        margin: 0 auto;
        padding: 0 40px;
    }
    
    .carousel-caption {
        max-width: 30%;
        padding: 32px;
        left: 5.5%;
        background: rgba(0, 0, 0, 0.35);
        border-radius: 12px;
        backdrop-filter: blur(6px);
    }
    
    .carousel-caption h1 {
        font-size: 3.4rem;
        line-height: 1.15;
        letter-spacing: 2.2px;
        margin-bottom: 18px;
    }
    
    .carousel-caption p {
        font-size: 1.3rem;
        line-height: 1.5;
        max-width: 85%;
        margin: 14px 0 18px 0;
    }
    
    .service-item {
        padding: 46px 30px;
    }
    
    .service-content {
        padding: 38px;
    }
    
    .service-content h2 {
        font-size: 2.4em;
    }
}

@media (min-width: 1680px) and (min-height: 1051px) and (max-width: 1767px) {
    .container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 42px;
    }
    
    .carousel-caption {
        max-width: 36%;
        padding: 44px;
        left: 7%;
        background: rgba(0, 0, 0, 0.32);
        border-radius: 12px;
        backdrop-filter: blur(6px);
    }
    
    .carousel-caption h1 {
        font-size: 3.8rem;
        line-height: 1.15;
        letter-spacing: 2.6px;
    }
    
    .carousel-caption p {
        font-size: 1.5rem;
        line-height: 1.6;
        max-width: 85%;
    }
}

@media (min-width: 1768px) and (min-height: 993px) and (max-width: 1919px) {
    .container {
        max-width: 1450px;
        margin: 0 auto;
        padding: 0 42px;
    }
    
    .carousel-caption {
        max-width: 35%;
        padding: 45px;
        left: 7%;
        background: rgba(0, 0, 0, 0.32);
        border-radius: 12px;
        backdrop-filter: blur(6px);
    }
    
    .carousel-caption h1 {
        font-size: 3.9rem;
        line-height: 1.15;
        letter-spacing: 2.7px;
    }
    
    .carousel-caption p {
        font-size: 1.55rem;
        line-height: 1.6;
        max-width: 85%;
    }
}

/* OPTIMIZACIÓN ESPECÍFICA PARA 1920x1080 */
@media (min-width: 1920px) and (max-height: 1080px) {
    .container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 40px;
    }
    
    .carousel-caption {
        max-width: 36%;
        padding: 40px;
        left: 7%;
        background: rgba(0, 0, 0, 0.32);
        border-radius: 12px;
        backdrop-filter: blur(6px);
    }
    
    .carousel-caption h1 {
        font-size: 3.4rem;
        letter-spacing: 2.5px;
        line-height: 1.15;
        margin-bottom: 20px;
    }
    
    .carousel-caption p {
        font-size: 1.3rem;
        max-width: 85%;
        line-height: 1.6;
        margin: 15px 0 20px 0;
    }
    
    .service-item {
        padding: 50px 30px;
    }
    
    .service-content {
        padding: 40px;
    }
    
    .service-content h2 {
        font-size: 2.5em;
    }
}

/* OPTIMIZACIÓN PARA RESOLUCIONES GRANDES */
@media (min-width: 1920px) and (min-height: 1081px) {
    .container {
        max-width: 1600px;
        margin: 0 auto;
        padding: 0 50px;
    }
    
    .carousel-caption {
        max-width: 32%;
        padding: 50px;
        left: 8%;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 15px;
        backdrop-filter: blur(8px);
    }
    
    .carousel-caption h1 {
        font-size: 4rem;
        letter-spacing: 3px;
        line-height: 1.1;
        margin-bottom: 25px;
    }
    
    .carousel-caption p {
        font-size: 1.6rem;
        max-width: 90%;
        line-height: 1.6;
        margin: 20px 0 25px 0;
    }
    
    .service-item {
        padding: 60px 40px;
    }
    
    .service-content {
        padding: 50px;
    }
    
    .service-content h2 {
        font-size: 2.8em;
    }
    
    .carousel-controls {
        bottom: 12% !important;
        gap: 20px !important;
    }
    
    .carousel-counter {
        font-size: 1.8rem;
    }
}

/* RESOLUCIONES ADICIONALES PARA MEJOR RESPONSIVIDAD */

/* ESTILO UNIFICADO PARA TODAS LAS RESOLUCIONES - COMO LA PRIMERA IMAGEN */

/* Aplicar el mismo estilo a todas las resoluciones de escritorio */
@media (min-width: 1200px) {
    .carousel-caption {
        max-width: 30% !important;
        padding: 30px !important;
        left: 5% !important;
        bottom: 8% !important;
        top: auto !important;
        transform: none !important;
        background: rgba(0, 0, 0, 0.75) !important;
        border-radius: 12px !important;
        backdrop-filter: blur(8px) !important;
        border: 2px solid rgba(76, 175, 80, 0.3) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    }
    
    .carousel-caption h1 {
        font-size: 3.2rem !important;
        line-height: 1.1 !important;
        letter-spacing: 2px !important;
        margin-bottom: 20px !important;
        color: #ffffff !important;
        font-weight: 700 !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    }
    
    .carousel-caption p {
        font-size: 1.2rem !important;
        line-height: 1.5 !important;
        max-width: 90% !important;
        margin: 15px 0 20px 0 !important;
        color: #ffffff !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
    }
    
    .carousel-caption .slide-number {
        font-size: 1.1rem !important;
        color: #4CAF50 !important;
        font-weight: 600 !important;
        margin-bottom: 10px !important;
    }
}

/* Resolución 1536x864 - Laptops 16:9 */
@media (min-width: 1536px) and (max-height: 864px) and (max-width: 1679px) {
    .container {
        max-width: 1350px;
        margin: 0 auto;
        padding: 0 35px;
    }
    
    .carousel-caption {
        max-width: 28%;
        padding: 26px;
        left: 4.8%;
        background: rgba(0, 0, 0, 0.42);
        border-radius: 10px;
        backdrop-filter: blur(5px);
    }
    
    .carousel-caption h1 {
        font-size: 3.1rem;
        line-height: 1.1;
        letter-spacing: 2px;
        margin-bottom: 16px;
    }
    
    .carousel-caption p {
        font-size: 1.2rem;
        line-height: 1.5;
        max-width: 80%;
        margin: 12px 0 16px 0;
    }
}

/* Resolución 1366x768 - Laptops comunes */
@media (min-width: 1366px) and (max-height: 768px) and (max-width: 1535px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 30px;
    }
    
    .carousel-caption {
        max-width: 35%;
        padding: 28px;
        left: 6.2%;
        background: rgba(0, 0, 0, 0.37);
        border-radius: 10px;
        backdrop-filter: blur(5px);
    }
    
    .carousel-caption h1 {
        font-size: 3rem;
        line-height: 1.15;
        letter-spacing: 2px;
        margin-bottom: 16px;
    }
    
    .carousel-caption p {
        font-size: 1.2rem;
        line-height: 1.5;
        max-width: 85%;
        margin: 12px 0 16px 0;
    }
}

/* Resolución 1280x720 - HD */
@media (min-width: 1280px) and (max-height: 720px) and (max-width: 1365px) {
    .container {
        max-width: 1100px;
        margin: 0 auto;
        padding: 0 25px;
    }
    
    .carousel-caption {
        max-width: 38%;
        padding: 25px;
        left: 6.5%;
        background: rgba(0, 0, 0, 0.38);
        border-radius: 10px;
        backdrop-filter: blur(5px);
    }
    
    .carousel-caption h1 {
        font-size: 2.8rem;
        line-height: 1.15;
        letter-spacing: 1.8px;
        margin-bottom: 14px;
    }
    
    .carousel-caption p {
        font-size: 1.1rem;
        line-height: 1.5;
        max-width: 85%;
        margin: 10px 0 14px 0;
    }
}

/* Resolución 1440x900 - Monitores 16:10 */
@media (min-width: 1440px) and (max-height: 900px) and (max-width: 1535px) {
    .container {
        max-width: 1250px;
        margin: 0 auto;
        padding: 0 35px;
    }
    
    .carousel-caption {
        max-width: 34%;
        padding: 32px;
        left: 6%;
        background: rgba(0, 0, 0, 0.35);
        border-radius: 12px;
        backdrop-filter: blur(6px);
    }
    
    .carousel-caption h1 {
        font-size: 3.3rem;
        line-height: 1.15;
        letter-spacing: 2.1px;
        margin-bottom: 18px;
    }
    
    .carousel-caption p {
        font-size: 1.25rem;
        line-height: 1.5;
        max-width: 85%;
        margin: 12px 0 18px 0;
    }
}

/* Resolución 2560x1440 - QHD */
@media (min-width: 2560px) and (max-height: 1440px) {
    .container {
        max-width: 2200px;
        margin: 0 auto;
        padding: 0 60px;
    }
    
    .carousel-caption {
        max-width: 25%;
        padding: 50px;
        left: 4.5%;
        background: rgba(0, 0, 0, 0.32);
        border-radius: 16px;
        backdrop-filter: blur(10px);
    }
    
    .carousel-caption h1 {
        font-size: 5rem;
        line-height: 1.15;
        letter-spacing: 3px;
        margin-bottom: 28px;
    }
    
    .carousel-caption p {
        font-size: 1.8rem;
        line-height: 1.6;
        max-width: 85%;
        margin: 20px 0 28px 0;
    }
}

/* Resolución 1024x768 - Tablets landscape */
@media (min-width: 1024px) and (max-height: 768px) and (max-width: 1279px) {
    .container {
        max-width: 950px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    .carousel-caption {
        max-width: 42%;
        padding: 22px;
        left: 7%;
        background: rgba(0, 0, 0, 0.4);
        border-radius: 8px;
        backdrop-filter: blur(4px);
    }
    
    .carousel-caption h1 {
        font-size: 2.5rem;
        line-height: 1.15;
        letter-spacing: 1.5px;
        margin-bottom: 12px;
    }
    
    .carousel-caption p {
        font-size: 1rem;
        line-height: 1.4;
        max-width: 85%;
        margin: 8px 0 12px 0;
    }
}

/* Resolución 1920x1200 - WUXGA */
@media (min-width: 1920px) and (min-height: 1200px) and (max-width: 2559px) {
    .container {
        max-width: 1650px;
        margin: 0 auto;
        padding: 0 45px;
    }
    
    .carousel-caption {
        max-width: 28%;
        padding: 42px;
        left: 5%;
        background: rgba(0, 0, 0, 0.33);
        border-radius: 14px;
        backdrop-filter: blur(8px);
    }
    
    .carousel-caption h1 {
        font-size: 4.2rem;
        line-height: 1.15;
        letter-spacing: 2.8px;
        margin-bottom: 24px;
    }
    
    .carousel-caption p {
        font-size: 1.6rem;
        line-height: 1.6;
        max-width: 85%;
        margin: 18px 0 24px 0;
    }
}

/* Resolución 1280x1024 - SXGA (5:4) */
@media (min-width: 1280px) and (min-height: 1024px) and (max-width: 1365px) {
    .container {
        max-width: 1150px;
        margin: 0 auto;
        padding: 0 30px;
    }
    
    .carousel-caption {
        max-width: 36%;
        padding: 30px;
        left: 6.5%;
        background: rgba(0, 0, 0, 0.37);
        border-radius: 10px;
        backdrop-filter: blur(5px);
    }
    
    .carousel-caption h1 {
        font-size: 3.1rem;
        line-height: 1.15;
        letter-spacing: 2px;
        margin-bottom: 16px;
    }
    
    .carousel-caption p {
        font-size: 1.2rem;
        line-height: 1.5;
        max-width: 85%;
        margin: 12px 0 16px 0;
    }
}

/* Resolución 1152x864 - Monitores antiguos */
@media (min-width: 1152px) and (max-height: 864px) and (max-width: 1279px) {
    .container {
        max-width: 1000px;
        margin: 0 auto;
        padding: 0 25px;
    }
    
    .carousel-caption {
        max-width: 40%;
        padding: 26px;
        left: 7%;
        background: rgba(0, 0, 0, 0.39);
        border-radius: 8px;
        backdrop-filter: blur(4px);
    }
    
    .carousel-caption h1 {
        font-size: 2.7rem;
        line-height: 1.15;
        letter-spacing: 1.7px;
        margin-bottom: 14px;
    }
    
    .carousel-caption p {
        font-size: 1.05rem;
        line-height: 1.4;
        max-width: 85%;
        margin: 10px 0 14px 0;
    }
}

/* Resolución 3840x2160 - 4K UHD */
@media (min-width: 3840px) and (min-height: 2160px) {
    .container {
        max-width: 3200px;
        margin: 0 auto;
        padding: 0 80px;
    }
    
    .carousel-caption {
        max-width: 22%;
        padding: 70px;
        left: 4%;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 20px;
        backdrop-filter: blur(12px);
    }
    
    .carousel-caption h1 {
        font-size: 7rem;
        line-height: 1.15;
        letter-spacing: 4px;
        margin-bottom: 35px;
    }
    
    .carousel-caption p {
        font-size: 2.4rem;
        line-height: 1.6;
        max-width: 85%;
        margin: 25px 0 35px 0;
    }
}

/* Continuación del archivo... */
.carousel-counter {
        font-size: 1.8rem;
        padding: 12px 20px;
    }
    
    .carousel-counter .current-slide {
        font-size: 2rem;
    }
    
    .carousel-btn {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.4rem !important;
    }


@media (min-width: 1440px) and (max-width: 1919px) {
    .carousel-caption h1 {
        font-size: 4rem;
        letter-spacing: 3.5px;
    }
    
    .carousel-caption p {
        font-size: 1.6rem;
        max-width: 75%;
    }
    
    .carousel-controls {
        bottom: 14% !important;
        gap: 18px !important;
    }
    
    .carousel-counter {
        font-size: 1.6rem;
        padding: 10px 18px;
    }
    
    .carousel-counter .current-slide {
        font-size: 1.8rem;
    }
    
    .carousel-btn {
        width: 55px !important;
        height: 55px !important;
        font-size: 1.3rem !important;
    }
}

@media (min-width: 1080px) and (max-width: 1439px) {
    .carousel-caption h1 {
        font-size: 3.8rem;
    }
    
    .carousel-caption p {
        font-size: 1.5rem;
    }
    
    .carousel-controls {
        bottom: 16% !important;
        gap: 15px !important;
    }
    
    .carousel-counter {
        font-size: 1.5rem;
        padding: 9px 16px;
    }
    
    .carousel-counter .current-slide {
        font-size: 1.7rem;
    }
}

/* Reglas específicas para dispositivos móviles */
@media (max-width: 768px) {
    .desktop-controls {
        display: none !important;
        visibility: hidden !important; /* Doble seguridad */
        pointer-events: none !important; /* Evitar interacciones */
    }
    
    .mobile-controls {
        display: flex !important;
        visibility: visible !important; /* Asegurar visibilidad */
        pointer-events: auto !important; /* Permitir interacciones */
    }
}

@media (min-width: 769px) {
    .desktop-controls {
        display: flex !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    .mobile-controls {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* RESPONSIVE PARA MÓVIL - OPTIMIZADO PARA TÁCTIL */
@media (max-width: 768px) {
    .carousel-controls {
        position: absolute !important;
        bottom: 15px !important;
        right: 15px !important;
        left: auto !important;
        transform: none !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        z-index: 100 !important;
        margin-bottom: 0 !important;
        margin-right: 0 !important;
    }
    
    .carousel-counter {
        font-size: 1.4rem;
        padding: 10px 16px;
        background: rgba(0, 0, 0, 0.85);
        border: 1px solid rgba(93, 138, 72, 0.4);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
    
    .carousel-counter .current-slide {
        font-size: 1.6rem;
    }
    
    .carousel-btn {
        width: 52px !important;
        height: 52px !important;
        font-size: 1.3rem !important;
        min-width: 44px !important;
        min-height: 44px !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
        border: 2px solid rgba(255, 255, 255, 0.2) !important;
    }
    

    
    .carousel-btn:active {
        transform: scale(0.95) !important;
        transition: transform 0.1s ease !important;
    }
}

@media (max-width: 480px) {
    .carousel-controls {
        bottom: 12px !important;
        right: 12px !important;
        gap: 10px !important;
    }
    
    .carousel-counter {
        font-size: 1.2rem;
        padding: 8px 12px;
    }
    
    .carousel-counter .current-slide {
        font-size: 1.4rem;
    }
    
    .carousel-btn {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.1rem !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }
}

/* SERVICIOS COMPLETAMENTE CORREGIDOS PARA MÓVIL */
.services {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    padding: 80px 15px;
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .services {
        padding: 60px 10px;
    }
    
    .service-item {
        padding: 30px 10px;
        flex-direction: column;
        text-align: center;
        margin: 30px 0;
    }
    
    .service-item:nth-child(even) {
        flex-direction: column;
    }
    
    .service-content {
        margin: 20px 0 0 0 !important;
        padding: 25px 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .service-image {
        width: 100%;
        max-width: 280px;
        margin: 0 auto 20px auto;
        padding: 10px;
    }
}

.service-item {
    display: flex;
    align-items: center;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
    width: 100%;
    box-sizing: border-box;
}

.service-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.service-item:nth-child(even) {
    flex-direction: row-reverse;
}

.service-image {
    flex: 1;
    padding: 20px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    transition: all 0.5s ease;
    filter: brightness(0.9) contrast(1.1);
    box-shadow: none;
}

.service-image:hover img {
    transform: scale(1.03);
    filter: brightness(1.1);
    box-shadow: 0 8px 25px rgba(93, 138, 72, 0.2);
}

.service-content {
    flex: 2;
    padding: 35px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(26, 26, 26, 0.9) 100%);
    border: 1px solid rgba(93, 138, 72, 0.3);
    border-radius: 15px;
    box-shadow: none;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    margin-left: 0;
    transition: all 0.5s ease;
}

.service-item:nth-child(even) .service-content {
    margin-left: 0;
    margin-right: 0;
}

.service-content h2 {
    font-size: 2.5em;
    margin-bottom: 18px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-style: italic;
    position: relative;
    padding-bottom: 12px;
}

.service-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #5D8A48, #4a7039);
    transition: width 0.8s ease;
}

.service-content:hover h2::after {
    width: 80px;
}

.service-content p {
    padding: 0 15px;
    text-align: justify;
    line-height: 1.8;
    margin: 0;
    font-size: 1.1em;
    opacity: 0.9;
}

/* RESPONSIVE COMPLETAMENTE REDISEÑADO PARA MÓVIL */
/* Resoluciones intermedias de desktop */
@media (min-width: 1025px) and (max-width: 1199px) {
    .container {
        max-width: 1000px;
        padding: 0 40px;
    }
    
    .carousel-caption {
        max-width: 42%;
        padding: 38px;
        left: 6%;
    }
    
    .carousel-caption h1 {
        font-size: 3.4rem;
        line-height: 1.15;
    }
    
    .carousel-caption p {
        font-size: 1.25rem;
        line-height: 1.6;
    }
    
    .service-item {
        padding: 45px 25px;
    }
    
    .service-content {
        padding: 38px;
    }
    
    .service-content h2 {
        font-size: 2.6em;
    }
}

/* iPad Air específico (820x1180) - Navegación problemática */
@media (min-width: 820px) and (max-width: 820px) and (min-height: 1180px) and (max-height: 1180px) {
    /* Forzar menú móvil en iPad Air por problemas de espacio */
    .desktop-nav {
        display: none !important;
    }
    
    .menu-toggle {
        display: flex !important;
    }
    
    /* Optimizar botones de servicios para iPad Air */
    .service-buttons {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        margin: 25px auto;
        max-width: 600px;
        flex-wrap: wrap;
    }
    
    .service-btn {
        flex: 1;
        min-width: 200px;
        max-width: 280px;
        padding: 16px 24px;
        font-size: 0.95em;
        text-align: center;
    }
}

/* iPad Pro específico (1024x1366) - Solo botones de servicios */
@media (min-width: 1024px) and (max-width: 1024px) and (min-height: 1366px) and (max-height: 1366px) {
    /* Mantener navegación desktop pero optimizar botones de servicios */
    .service-buttons {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        margin: 30px auto;
        max-width: 700px;
        flex-wrap: wrap;
    }
    
    .service-btn {
        flex: 1;
        min-width: 220px;
        max-width: 320px;
        padding: 18px 28px;
        font-size: 1em;
        text-align: center;
    }
}

/* Rangos más amplios para iPad Air (810-830px ancho) */
@media (min-width: 810px) and (max-width: 830px) and (min-height: 1080px) {
    .desktop-nav {
        display: none !important;
    }
    
    .menu-toggle {
        display: flex !important;
    }
    
    .service-buttons {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        margin: 25px auto;
        max-width: 600px;
        flex-wrap: wrap;
    }
    
    .service-btn {
        flex: 1;
        min-width: 180px;
        max-width: 260px;
        padding: 15px 22px;
        font-size: 0.9em;
    }
}

/* Rangos más amplios para iPad Pro (1020-1030px ancho) */
@media (min-width: 1020px) and (max-width: 1030px) and (min-height: 1350px) {
    .service-buttons {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 18px;
        margin: 28px auto;
        max-width: 680px;
        flex-wrap: wrap;
    }
    
    .service-btn {
        flex: 1;
        min-width: 200px;
        max-width: 300px;
        padding: 17px 26px;
        font-size: 0.98em;
    }
}

/* iPad Pro y tablets grandes (1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
    
    .carousel-caption {
        max-width: 60%;
        padding: 35px;
        left: 4%;
        background: rgba(0, 0, 0, 0.4);
        border-radius: 15px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(93, 138, 72, 0.3);
    }
    
    .carousel-caption h1 {
        font-size: 3rem;
        line-height: 1.2;
        margin-bottom: 20px;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    }
    
    .carousel-caption p {
        font-size: 1.2rem;
        line-height: 1.6;
        margin: 15px 0 20px 0;
    }
    
    /* Servicios optimizados para iPad Pro */
    .service-item {
        padding: 50px 20px;
        flex-direction: column;
        text-align: center;
        margin: 40px 0;
    }
    
    .service-item:nth-child(even) {
        flex-direction: column;
    }
    
    .service-content {
        margin: 30px 0 0 0 !important;
        padding: 40px;
        width: 100%;
        border-radius: 15px;
    }
    
    .service-image {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .service-content h2 {
        font-size: 2.8em;
        margin-bottom: 25px;
    }
    
    .service-content h2::after {
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
    }

    .service-content p {
        font-size: 1.15em;
        line-height: 1.7;
        margin-bottom: 25px;
    }

    /* Formulario optimizado para iPad Pro */
    .contact {
        padding: 80px 30px;
    }

    .contact form {
        max-width: 650px;
        margin: 0 auto;
    }

    .contact form input,
    .contact form textarea {
        padding: 22px;
        font-size: 16px;
        border-radius: 12px;
        min-height: 50px;
    }

    .contact form textarea {
        min-height: 150px;
    }

    .contact form button {
        padding: 22px 45px;
        font-size: 16px;
        min-height: 65px;
        border-radius: 12px;
    }

    /* Footer optimizado para iPad Pro */
    .footer-main {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 50px;
        text-align: left;
    }

    .footer-logo img {
        height: 95px;
    }

    .footer-brand p {
        font-size: 1.1em;
        max-width: 300px;
    }

    .footer-links ul li a,
    .footer-contact p {
        font-size: 1em;
        padding: 8px 0;
    }

    /* Navegación móvil para iPad */
    .mobile-menu ul li a {
        font-size: 2.2rem;
        padding: 35px 40px;
        letter-spacing: 2px;
    }

    .carousel-btn {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    /* CARRUSEL MÓVIL ALINEADO CON PC */
    .carousel-caption {
        position: absolute;
        bottom: 15%;
        left: 5%;
        right: 5%;
        width: auto;
        max-width: 90%;
        padding: 25px 20px;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(26, 26, 26, 0.9) 100%);
        border: 2px solid #5D8A48;
        border-radius: 10px;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        backdrop-filter: blur(15px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
        animation: slideInLeft 1s ease-out 1.5s both;
    }

    .carousel-caption h1 {
        font-size: 2rem;
        margin-bottom: 15px;
        line-height: 1.3;
        color: #fff;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .carousel-caption h1::after {
        left: 0;
        transform: none;
        width: 80px;
    }

    .carousel-caption p {
        font-size: 0.95rem;
        line-height: 1.4;
        margin: 15px 0 20px 0;
        color: #e0e0e0;
        opacity: 0.9;
    }

    .carousel-caption .cta-button {
        padding: 12px 25px;
        font-size: 0.9rem;
        letter-spacing: 1.2px;
        margin-top: 5px;
        align-self: flex-start;
    }

    /* CONTROLES DEL CARRUSEL MÓVIL */
    .carousel-controls {
        position: absolute;
        bottom: 5%;
        right: 5%;
        display: flex;
        align-items: center;
        gap: 15px;
        z-index: 3;
    }

    .carousel-counter {
        color: #fff;
        font-size: 1.2rem;
        font-weight: bold;
        margin-right: 15px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }

    .carousel-counter .current-slide {
        color: #5D8A48;
        font-size: 1.5rem;
        text-shadow: 0 0 10px rgba(93, 138, 72, 0.8);
    }

    .carousel-btn {
        background: linear-gradient(45deg, #5D8A48, #4a7039);
        color: #fff;
        border: none;
        cursor: pointer;
        padding: 10px 12px;
        font-size: 1rem;
        margin: 0 3px;
        border-radius: 50%;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(93, 138, 72, 0.3);
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .carousel-btn:hover {
        background: linear-gradient(45deg, #4a7039, #5D8A48);
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 6px 20px rgba(93, 138, 72, 0.5);
    }

    /* HEADER MÓVIL */
    header {
        padding: 1rem 0;
    }

    header .container {
        padding: 0 15px;
    }

    .menu-toggle {
        display: flex;
    }

    .desktop-nav {
        display: none;
    }

    /* SERVICIOS MÓVIL OPTIMIZADOS */
    .service-item {
        flex-direction: column !important;
        padding: 45px 20px 35px 20px;
        margin: 35px 0;
        text-align: center;
        position: relative;
        border-radius: 15px;
        background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(0, 0, 0, 0.9) 100%);
        border: 1px solid rgba(93, 138, 72, 0.2);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }

    .service-content {
        padding: 85px 25px 30px 25px;
        margin: 0 !important;
        width: 100%;
        box-sizing: border-box;
        order: 2;
    }

    .service-content h2 {
        font-size: 2.1em;
        margin-bottom: 25px;
        color: #5D8A48;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    .service-content p {
        font-size: 1.05em;
        line-height: 1.7;
        margin-bottom: 25px;
        color: #e0e0e0;
        text-align: justify;
    }

    .service-content h2::after {
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
    }

    .service-content p {
        padding: 0;
        font-size: 1.1rem;
        text-align: center;
        line-height: 1.6;
    }

    /* IMÁGENES DE SERVICIOS MÁS GRANDES PARA MÓVIL */
    .service-image {
        position: absolute;
        top: -40px;
        left: 50%;
        transform: translateX(-50%);
        width: 140px;
        height: 140px;
        border-radius: 50%;
        overflow: hidden;
        padding: 0;
        margin: 0;
        border: 5px solid #5D8A48;
        background: linear-gradient(45deg, #5D8A48, #4a7039);
        box-shadow: 0 12px 35px rgba(93, 138, 72, 0.5);
        order: 1;
        z-index: 3;
    }

    .service-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        filter: brightness(1.1) contrast(1.1);
        transition: all 0.3s ease;
    }

    .service-image:hover img {
        transform: scale(1.05);
        filter: brightness(1.2) contrast(1.2);
    }
}

/* Breakpoint para móviles pequeños */
@media (max-width: 480px) {
    /* TIPOGRAFÍA GLOBAL PARA PANTALLAS PEQUEÑAS */
    html, body {
        font-size: 14px;
        line-height: 1.6;
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    body {
        font-size: 15px;
        line-height: 1.65;
    }
    
    h1 {
        font-size: 1.9em;
        line-height: 1.25;
        margin-bottom: 18px;
    }
    
    h2 {
        font-size: 1.7em;
        line-height: 1.35;
        margin-bottom: 16px;
    }
    
    h3 {
        font-size: 1.3em;
        line-height: 1.4;
        margin-bottom: 14px;
    }
    
    p {
        font-size: 1em;
        line-height: 1.65;
        margin-bottom: 15px;
    }
    
    /* ESPACIADO PARA PANTALLAS PEQUEÑAS */
    .container {
        padding: 0 12px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .carousel-caption {
        width: 90%;
        padding: 20px 15px;
        bottom: 12%;
    }

    .carousel-caption h1 {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .carousel-caption p {
        font-size: 1.6rem;
        margin: 12px 0 18px 0;
    }

    .carousel-caption .cta-button {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .carousel-controls {
        bottom: 3%;
        right: 3%;
        gap: 12px;
    }

    .carousel-counter {
        font-size: 2rem;
        margin-right: 5px;
    }

    .carousel-counter .current-slide {
        font-size: 3rem;
    }

    .carousel-btn {
        width: 60px;
        height: 50px;
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .service-content {
        padding: 90px 20px 25px 20px;
    }

    .service-content h2 {
        font-size: 1.9em;
    }

    /* IMÁGENES AÚN MÁS GRANDES EN PANTALLAS MUY PEQUEÑAS */
    .service-image {
        width: 200px;
        height: 200px;
        top: -35px;
    }
}

/* Breakpoint para pantallas muy pequeñas */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .carousel-caption {
        left: 3%;
        right: 3%;
        padding: 15px;
        max-width: 94%;
    }
    
    .carousel-caption h1 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .service-content {
        padding: 80px 15px 20px 15px;
    }
    
    .service-content h2 {
        font-size: 1.6em;
    }
    
    .service-image {
        width: 150px;
        height: 150px;
    }
}

/* CONTACT SECTION MEJORADO */
.contact {
    background: linear-gradient(135deg, #222 0%, #1a1a1a 100%);
    padding: 80px 20px;
    text-align: center;
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
}

.contact h2 {
    font-size: 2.8em;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0 20px;
    color: #fff;
    font-weight: 700;
}

.contact .slogan {
    font-size: 1.3em;
    margin-bottom: 40px;
    font-style: italic;
    opacity: 0.9;
    color: #e0e0e0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .contact {
        padding: 60px 15px;
    }
    
    .contact h2 {
        font-size: 2.2em;
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .contact .slogan {
        font-size: 1.1em;
        margin-bottom: 35px;
        padding: 0 15px;
        line-height: 1.6;
    }
    
    .contact form {
        max-width: 100%;
        padding: 0 10px;
        gap: 20px;
    }
    
    .contact form input,
    .contact form textarea {
        padding: 20px;
        font-size: 16px;
        border-radius: 15px;
        min-height: 48px;
    }
    
    .contact form textarea {
        min-height: 140px;
        padding: 20px;
    }
    
    .contact form button {
        padding: 20px 40px;
        font-size: 16px;
        min-height: 60px;
        border-radius: 15px;
        letter-spacing: 2px;
    }
    
    .char-counter {
        font-size: 1em;
        margin-top: -10px;
        margin-bottom: 15px;
        padding: 0 5px;
    }
}

@media (max-width: 480px) {
    .contact {
        padding: 50px 10px;
    }
    
    .contact h2 {
        font-size: 1.9em;
        margin-bottom: 20px;
    }

    .contact .slogan {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .contact form {
        gap: 18px;
        padding: 0 5px;
    }
    
    .contact form input,
    .contact form textarea {
        padding: 18px;
        font-size: 16px;
        border-radius: 12px;
    }
    
    .contact form textarea {
        min-height: 120px;
    }
    
    .contact form button {
        padding: 18px 35px;
        font-size: 15px;
        min-height: 56px;
        letter-spacing: 1.5px;
    }
    
    .char-counter {
        font-size: 0.9em;
        margin-top: -8px;
        margin-bottom: 12px;
    }
}

/* NUEVA SECCIÓN DE SERVICIOS TIPO CARRUSEL */
.services-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 25%, #0f0f0f 50%, #1a1a1a 75%, #0a0a0a 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(93, 138, 72, 0.2);
    border-bottom: 1px solid rgba(93, 138, 72, 0.2);
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(3px 3px at 25px 35px, rgba(93, 138, 72, 0.15), transparent),
        radial-gradient(2px 2px at 50px 80px, rgba(255,255,255,0.08), transparent),
        radial-gradient(1px 1px at 100px 50px, rgba(123, 160, 91, 0.12), transparent),
        radial-gradient(2px 2px at 150px 90px, rgba(93, 138, 72, 0.1), transparent);
    background-repeat: repeat;
    background-size: 300px 200px;
    animation: icon 10s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.8;
}

.services-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Texto descriptivo a la izquierda */
.services-description {
    padding-right: 40px;
    animation: slideInLeft 0.8s ease-out;
}

.services-description h2 {
    font-size: 2.4em;
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(45deg, #fff, #f0f0f0, #5D8A48, #7BA05B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 300%;
    animation: gradientShift 4s ease-in-out infinite;
    margin-bottom: 35px;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    filter: drop-shadow(0 0 15px rgba(93, 138, 72, 0.3));
}

.services-description h2::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, #5D8A48, #7BA05B, #5D8A48);
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(93, 138, 72, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

.services-description p {
    font-size: 1.2em;
    line-height: 1.8;
    color: #f5f5f5;
    margin-bottom: 45px;
    text-align: justify;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Botones de selección de servicios */
.service-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
    max-width: 260px;
}

.service-btn {
    background: linear-gradient(135deg, rgba(93, 138, 72, 0.15), rgba(74, 112, 57, 0.25), rgba(123, 160, 91, 0.2));
    color: #f0f0f0;
    border: 2px solid rgba(93, 138, 72, 0.6);
    padding: 12px 24px;
    font-size: 0.9em;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(93, 138, 72, 0.2);
}

.service-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #5D8A48, #7BA05B, #4a7039);
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
    opacity: 0.9;
}



.service-btn.active {
    background: linear-gradient(135deg, #5D8A48, #7BA05B, #4a7039);
    color: white;
    border-color: #7BA05B;
    box-shadow: 0 8px 25px rgba(93, 138, 72, 0.5);
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.service-btn.active::before {
    left: 0;
}

/* CENTRAR BOTONES DE SERVICIOS EN MÓVIL */
@media (max-width: 768px) {
    .service-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin: 20px auto;
        max-width: 280px;
        width: 100%;
    }
    
    .service-btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
        padding: 14px 20px;
        font-size: 0.9em;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .service-buttons {
        max-width: 260px;
        gap: 10px;
        margin: 15px auto;
    }
    
    .service-btn {
        max-width: 240px;
        padding: 12px 18px;
        font-size: 0.85em;
        letter-spacing: 0.8px;
    }
}

.our-services-btn {
    background: linear-gradient(135deg, #5D8A48, #7BA05B, #4a7039);
    color: white;
    border: 2px solid rgba(123, 160, 91, 0.5);
    padding: 18px 36px;
    font-size: 1em;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(93, 138, 72, 0.4);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}



/* Contenido de servicios */
.services-content {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(26, 26, 26, 0.98) 50%, rgba(10, 10, 10, 0.95) 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(93, 138, 72, 0.1);
    border: 2px solid rgba(93, 138, 72, 0.4);
    backdrop-filter: blur(15px);
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.service-content {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-content.active {
    display: block;
    opacity: 1;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.services-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.service-card {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(26, 26, 26, 0.5) 100%);
    opacity: 1;
    transform: translateX(0);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 15px;
    overflow: hidden;
}

.service-card-image {
    flex: 1;
    background: linear-gradient(135deg, rgba(93, 138, 72, 0.15) 0%, rgba(74, 112, 57, 0.2) 50%, rgba(123, 160, 91, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-bottom: 2px solid rgba(93, 138, 72, 0.3);
    overflow: hidden;
    position: relative;
}

.service-card-image img {
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.98) contrast(1.15) saturate(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(93, 138, 72, 0.2);
}



.service-card-content {
    flex: 1.2;
    padding: 40px;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(26, 26, 26, 0.95) 50%, rgba(10, 10, 10, 0.9) 100%);
    color: white;
    position: relative;
    backdrop-filter: blur(5px);
}

.service-card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(93, 138, 72, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}



.service-card-content h3 {
    font-size: 1.8em;
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(45deg, #5D8A48, #7BA05B, #5D8A48);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 15px rgba(93, 138, 72, 0.4));
}

.service-card-content h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #5D8A48, #7BA05B, #5D8A48);
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(93, 138, 72, 0.5);
}



.service-card-content p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #f0f0f0;
    margin-bottom: 35px;
    text-align: justify;
    position: relative;
    z-index: 2;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.learn-more-btn {
    background: linear-gradient(135deg, #5D8A48, #7BA05B, #4a7039);
    color: white;
    border: 2px solid rgba(123, 160, 91, 0.5);
    padding: 15px 30px;
    font-size: 1em;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 8px;
    position: absolute;
    bottom: 25px;
    left: 40px;
    z-index: 2;
    overflow: hidden;
    margin-right: 100px;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 20px rgba(93, 138, 72, 0.3);
}

.learn-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #7BA05B, #5D8A48, #7BA05B);
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
    opacity: 0.9;
}



.learn-more-btn span {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.learn-more-btn:hover span {
    transform: translateX(5px);
}

/* ===== CARRUSEL DE SERVICIOS ===== */
.services-carousel-controls {
    position: absolute !important;
    bottom: 20px !important;
    right: 20px !important;
    display: flex !important;
    gap: 10px !important;
    z-index: 100 !important;
    align-items: center !important;
}

.services-carousel-nav {
    width: 35px !important;
    height: 35px !important;
    background: linear-gradient(45deg, #5D8A48, #4a7039) !important;
    color: white !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 1.1em !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(93, 138, 72, 0.3) !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
}

.services-carousel-nav:hover {
    background: linear-gradient(45deg, #4a7039, #5D8A48) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(93, 138, 72, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.services-carousel-nav:active {
    transform: scale(0.95);
}

/* Indicadores del carrusel de servicios */
.services-carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.services-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.services-indicator.active {
    background: #5D8A48;
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.services-indicator:hover {
    background: rgba(93, 138, 72, 0.7);
    transform: scale(1.1);
}

/* Controles del carrusel - POSICIONAMIENTO CORREGIDO */
.carousel-controls {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
}

.carousel-nav {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #5D8A48, #4a7039);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.3em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(93, 138, 72, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.carousel-nav:hover {
    background: linear-gradient(45deg, #4a7039, #5D8A48);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(93, 138, 72, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.carousel-nav:active {
    transform: scale(0.95);
}

/* También agregar botones en la parte inferior para mejor accesibilidad */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background: #5D8A48;
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(93, 138, 72, 0.7);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .services-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-description {
        padding-right: 0;
        text-align: center;
    }
    
    .services-description h2::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .carousel-controls {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin-top: 30px;
        gap: 20px;
    }
    
    .services-carousel-controls {
        position: static !important;
        transform: none !important;
        flex-direction: row !important;
        justify-content: center !important;
        margin-top: 25px !important;
        gap: 15px !important;
        right: auto !important;
        bottom: auto !important;
    }
    
    .learn-more-btn {
        position: static;
        margin-bottom: 20px;
        margin-right: 0;
    }
    
    .service-card-content {
        padding-bottom: 40px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* Optimizar sección de servicios para móvil */
    .services-section {
        padding: 60px 0;
    }
    
    .services-section::before {
        animation: none;
        opacity: 0.03;
    }
    
    .services-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }
    
    .services-description {
        padding-right: 0;
        text-align: center;
        order: 1;
    }
    
    .services-description h2 {
        font-size: 2.4em;
        margin-bottom: 20px;
    }
    
    .services-description h2::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .services-description p {
        font-size: 1.05em;
        margin-bottom: 25px;
        text-align: center;
    }
    
    .services-carousel {
        order: 2;
    }
    
    /* Optimizar carrusel */
    .services-carousel {
        background: rgba(0, 0, 0, 0.9); /* Simplificar gradiente */
        backdrop-filter: none; /* Remover efecto costoso */
        box-shadow: none; /* Eliminar sombra problemática */
    }
    
    .services-track {
        transition: transform 0.3s ease; /* Transición más rápida */
    }
    
    .service-card {
        flex-direction: column;
        transition: opacity 0.3s ease; /* Simplificar transición */
        transform: none; /* Remover transform inicial */
    }
    
    .service-card.active {
        transform: none; /* Simplificar */
    }
    
    .service-card-image {
        padding: 35px 30px 25px 30px;
        border-right: none;
        border-bottom: 1px solid rgba(93, 138, 72, 0.3);
        background: linear-gradient(135deg, rgba(93, 138, 72, 0.08) 0%, rgba(74, 112, 57, 0.05) 100%);
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .service-card-image img {
        max-width: 220px;
        height: auto;
        transition: transform 0.3s ease;
        filter: brightness(1.1) contrast(1.05);
        box-shadow: none;
        border-radius: 8px;
    }
    

    
    .service-card-content {
        padding: 35px 30px 85px 30px;
        text-align: center;
        position: relative;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 26, 26, 0.85) 100%);
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .service-card-content::before {
        display: none; /* Remover overlay costoso */
    }
    
    .service-card-content h3 {
        font-size: 1.6em;
        margin-bottom: 20px;
        line-height: 1.3;
        color: #5D8A48;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    .service-card-content h3::after {
        left: 50%;
        transform: translateX(-50%);
        transition: width 0.4s ease;
        width: 60px;
    }
    

    
    .service-card-content p {
        font-size: 1.05em;
        line-height: 1.7;
        text-align: justify;
        margin-bottom: 25px;
        opacity: 0.95;
        flex-grow: 1;
    }
    
    .learn-more-btn {
        position: absolute;
        bottom: 25px;
        left: 50%;
        transform: translateX(-50%);
        padding: 14px 28px;
        font-size: 0.9em;
        margin-right: 0;
        background: linear-gradient(45deg, #5D8A48, #4a7039);
        transition: all 0.3s ease;
        box-shadow: none;
        border-radius: 8px;
        font-weight: 600;
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        color: white;
        border: none;
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    .learn-more-btn:hover,
    .learn-more-btn:active,
    .learn-more-btn:focus {
        background: linear-gradient(45deg, #5D8A48, #4a7039);
        transform: translateX(-50%);
        box-shadow: none;
    }
    

    
    .carousel-nav {
        width: 50px;
        height: 50px;
        font-size: 1.2em;
    }
    
    .services-carousel-controls {
        position: absolute !important;
        bottom: 20px !important;
        right: 20px !important;
        gap: 12px !important;
        left: auto !important;
        transform: none !important;
        flex-direction: row !important;
        justify-content: flex-end !important;
        margin-top: 0 !important;
    }
    
    .services-carousel-nav {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.2em !important;
        background: rgba(93, 138, 72, 0.9) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        box-shadow: none !important;
        border: 2px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 50% !important;
        min-width: 44px !important;
        min-height: 44px !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
        transition: all 0.3s ease !important;
    }
    
    .services-carousel-nav:hover,
    .services-carousel-nav:active,
    .services-carousel-nav:focus {
        background: rgba(93, 138, 72, 0.9) !important;
        transform: none !important;
        box-shadow: none !important;
        transition: none !important;
    }

    .service-image:hover img {
        transform: none !important;
        filter: brightness(0.9) contrast(1.1) !important;
        box-shadow: none !important;
    }
}
@media (max-width: 480px) {
    .services-section {
        padding: 50px 0;
    }
    
    .services-layout {
        padding: 0 10px;
        gap: 30px;
    }
    
    .services-carousel {
        box-shadow: none;
        border-radius: 20px;
        margin: 0 2px;
        border: 1px solid rgba(93, 138, 72, 0.2);
    }
    
    .services-description h2 {
        font-size: 2.1em;
        margin-bottom: 18px;
        line-height: 1.2;
    }
    
    .services-description p {
        font-size: 1.05em;
        margin-bottom: 25px;
        padding: 0 5px;
        line-height: 1.6;
    }
    
    .service-card {
        min-height: 420px;
        margin: 0 3px;
        border-radius: 18px;
        display: flex;
        flex-direction: column;
    }
    
    .service-card-image {
        padding: 30px 25px 20px 25px;
    }
    
    .service-card-image img {
        max-width: 200px;
        transition: transform 0.3s ease;
    }
    
    .service-card-content {
        padding: 25px 20px 80px 20px;
        position: relative;
        flex-grow: 1;
    }
    
    .service-card-content h3 {
        font-size: 1.4em;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .service-card-content p {
        font-size: 0.95em;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    
    .learn-more-btn {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        padding: 12px 24px;
        font-size: 0.85em;
        margin-right: 0;
        position: absolute;
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        border-radius: 8px;
    }
    
    .services-carousel-controls {
        position: absolute !important;
        bottom: 15px !important;
        right: 15px !important;
        gap: 10px !important;
        left: auto !important;
        transform: none !important;
        flex-direction: row !important;
        justify-content: flex-end !important;
        margin-top: 0 !important;
    }
    
    .services-carousel-nav {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.1em !important;
        min-width: 44px !important;
        min-height: 44px !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
    }
}


/* RESPONSIVE MÓVIL - Mejorar interactividad táctil */
@media (max-width: 768px) {
    /* Hacer las tarjetas más interactivas en móvil */
    .service-item {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(93, 138, 72, 0.2);
        overflow: hidden;
        width: 100%;
        box-sizing: border-box;
    }
    
    .service-content {
        transition: all 0.3s ease;
        -webkit-tap-highlight-color: transparent;
        overflow: hidden;
        word-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        width: 100%;
        box-sizing: border-box;
    }
    
    .service-content h2 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        max-width: 100%;
    }
    
    .service-content p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        max-width: 100%;
        white-space: normal;
    }

}

@media (max-width: 480px) {
    /* Animaciones más suaves para pantallas pequeñas */
    .service-content:active {
        transform: scale(0.99) translateY(-3px);
    }
    
    .service-image:active {
        transform: translateX(-50%) scale(1.03);
    }
    
    /* ELIMINAR RECUADRO VERDE EN PANTALLAS PEQUEÑAS */
    .hero-content {
        background: none !important;
        border: none !important;
        border-image: none !important;
        backdrop-filter: none !important;
        padding: 20px 15px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        transform: none !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .hero-content h1 {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9) !important;
        color: #ffffff !important;
        font-weight: 800 !important;
        text-align: center !important;
        width: 100% !important;
        margin: 0 auto 15px auto !important;
    }
    
    .hero-content p {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
        color: #ffffff !important;
        opacity: 1 !important;
        text-align: center !important;
        width: 100% !important;
        margin: 0 auto !important;
        max-width: 90% !important;
    }
    
    /* Correcciones globales de texto para móvil */
    * {
        word-wrap: break-word;
        overflow-wrap: break-word;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .container {
        max-width: 100%;
        overflow-x: hidden;
        padding: 0 15px;
    }
    
    /* Mejorar legibilidad del texto */
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.2;
        margin-bottom: 15px;
        word-spacing: normal;
        letter-spacing: 0.3px;
    }
    
    p {
        line-height: 1.5;
        margin-bottom: 15px;
        font-size: 1rem;
        opacity: 0.95;
    }
}

/* Clases para eventos táctiles JavaScript */
.service-content.touch-active {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(93, 138, 72, 0.2);
}

.service-content.touch-active::before {
    opacity: 1;
}

.service-content.touch-active h2::after {
    width: 160px;
}

.service-content.touch-active p {
    opacity: 1;
    transform: translateX(10px);
}

.service-image.touch-active img {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.2);
    box-shadow: 0 15px 40px rgba(93, 138, 72, 0.3);
}

@media (max-width: 768px) {
    .service-content.touch-active {
        transform: scale(0.98) translateY(-5px);
    }
    
    .service-image.touch-active {
        transform: translateX(-50%) scale(1.05);
    }
    
    .service-image.touch-active img {
        transform: scale(1.1);
        filter: brightness(1.2) contrast(1.2);
    }
}

/* Sección Legacy */
.legacy-section {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.legacy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #5D8A48, transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.05), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    opacity: 0.1;
    z-index: 1;
}

.legacy-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.legacy-content {
    padding: 40px 0;
    animation: slideInLeft 0.8s ease-out;
}

.section-header {
    margin-bottom: 30px;
}

.header-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #5D8A48, #4a7039);
    border-radius: 2px;
    margin-bottom: 15px;


}

.legacy-content h2 {
    font-size: 2.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.legacy-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
    margin: 30px 0 40px 0;
    text-align: justify;
    opacity: 0.9;
}

.legacy-btn {
    background: linear-gradient(45deg, #5D8A48, #4a7039);
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(93, 138, 72, 0.3);
}

.legacy-btn:hover {
    background: linear-gradient(45deg, #4a7039, #5D8A48);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(93, 138, 72, 0.5);
}

.legacy-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    animation: slideInRight 0.8s ease-out;
    height: 450px;
}

.legacy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.legacy-image:hover img {
    transform: scale(1.05);
}

/* Responsive para Legacy */
@media (max-width: 768px) {
    .legacy-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .header-line {
        margin: 0 auto 15px;
    }
    
    .legacy-content h2 {
        font-size: 2rem;
    }
    
    .legacy-content p {
        text-align: left;
    }
    
    .legacy-image {
        order: -1;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .legacy-image {
        height: 250px;
    }
}


/* OPTIMIZACIONES CRÍTICAS PARA MÓVILES - SERVICIOS */
@media (max-width: 768px) {
    /* Desactivar TODAS las animaciones costosas en la sección servicios */
    .services-section *,
    .services-section *::before,
    .services-section *::after {
        animation: none !important;
        transition: none !important;
    }
    
    /* Solo permitir transiciones esenciales */
    .services-track {
        transition: transform 0.2s ease !important;
        will-change: transform;
    }
    
    .service-card {
        transition: opacity 0.2s ease !important;
    }
    
    /* Simplificar completamente los efectos visuales */
    .services-section::before {
        display: none !important; /* Eliminar partículas completamente */
    }
    
    .services-carousel {
        background: #000 !important; /* Color sólido */
        box-shadow: none !important; /* Sin sombras */
        border: 1px solid rgba(93, 138, 72, 0.3) !important;
    }
    
    .service-card-content::before {
        display: none !important; /* Eliminar overlays */
    }
    
    .service-card-content {
        background: #1a1a1a !important; /* Color sólido */
    }
    
    .service-card-image {
        background: #2a2a2a !important; /* Color sólido */
    }
    

    
    /* Simplificar botones completamente */
    .learn-more-btn {
        background: #5D8A48 !important;
        box-shadow: none !important;
    }
    

    
    .services-carousel-nav {
        background: #5D8A48 !important;
        box-shadow: none !important;
        border: none !important;
    }
    
    .services-carousel-nav:hover,
    .services-carousel-nav:active {
        background: #4a7039 !important;
        transform: none !important;
        box-shadow: none !important;
    }
    
    /* Optimizar imágenes para carga rápida */
    .service-card-image img {
        max-width: 150px !important; /* Reducir tamaño */
        height: auto !important;
        object-fit: contain !important;
        filter: none !important;
        box-shadow: none !important;
    }
    
    /* Forzar hardware acceleration solo donde es necesario */
    .services-track {
        transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
        perspective: 1000px;
    }
}

/* OPTIMIZACIONES EXTREMAS PARA MÓVILES LENTOS */
@media (max-width: 480px) {
    /* Reducir aún más la complejidad */
    .services-section {
        padding: 30px 0 !important;
    }
    
    .service-card-content {
        padding: 20px !important;
    }
    
    .service-card-image {
        padding: 20px !important;
    }
    
    .service-card-image img {
        max-width: 120px !important;
    }
    
    /* Simplificar tipografía */
    .service-card-content h3 {
        font-size: 1.5em !important;
        text-shadow: none !important;
    }
    
    .service-card-content p {
        font-size: 0.9em !important;
        line-height: 1.4 !important;
    }
}

/* Estilos básicos de imágenes */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Hero carousel image */
.carousel-slide img {
    width: 100%;
    height: 100vh;
    object-fit: contain;
    object-position: center;
}

/* Service card image */
.service-card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

/* Legacy section image */
.legacy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    border-radius: 15px;
}

/* Logo */
.logo img,
.footer-logo img {
    width: auto;
    height: 70px;
    object-fit: contain;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .carousel-slide img {
        height: 60vh;
    }
    
    .service-card-image img {
        height: 200px;
    }
    
    .logo img,
    .footer-logo img {
        height: 50px;
    }
}



/* ===== ESTILOS DE NOSOTROS.HTML (ANTERIORMENTE EN STYLESN.CSS) ===== */

/* Hero Section */
.about-hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #5D8A48 0%, #7BA05B 50%, #9BC16E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 40px;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="80" cy="40" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="40" cy="80" r="1.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

.about-hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 800px;
}

.about-hero h1 {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.1;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5),
                     0 0 40px rgba(255, 255, 255, 0.3),
                     0 0 60px rgba(255, 255, 255, 0.2);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.8),
                     0 0 60px rgba(255, 255, 255, 0.5),
                     0 0 90px rgba(255, 255, 255, 0.3);
    }
}

.about-hero p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.about-hero-image {
    position: absolute;
    bottom: 50px;
    right: 50px;
    width: 200px;
    height: 200px;
    opacity: 0.3;
    animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Historia */
.about-history {
    padding: 100px 0;
    background: white;
}

.history-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.history-content .section-header {
    margin-bottom: 40px;
}

.history-content .section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.history-content .section-header .subtitle {
    font-size: 1.2rem;
    color: #5D8A48;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.history-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 25px;
    text-align: justify;
}

.history-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.history-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.history-image:hover img {
    transform: scale(1.05);
}

/* Misión y Visión */
.about-mission-vision {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.about-mission-vision::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><defs><pattern id="wave" x="0" y="0" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M0 30 Q15 15 30 30 T60 30" stroke="%235D8A48" stroke-width="0.5" fill="none" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23wave)"/></svg>') repeat;
    animation: waveMove 15s linear infinite;
}

@keyframes waveMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(60px); }
}

.mv-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 60px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.mv-section {
    text-align: center;
    padding: 40px;
    background: transparent;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}



.mv-header {
    margin-bottom: 30px;
    position: relative;
}





.mv-header .mv-icon {
    font-size: 4rem;
    color: #5D8A48;
    margin-bottom: 20px;
    display: block;
}



.mv-header h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    position: relative;
}





.mv-content-text {
    position: relative;
    z-index: 2;
}

.mv-content-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-align: justify;
}

.mv-divider {
    width: 2px;
    height: 200px;
    background: linear-gradient(180deg, transparent, #5D8A48, transparent);
    border-radius: 1px;
    align-self: center;
    justify-self: center;
}

/* Misión y Visión simplificada */
.mission-vision {
    display: none;
}

/* Estadísticas */
.about-stats {
    padding: 80px 0;
    background: linear-gradient(135deg, #5D8A48 0%, #7BA05B 100%);
    text-align: center;
}

.about-stats h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 50px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin-bottom: 10px;
    line-height: 1;
    animation: numberCount 2s ease-out;
}

@keyframes numberCount {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Valores Horizontales */
.values-horizontal {
    padding: 80px 0;
    background: white;
}

.values-horizontal .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.values-horizontal .section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.values-horizontal .section-header p {
    font-size: 1.2rem;
    color: #4a5568;
    font-weight: 400;
}

.values-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.value-block {
    text-align: center;
    padding: 40px 20px;
    border-radius: 15px;
    background: #f8f9fa;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5D8A48, #7BA05B);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.value-block:hover::before {
    transform: scaleX(1);
}

.value-block:hover {
    transform: translateY(-8px);
    background: white;
    border-color: #5D8A48;
    box-shadow: 0 15px 40px rgba(93, 138, 72, 0.15);
}

.value-block .value-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #5D8A48;
    animation: circleFloat 3s ease-in-out infinite;
}

@keyframes circleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.value-block:hover .value-icon {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.value-block h4 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #5D8A48;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.value-block p {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
    font-weight: 400;
    margin: 0;
}

/* Valores corporativos simplificados */
.about-values {
    display: none;
}

/* Sección Equipo */
.about-team {
    padding: 80px 0;
    background: #f8f9fa;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(93, 138, 72, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(123, 160, 91, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(155, 193, 110, 0.1) 0%, transparent 50%);
    animation: backgroundPulse 10s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.about-team .section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.about-team .section-header p {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.team-description {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.team-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 25px;
    text-align: justify;
}

/* Call to Action */
.about-cta {
    padding: 80px 40px;
    background: linear-gradient(135deg, #5D8A48 0%, #7BA05B 50%, #5D8A48 100%);
    background-size: 200% 200%;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.about-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 70%, rgba(255,255,255,0.08) 0%, transparent 50%);
    animation: floatingBubbles 12s ease-in-out infinite;
}

@keyframes floatingBubbles {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(-20px, -30px) rotate(90deg) scale(1.1); }
    50% { transform: translate(20px, -20px) rotate(180deg) scale(0.9); }
    75% { transform: translate(-10px, 10px) rotate(270deg) scale(1.05); }
}

.about-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="sparkle" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1.5" fill="%23ffffff" opacity="0.4"><animate attributeName="opacity" values="0.4;1;0.4" dur="2s" repeatCount="indefinite"/><animate attributeName="r" values="1.5;2.5;1.5" dur="2s" repeatCount="indefinite"/></circle><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.3"><animate attributeName="opacity" values="0.3;0.8;0.3" dur="3s" repeatCount="indefinite"/></circle><circle cx="50" cy="30" r="0.8" fill="%23ffffff" opacity="0.5"><animate attributeName="opacity" values="0.5;1;0.5" dur="1.5s" repeatCount="indefinite"/></circle></pattern></defs><rect width="100" height="100" fill="url(%23sparkle)"/></svg>') repeat;
    animation: sparkleMove 10s linear infinite;
    pointer-events: none;
}

@keyframes sparkleMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100px, -100px); }
}

.about-cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
    position: relative;
    z-index: 2;
    animation: slideInFromTop 1s ease-out;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-cta p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    animation: slideInFromBottom 1s ease-out 0.3s both;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-block;
    padding: 20px 50px;
    background: white;
    color: #5D8A48;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
    border: 3px solid white;
    overflow: hidden;
    animation: bounceIn 1s ease-out 0.6s both;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(50px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(-10px);
    }
    70% {
        transform: scale(0.95) translateY(5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(93, 138, 72, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: transparent;
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255,255,255,0.8);
}

.cta-button:active {
    transform: translateY(-2px) scale(1.02);
    transition: all 0.1s ease;
}

/* Timeline Horizontal */
.timeline-horizontal {
    padding: 80px 0;
    background: white;
}

.timeline-horizontal .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.timeline-horizontal .section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.timeline-horizontal .section-header p {
    font-size: 1.2rem;
    color: #4a5568;
    font-weight: 400;
}

.timeline-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.timeline-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.timeline-point {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-point::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(93, 138, 72, 0.1), rgba(123, 160, 91, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-point:hover::before {
    opacity: 1;
}

.timeline-point:hover {
    transform: translateY(-8px);
    border-color: #5D8A48;
    background: white;
    box-shadow: 0 15px 40px rgba(93, 138, 72, 0.15);
}

.timeline-point .year {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #5D8A48, #7BA05B);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.timeline-point:hover .year {
    transform: scale(1.1);
}

.milestone {
    position: relative;
    z-index: 2;
}

.milestone h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #5D8A48;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.milestone p {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Historia responsive */
    .history-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .history-content .section-header h2 {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    
    .history-content p {
        font-size: 1rem;
        text-align: left;
    }
    
    .history-image {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Call to Action responsive */
    .about-cta {
        padding: 60px 20px;
    }
    
    .about-cta h2 {
        font-size: 1.8rem;
        letter-spacing: 1px;
        line-height: 1.3;
        margin-bottom: 20px;
    }
    
    .about-cta p {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .cta-button {
        padding: 18px 40px;
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    /* Timeline responsive */
    .timeline-horizontal {
        padding: 60px 0;
    }
    
    .timeline-horizontal .section-header h2 {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    
    .timeline-horizontal .section-header p {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .timeline-items {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .timeline-point {
        padding: 25px 15px;
    }
    
    .timeline-point .year {
        width: 60px;
        height: 60px;
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .milestone h4 {
        font-size: 1rem;
    }
    
    .milestone p {
        font-size: 0.9rem;
    }
    
    .mv-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .mv-divider {
        width: 100px;
        height: 2px;
        margin: 0 auto;
    }
    
    .values-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 0 20px;
    }
    
    .timeline-wrapper {
        padding: 0 20px;
    }
    
    .mv-content {
        padding: 0 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 0 20px;
    }
    
    .about-stats h2,
    .about-team .section-header h2 {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .about-cta h2 {
        font-size: 1.5rem;
        padding: 0 10px;
    }
    
    .about-cta p {
        font-size: 0.95rem;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 0.95rem;
    }
    
    .timeline-horizontal .section-header h2 {
        font-size: 1.8rem;
    }
    
    .history-content .section-header h2 {
        font-size: 1.8rem;
    }
    
    .values-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .timeline-point .year {
        width: 50px;
        height: 50px;
        font-size: 0.9rem;
    }
    
    .mv-header h3 {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .mv-header .mv-icon {
        font-size: 3rem;
    }
    
    .value-block {
        padding: 30px 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}