/* Estilos Generales */
:root {
    --primary: #E63946;
    --primary-dark: #C1121F;
    --white: #FFFFFF;
    --black: #1A1A1A;
    --gray: #F5F5F5;
    --gray-dark: #333333;
    --gold: #C7A008;
    --red: #ff140d;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--black);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--black);
    position: relative;
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 30px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-dark);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 400;
}

/* Logo */
.logo-img {
    height: 50px;
    transition: var(--transition);
}

.navbar.scrolled .logo-img {
    height: 40px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

/* Botones */
.cta-button {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--primary);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
    z-index: -1;
}

.cta-button:hover::before {
    transform: translateX(0);
}

/* Botón Secundario con Transparencia */
.cta-button.secondary {
    background-color: transparent; /* Fondo transparente */
    color: var(--red); /* Texto blanco */
    border: 2px solid var(--white); /* Borde blanco */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button.secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white); /* Capa blanca */
    transform: translateX(0); /* Visible inicialmente */
    transition: transform 0.5s ease;
    z-index: -1;
}

.cta-button.secondary:hover {
    color: var(--white); /* Texto blanco */
    border-color: var(--primary); /* Borde rojo */
}

.cta-button.secondary:hover::before {
    transform: translateX(100%); /* Mueve la capa blanca fuera */
}

.cta-button.secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary); /* Capa roja */
    transform: translateX(-100%); /* Oculto inicialmente */
    transition: transform 0.5s ease;
    z-index: -2;
}

.cta-button.secondary:hover::after {
    transform: translateX(0); /* Muestra la capa roja */
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links ul {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--white);
    font-weight: 600;
    position: relative;
}

.navbar.scrolled .nav-links a {
    color: var(--black);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: var(--transition);
}

.navbar.scrolled .bar {
    background-color: var(--black);
}
/* Hero Section - Estilo modificado */
.hero {
    padding: 120px 0;
    background-color: #f8f9fa; /* Fondo claro como respaldo */
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    transform: perspective(1000px) rotateY(5deg);
    transition: all 0.5s ease;
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-image:hover .hero-img {
    transform: scale(1.05);
}

.hero-badge {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background: var(--primary);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.3);
    z-index: 3;
}

.hero-badge span {
    font-size: 1.8rem;
    line-height: 1;
}

.hero-badge small {
    font-size: 0.9rem;
    max-width: 100px;
    line-height: 1.2;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-image {
        max-width: 600px;
        margin: 0 auto;
        order: -1;
    }
    
    .hero-badge {
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 80px 0 100px;
    }
    
    .hero-badge {
        padding: 10px 20px;
    }
    
    .hero-badge span {
        font-size: 1.5rem;
    }
}
/* Estilos para el Hero con Video y Texto Centrado */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    text-align: center;
}

/* Estilos para Video Responsivo */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video, .hero-video-mobile {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Video para desktop (oculto en móviles) */
.hero-video {
    display: block;
}

/* Video para móviles (oculto en desktop) */
.hero-video-mobile {
    display: none;
}

/* Media Queries para móviles */
@media (max-width: 768px) {
    .hero-video {
        display: none;
    }
    
    .hero-video-mobile {
        display: block;
    }
    
    /* Opción alternativa si el video no funciona */
    .hero-video-container {
        background: url('fondonovideo.png') center/cover no-repeat;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content-centered {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content-centered h1 {
    font-size: 4rem ;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease;
}

.hero-content-centered .subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Ajustes optimizados para móviles */
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 80px 0 60px; /* Ajuste de padding superior/inferior */
    }
    
    .hero-content-centered {
        max-width: 90%; /* Mayor espacio en los bordes */
        padding: 0 15px;
    }
    
    .hero-content-centered h1 {
        font-size: 2rem !important; /* Tamaño legible (equivalente a ~32px) */
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .hero-content-centered .subtitle {
        font-size: 1.2rem;
        line-height: 1.4;
        margin-bottom: 30px;
    }
    
    .hero-video {
        display: none;
    }
    
    .hero-video-container {
        background: url('fondonovideo.png') center/cover no-repeat;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-button, 
    .cta-button.secondary {
        width: 100%;
        max-width: 280px; /* Ancho máximo para mejor apariencia */
        margin: 0 auto;
    }
}

/* Servicios */
.services {
    padding: 100px 0;
    background-color: var(--gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.5s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--white);
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--black);
}

.service-card p {
    color: var(--gray-dark);
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.service-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Nosotros */
/* ===================================
   SECCIÓN NOSOTROS - ESTILOS MEJORADOS
   =================================== */

.about-section {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content {
    padding-right: 30px;
}
.about-text {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    line-height: 1.7;
    text-align-last: left; /* La última línea alineada a la izquierda */
    margin-bottom: 1.5em;
}

/* Para dispositivos móviles */
@media (max-width: 768px) {
    .about-text {
        text-align: left; /* En móviles mejor no justificar */
        hyphens: none;
    }
}
.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-dark);
}

.about-image-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.5s ease;
}

.about-image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg);
    box-shadow: 0 15px 30px rgba(230, 57, 70, 0.2);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

.about-image-wrapper:hover .about-img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    color: white;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.3);
    z-index: 2;
}

