/* Variables globales */
:root {
    --primary-color: #1565c0;
    --primary-dark: #0d47a1;
    --primary-light: #1e88e5;
    --secondary-color: #ff9800;
    --accent-color: #2979ff;
    --text-dark: #333;
    --text-light: #777;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #eeeeee;
    --gray-dark: #263238;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 4px;
}

/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background-color: transparent;
}

ul {
    list-style-type: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo-icon {
    margin-right: 0.5rem;
    font-size: 1.75rem;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-item {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-item i {
    font-size: 0.9rem;
}

.nav-item:hover {
    color: var(--primary-color);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-item:hover::after {
    width: 100%;
}

.social-icons-container {
    display: flex;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--gray-medium);
    color: var(--text-dark);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    width: 30px;
    height: 21px;
    position: relative;
    z-index: 1001;
}

.menu-toggle .bar {
    display: block;
    width: 100%;
    height: 3px;
    margin: 3px 0;
    transition: var(--transition);
    background-color: var(--text-dark);
    border-radius: var(--border-radius);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 9rem 0 5rem;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.08' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    animation: fadeInLeft 1s ease both;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10rem;
    animation: float 4s ease-in-out infinite;
    color: rgba(255, 255, 255, 0.8);
}

.titulo {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.subtitulo {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.primary-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.primary-button:hover {
    background-color: #f57c00;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.primary-button-outline {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.primary-button-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Secciones generales */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    position: relative;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.section-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Servicios - ESTILOS ACTUALIZADOS */
.servicios {
    background-color: var(--gray-light);
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

.carousel-container {
    position: relative;
    margin-bottom: 2rem;
    padding: 0 20px;
}

.servicios-carousel {
    overflow: hidden;
    position: relative;
    margin: 0 30px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.servicio-card {
    flex: 0 0 calc(33.333% - 1.5rem);
    min-width: 280px;
    margin-right: 1.5rem;
    transition: var(--transition);
}

/* Mejora de los botones de control del carrusel */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--secondary-color);
    /* Cambiado a naranja */
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
    border: 2px solid var(--secondary-color);
    /* Borde naranja */
    transition: var(--transition);
}

.carousel-control:hover {
    background-color: var(--secondary-color);
    /* Fondo naranja al pasar el ratón */
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.prev-btn {
    left: -20px;
}

.next-btn {
    right: -20px;
}

/* Mejorar indicadores del carrusel */
.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 0.5rem;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--gray-medium);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.indicator-dot.active {
    background-color: var(--secondary-color);
    /* Punto activo en naranja */
    transform: scale(1.2);
}

.indicator-dot:hover {
    border-color: var(--secondary-color);
}

.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Animación mejorada para las tarjetas */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(255, 152, 0, 0.15);
    /* Sombra naranja */
    border-bottom: 3px solid var(--secondary-color);
    /* Borde inferior naranja */
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: 80px;
    background-color: rgba(21, 101, 192, 0.1);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

/* Efecto de rotación con color naranja en las tarjetas */
.card:hover .card-icon {
    background-color: var(--secondary-color);
    /* Cambiado a naranja */
    color: var(--white);
    transform: rotateY(180deg);
    animation: rotateIcon 0.5s forwards;
}

.card h3 {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.card p {
    text-align: center;
    color: var(--text-light);
    flex-grow: 1;
}

/* Botón Ver Más con estilo naranja */
.ver-mas-btn {
    background-color: transparent;
    color: var(--secondary-color);
    /* Cambiado a naranja */
    font-weight: 600;
    padding: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem auto 0;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.ver-mas-btn:hover {
    border-bottom: 2px solid var(--secondary-color);
    /* Borde naranja */
}

/* Efecto para cuando la tarjeta esté en el centro del carrusel */
.servicio-card.active-card .card {
    border: 2px solid var(--secondary-color);
    transform: scale(1.05);
}

/* Mejora para los detalles del servicio */
.detalle-servicio {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease, opacity 0.5s ease;
    margin-top: 0;
    opacity: 0;
}

.detalle-servicio.mostrar-detalle {
    max-height: 200px;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--secondary-color);
    /* Borde superior naranja */
    opacity: 1;
}

.detalle-servicio ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.detalle-servicio ul li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Botón de acción con estilo naranja */
.action-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--secondary-color);
    /* Cambiado a naranja */
    font-weight: 600;
    transition: var(--transition);
    padding: 6px 12px;
    border-radius: 20px;
    background-color: rgba(255, 152, 0, 0.1);
}

.action-link:hover {
    color: var(--white);
    text-decoration: none;
    background-color: var(--secondary-color);
}

/* Keyframes para la tarjeta activa */
@keyframes cardHoverEffect {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Animación actualizada para cambiar a naranja durante la rotación */
@keyframes rotateIcon {
    0% {
        transform: rotateY(0);
        background-color: rgba(21, 101, 192, 0.1);
        color: var(--primary-color);
    }

    50% {
        transform: rotateY(90deg);
        background-color: rgba(255, 152, 0, 0.5);
        color: var(--white);
    }

    100% {
        transform: rotateY(180deg);
        background-color: var(--secondary-color);
        color: var(--white);
    }
}

/* Herramientas */
.herramientas {
    background-color: var(--white);
}

.herramientas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.herramienta-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.herramienta-card:hover {
    transform: translateY(-5px);
    border-bottom: 3px solid var(--primary-color);
}

.herramienta-card .card-icon {
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.herramienta-card:hover .card-icon {
    transform: rotateY(180deg);
    background-color: var(--primary-color);
    color: var(--white);
    animation: rotateIcon 0.5s forwards;
}

.herramienta-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

/* Contacto */
.contacto {
    background-color: var(--gray-light);
    position: relative;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.contacto-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.contacto-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.contacto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contacto-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contacto-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.contacto-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.contacto-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.contacto-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contacto-form-container {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.contacto-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.full-width {
    grid-column: 1 / -1;
}

.contacto-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.contacto-form input,
.contacto-form select,
.contacto-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-medium);
    border-radius: var(--border-radius);
    font-family: 'Open Sans', sans-serif;
    transition: var(--transition);
}

.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

.submit-btn {
    grid-column: 1 / -1;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Estilo para las burbujas de contacto */
.burbujas-contacto {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.burbuja-contacto {
    flex: 1;
    min-width: 250px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.burbuja-contacto:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.burbuja-contacto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.burbuja-contacto:hover::before {
    transform: scaleX(1);
}

.burbuja-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(21, 101, 192, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.burbuja-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.burbuja-contacto:hover .burbuja-icon {
    background-color: var(--primary-color);
    color: orange;
}

.burbuja-contacto:hover .burbuja-icon i {
    color: var(--white);
    transform: rotateY(360deg);
}

.burbuja-contacto h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.burbuja-contacto p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.burbuja-link {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.5rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.burbuja-link:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: scale(1.05);
}

/* Botón flotante de contacto */
.contacto-flotante {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.contacto-flotante:hover {
    transform: scale(1.1);
    animation: none;
}


/* Footer */
.footer {
    background-color: var(--gray-dark);
    color: var(--white);
    padding: 4rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
}

.footer-logo .logo {
    margin-bottom: 1rem;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    position: relative;
}

.footer-links h3::after,
.footer-contact h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

/* === Continuación de la sección Contacto === */
.contacto-card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contacto-card p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.contacto-card a {
    color: var(--primary-color);
    transition: var(--transition);
}

.contacto-card a:hover {
    color: var(--secondary-color);
}

.formulario-contacto {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.formulario-contacto h3 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-medium);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.submit-btn::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;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:active {
    transform: translateY(0);
}

/* === Footer Mejorado === */
.footer {
    background-color: var(--gray-dark);
    color: var(--white);
    padding: 4rem 2rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
    border-radius: 20px 20px 0 0;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
    animation: gradient-slide 5s infinite linear;
}

@keyframes gradient-slide {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-left: 4px solid var(--secondary-color);
    padding-left: 0.5rem;
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-secti

/* === Utilidades === */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* === Media Queries === */
@media (max-width: 1024px) {
    .servicios-carousel .servicio-card {
        flex: 0 0 calc(50% - 1rem);
        min-width: 300px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: var(--transition);
        z-index: 1000;
    }

    .nav-links.active {
        left: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .servicios-carousel .servicio-card {
        flex: 0 0 100%;
        min-width: 280px;
    }

    .carousel-control {
        display: none;
    }

    .contacto-info {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .primary-button,
    .primary-button-outline {
        width: 100%;
        max-width: 300px;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 7rem 0 3rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .card {
        padding: 1.5rem;
    }

    .formulario-contacto {
        padding: 1.5rem;
    }

    .prev-btn,
    .next-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* === Scroll suave y efectos adicionales === */
@media (prefers-reduced-motion: no-preference) {

    .card,
    .contacto-card,
    .herramienta-card {
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}

/* === Accesibilidad === */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === Estados de focus para accesibilidad === */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* === Loading state === */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: rotate 1s linear infinite;
}

/* === Botón flotante de WhatsApp === */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 24px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: pulse 2s infinite;
    text-decoration: none;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: white;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid #25d366;
    border-radius: 50%;
    animation: ping 2s infinite;
    opacity: 0.75;
}

@keyframes ping {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    75%,
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.whatsapp-float i {
    font-size: 28px;
    position: relative;
    z-index: 2;
}

/* Tooltip del WhatsApp */
.whatsapp-float::after {
    content: '¡Escríbenos!';
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.whatsapp-float:hover::after {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* Versión con notificación/badge */
.whatsapp-float .notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: bounce 1s infinite;
    border: 2px solid white;
}

/* Animación adicional para llamar la atención */
@keyframes wobble {
    0% {
        transform: rotate(0deg);
    }

    15% {
        transform: rotate(-5deg);
    }

    30% {
        transform: rotate(3deg);
    }

    45% {
        transform: rotate(-3deg);
    }

    60% {
        transform: rotate(2deg);
    }

    75% {
        transform: rotate(-1deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.whatsapp-float.wobble {
    animation: wobble 0.8s ease-in-out;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 22px;
    }

    .whatsapp-float i {
        font-size: 24px;
    }

    .whatsapp-float::after {
        font-size: 11px;
        padding: 6px 10px;
        right: 65px;
    }

    .whatsapp-float:hover::after {
        right: 70px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float i {
        font-size: 20px;
    }

    /* En móviles pequeños, ocultar el tooltip para evitar problemas */
    .whatsapp-float::after {
        display: none;
    }
}

/* ============================= */
/*        ANIMACIONES KEYFRAMES */
/* ============================= */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fondoAnimado {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes onda {
    to {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

/* ============================= */
/*          CLASES DE USO       */
/* ============================= */

/* Fondo animado */
.fondo-animado {
    background: linear-gradient(-45deg, var(--primary-dark), var(--primary-color), var(--primary-light), var(--accent-color));
    background-size: 400% 400%;
    animation: fondoAnimado 15s ease infinite;
}

/* Títulos animados */
.titulo-animado {
    animation: slideUp 1s ease-in-out forwards;
    text-align: center;
    color: var(--primary-dark);
}

/* Fade in suave */
.fade-in {
    animation: fadeIn 1s ease-in forwards;
}

/* Aparecer desde la izquierda */
.entrada-izquierda {
    animation: slideLeft 1s ease forwards;
}

/* Contenedor animado */
.container-animado {
    animation: fadeIn 1.5s ease;
    padding: 20px;
    margin: auto;
    max-width: 900px;
}

/* Botón moderno con efecto hover y onda */
.boton-animado {
    background: var(--secondary-color);
    color: var(--white);
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.boton-animado:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}

/* Efecto onda al hacer clic */
.boton-animado::after {
    content: "";
    position: absolute;
    width: 300%;
    height: 300%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: none;
}

.boton-animado:active::after {
    animation: onda 0.6s ease-out;
}

/* Tarjeta animada */
.card-animada {
    background: var(--gray-light);
    padding: 20px;
    margin: 20px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    animation: slideUp 1s ease;
    transition: transform 0.3s ease;
}

.card-animada:hover {
    transform: translateY(-5px);
}

/* ============================= */
/*        ANIMACIONES           */
/* ============================= */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fondoAnimado {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes onda {
    to {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

/* ============================= */
/*          ESTILOS             */
/* ============================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
}

.fondo-animado {
    background: linear-gradient(-45deg, var(--primary-dark), var(--primary-color), var(--primary-light), var(--accent-color));
    background-size: 400% 400%;
    animation: fondoAnimado 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container-animado {
    animation: fadeIn 1.5s ease;
    padding: 20px;
    max-width: 900px;
    width: 100%;
}

.titulo-animado {
    animation: slideUp 1s ease-in-out forwards;
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 30px;
    font-size: 3rem;
    text-transform: uppercase;
}

.fade-in {
    animation: fadeIn 1s ease-in forwards;
}

.entrada-izquierda {
    animation: slideLeft 1s ease forwards;
    color: var(--primary-color);
}

.card-animada {
    background: var(--gray-light);
    padding: 20px;
    margin: 20px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    animation: slideUp 1s ease;
    transition: transform 0.3s ease;
}

.card-animada:hover {
    transform: translateY(-5px);
}

.boton-animado {
    background: var(--secondary-color);
    color: var(--white);
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    margin-top: 15px;
}

.boton-animado:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}

.boton-animado::after {
    content: "";
    position: absolute;
    width: 300%;
    height: 300%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: none;
}

.boton-animado:active::after {
    animation: onda 0.6s ease-out;
}

p {
    color: var(--text-light);
    line-height: 1.6;
}

/* === Estilos para el WhatsApp Modal === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.5rem;
    color: #333;
}

.modal-header p {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #999;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #f0f0f0;
    color: #333;
}

.service-option {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-option:hover {
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.05);
}

.service-option.selected {
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.1);
}

.service-option i {
    font-size: 1.25rem;
    color: #25D366;
    margin-right: 15px;
    width: 25px;
    text-align: center;
}

.service-info h4 {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 1rem;
}

.service-info p {
    color: #666;
    font-size: 0.85rem;
}

.whatsapp-button {
    width: 100%;
    background: #25D366;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.whatsapp-button:hover:not(:disabled) {
    background: #128C7E;
    transform: translateY(-2px);
}

.whatsapp-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.contacto-flotante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1500;
    animation: pulse 2s infinite;
}

.contacto-flotante:hover {
    transform: scale(1.1);
    background: #128C7E;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .modal-content {
        margin: 20px;
        padding: 20px;
    }

    .contacto-flotante {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}