.experience-badge span {
    font-size: 2.2rem;
    line-height: 1;
}

.experience-badge small {
    font-size: 0.8rem;
    margin-top: -5px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gray);
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
}

.feature-item i {
    color: var(--primary);
    font-size: 1.5rem;
}

.feature-item:hover i {
    color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-content {
        padding-right: 0;
        text-align: center;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 30px auto 0;
    }
    
    .about-image-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .about-section {
        padding: 60px 0;
    }
    
    .experience-badge {
        width: 80px;
        height: 80px;
        right: -10px;
    }
    
    .experience-badge span {
        font-size: 1.8rem;
    }
}

/* Slider de Compañías - Versión ampliada */
.companies-slider {
    overflow: hidden;
    position: relative;
    padding: 100px 0; /* Más espacio vertical */
}

.slider-track {
    display: flex;
    gap: 10px; /* Más espacio entre logos */
    animation: scroll 30s linear infinite;
    width: calc(250px * 14); /* Ajustado al nuevo tamaño */
}

.slide {
    width: 200px; /* Contenedor más ancho */
    height: 180px; /* Contenedor más alto */
    min-width: 300px; /* Evita que se reduzca */
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    transition: transform 0.3s ease; /* Efecto hover añadido */
}

.slide:hover {
    transform: scale(1.2); /* Efecto de zoom al pasar el mouse */
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(100%) contrast(120%);
    opacity: 0.8;
    transition: all 0.3s ease;
    object-fit: contain; /* Mejor manejo de la proporción */
}

.slide:hover img {
    filter: grayscale(0%) contrast(100%);
    opacity: 1;
}

/* Ajusta la velocidad de la animación */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 7)); } /* Ajustado al nuevo tamaño */
}

/* Contacto */
.contact {
    padding: 100px 0 0;
    background-color: var(--gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--gray-dark);
    transition: var(--transition);
    pointer-events: none;
    background-color: var(--white);
    padding: 0 5px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--primary);
}

.error-message {
    display: block;
    color: var(--primary);
    font-size: 0.8rem;
    margin-top: 5px;
    opacity: 0;
    transition: var(--transition);
}

.form-group.error .error-message {
    opacity: 1;
}

.form-group.error input,
.form-group.error textarea {
    border-color: var(--primary);
}

.submit-btn {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.submit-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.info-card i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--black);
}

.info-card p {
    color: var(--gray-dark);
    font-size: 0.9rem;
}

.contact-map {
    height: 400px;
    width: 100%;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
.footer {
    background-color: var(--gray-dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.footer-col p {
    margin-bottom: 20px;
    color: #aaa;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #aaa;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-family: 'Open Sans', sans-serif;
}

.newsletter-form button {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 0 20px;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Animaciones */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 7));
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .about {
        flex-direction: column;
    }
    
    .about-content::before {
        display: none;
    }
    
    .about-image {
        height: 400px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
        .hero-content-centered h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links ul {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .nav-links a {
        color: var(--black);
        font-size: 1.2rem;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .navbar.scrolled .hamburger.active .bar {
        background-color: var(--black);
    }
}

@media (max-width: 576px) {
        .hero-content-centered h1 {
        font-size: 4rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button, .cta-button.secondary {
        width: 100%;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .slider-track {
        gap: 30px;
    }
    
    .slide {
        width: 150px;
    }
}

/* Clases para animaciones al hacer scroll */
.animate {
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate.fade-in {
    opacity: 1;
}

.animate.slide-up {
    opacity: 1;
    transform: translateY(0);
}

.animate.zoom-in {
    opacity: 1;
    transform: scale(1);
}