
:root {
    --color-morado: #8c52ff;
    --color-azul-aqua: #0cc0df;
    --color-rojo-brillante: #ff3131;
    --color-azul-cobalto: #004aad;
    --color-naranja: #ffb100;
}

body {
    margin: 0;
    font-family: 'Fredoka One', cursive;
    overflow-x: hidden;
}


.servicios-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-azul-aqua) 0%, var(--color-morado) 50%, var(--color-azul-cobalto) 100%);
    overflow: hidden;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="25" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="60" cy="15" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="30" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="20" cy="50" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="60" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="70" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="85" r="3" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: floatBackground 20s ease-in-out infinite;
}

.confetti-animated {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

@keyframes floatBackground {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}


.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(5);
    border-radius: 20px;
    padding: 25px 35px;
    text-align: center;
    min-width: 150px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2.5em;
    color: white;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-family: Arial, sans-serif;
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.9);
}

.hero-content-servicios {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 60px 20px;
}

.hero-titulo {
    font-size: 4em;
    margin: 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    animation: bounceIn 1s ease;
}

.hero-subtitulo {
    font-size: 1.6em;
    margin-top: 20px;
    opacity: 0.95;
    font-family: Arial, sans-serif;
    animation: fadeIn 1.5s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

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


.servicios-detallados {
    padding: 80px 0;
    background: linear-gradient(180deg, #87CEEB 0%, #E0F6FF 100%);
    position: relative;
    transition: background 0.8s ease;
}

.servicios-detallados.night-mode {
    background: linear-gradient(180deg, #0a1128 0%, #1a1f3a 100%);
}


.day-night-toggle {
    position: fixed;
    top: 120px;
    right: 30px;
    z-index: 1000;
}

.theme-toggle-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid white;
    background: linear-gradient(135deg, var(--color-naranja), var(--color-rojo-brillante));
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.theme-toggle-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.moon-icon {
    display: none;
}

.servicios-detallados.night-mode .sun-icon {
    display: none;
}

.servicios-detallados.night-mode .moon-icon {
    display: block;
}

/* ======================= FONDO ANIMADO ======================= */
.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.4;
}


.day-elements {
    opacity: 1;
    transition: opacity 0.8s ease;
}

.servicios-detallados.night-mode .day-elements {
    opacity: 0;
}

.sun {
    position: absolute;
    top: 50px;
    right: 100px;
    font-size: 4em;
    animation: rotate-sun 20s linear infinite;
}

@keyframes rotate-sun {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.clouds {
    position: absolute;
    width: 100%;
    height: 100%;
}

.cloud {
    position: absolute;
    font-size: 3em;
    animation: float-cloud 30s linear infinite;
}

.cloud-1 {
    top: 80px;
    left: 10%;
    animation-delay: 0s;
}

.cloud-2 {
    top: 150px;
    left: 40%;
    animation-delay: -10s;
}

.cloud-3 {
    top: 100px;
    right: 20%;
    animation-delay: -20s;
}

@keyframes float-cloud {
    0% { transform: translateX(0); }
    100% { transform: translateX(100vw); }
}

.rainbow {
    position: absolute;
    top: 120px;
    left: 5%;
    font-size: 5em;
    animation: rainbow-bounce 3s ease-in-out infinite;
}

@keyframes rainbow-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.birds {
    position: absolute;
    width: 100%;
    height: 100%;
}

.bird {
    position: absolute;
    font-size: 2em;
}

.bird-1 {
    top: 200px;
    left: 20%;
    animation: fly-bird 15s linear infinite;
}

.bird-2 {
    top: 250px;
    left: 50%;
    animation: fly-bird 12s linear infinite;
    animation-delay: -5s;
}

.bird-3 {
    top: 180px;
    left: 70%;
    animation: fly-bird 18s linear infinite;
    animation-delay: -10s;
}

@keyframes fly-bird {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(200px) translateY(-30px); }
    50% { transform: translateX(400px) translateY(0); }
    75% { transform: translateX(600px) translateY(-30px); }
    100% { transform: translateX(800px) translateY(0); }
}

.trees {
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    padding: 0 50px;
}

.tree {
    font-size: 4em;
    animation: tree-sway 4s ease-in-out infinite;
}

.tree-1 { animation-delay: 0s; }
.tree-2 { animation-delay: -1s; }
.tree-3 { animation-delay: -2s; }
.tree-4 { animation-delay: -3s; }

@keyframes tree-sway {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}


.night-elements {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.servicios-detallados.night-mode .night-elements {
    opacity: 1;
}

.moon {
    position: absolute;
    top: 50px;
    right: 100px;
    font-size: 4.5em;
    animation: moon-glow 3s ease-in-out infinite;
}

@keyframes moon-glow {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1);
        filter: brightness(1.2);
    }
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    font-size: 1.5em;
    animation: twinkle 2s ease-in-out infinite;
}

.star-1 { top: 10%; left: 10%; animation-delay: 0s; }
.star-2 { top: 15%; left: 30%; animation-delay: -0.5s; }
.star-3 { top: 20%; right: 20%; animation-delay: -1s; }
.star-4 { top: 8%; right: 40%; animation-delay: -1.5s; }
.star-5 { top: 30%; left: 15%; animation-delay: -0.3s; }
.star-6 { top: 35%; right: 15%; animation-delay: -0.8s; }
.star-7 { top: 40%; left: 50%; animation-delay: -1.2s; }
.star-8 { top: 25%; left: 70%; animation-delay: -0.6s; }
.star-9 { top: 45%; right: 60%; animation-delay: -1.8s; }
.star-10 { top: 50%; left: 25%; animation-delay: -1s; }

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

.servicio-item {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 100px;
    align-items: center;
}

.servicio-item.invertido {
    grid-template-columns: 1.2fr 1fr;
}

.servicio-item.invertido .servicio-imagen {
    order: 2;
}

.servicio-item.invertido .servicio-info {
    order: 1;
}


.servicio-imagen {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease;
}

.servicio-imagen:hover {
    transform: translateY(-10px);
}

.servicio-imagen img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.servicio-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.servicio-numero {
    font-size: 2em;
    color: var(--color-morado);
    font-weight: bold;
}


.servicio-info {
    padding: 20px;
}

.servicio-icono {
    font-size: 3.5em;
    margin-bottom: 20px;
    display: inline-block;
    animation: rotateIcon 3s ease-in-out infinite;
}

@keyframes rotateIcon {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.servicio-info h2 {
    font-size: 2.8em;
    color: var(--color-azul-cobalto);
    margin: 0 0 20px 0;
}

.servicio-descripcion {
    font-family: Arial, sans-serif;
    font-size: 1.15em;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}


.servicio-caracteristicas h3 {
    font-size: 1.8em;
    color: var(--color-morado);
    margin-bottom: 25px;
}

.servicio-caracteristicas ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.servicio-caracteristicas li {
    display: flex;
    gap: 15px;
    padding: 18px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 15px;
    border-left: 4px solid var(--color-azul-aqua);
    transition: all 0.3s ease;
}

.servicio-caracteristicas li:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(12, 192, 223, 0.2);
}

.check-icon {
    font-size: 1.5em;
    color: #4caf50;
    font-weight: bold;
    flex-shrink: 0;
}

.servicio-caracteristicas li div {
    flex: 1;
}

.servicio-caracteristicas strong {
    display: block;
    color: var(--color-azul-cobalto);
    font-size: 1.1em;
    margin-bottom: 5px;
}

.servicio-caracteristicas p {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 0.95em;
    color: #666;
    line-height: 1.5;
}


.imagen-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, var(--color-naranja), var(--color-rojo-brillante));
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}


.servicio-extra {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.extra-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.extra-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(140, 82, 255, 0.3);
}

.extra-icon {
    font-size: 1.5em;
}

.extra-item span:last-child {
    font-family: Arial, sans-serif;
    font-size: 0.95em;
    color: #555;
}


.beneficios-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
}

.beneficios-titulo {
    text-align: center;
    font-size: 3em;
    color: var(--color-morado);
    margin-bottom: 60px;
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.beneficio-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.beneficio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(140, 82, 255, 0.2);
}

.beneficio-icono {
    font-size: 3.5em;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.beneficio-card h3 {
    font-size: 1.5em;
    color: var(--color-azul-cobalto);
    margin: 0 0 15px 0;
}

.beneficio-card p {
    font-family: Arial, sans-serif;
    font-size: 1em;
    color: #666;
    line-height: 1.6;
    margin: 0;
}


.servicios-cta {
    background: linear-gradient(135deg, var(--color-morado) 0%, var(--color-azul-cobalto) 100%);
    padding: 100px 20px;
    text-align: center;
}

.servicios-cta .cta-content h2 {
    font-size: 3.5em;
    color: white;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.servicios-cta .cta-content p {
    font-size: 1.5em;
    color: white;
    opacity: 0.95;
    font-family: Arial, sans-serif;
    margin-bottom: 40px;
}

.btn-cta-servicios {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 25px 60px;
    font-size: 1.5em;
    font-weight: bold;
    font-family: 'Fredoka One', cursive;
    background: linear-gradient(135deg, var(--color-naranja), var(--color-rojo-brillante));
    color: white;
    text-decoration: none;
    border-radius: 60px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-cta-servicios::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-cta-servicios:hover::before {
    left: 100%;
}

.btn-cta-servicios:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.btn-arrow {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.btn-cta-servicios:hover .btn-arrow {
    transform: translateX(5px);
}




.servicios-page .main-header {
    background: linear-gradient(135deg, var(--color-morado) 0%, var(--color-azul-cobalto) 100%);
    position: sticky;
    top: 0;
    z-index: 100;
}


@media (min-width: 769px) {
    .servicios-page .logo img {
        height: 60px;
        width: auto;
        transition: transform 0.3s ease;
    }

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


.servicios-page .main-nav a {
    color: white;
}


.servicios-footer {
    background: var(--color-rojo-brillante);
    color: white;
    padding: 40px 0 30px 0;
}

.footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer-message {
    text-align: center;
}

.footer-message p {
    font-family: 'Fredoka One', cursive;
    font-size: 1.2em;
    margin: 0;
    color: white;
}

.servicios-footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.servicios-footer .red-social {
    width: 50px;
    height: 50px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.servicios-footer .red-social svg {
    width: 26px;
    height: 26px;
    fill: white;
}

.servicios-footer .red-social:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.servicios-footer .red-social:nth-child(1):hover {
    background: #1877f2;
}

.servicios-footer .red-social:nth-child(2):hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.servicios-footer .red-social:nth-child(3):hover {
    background: #000;
}

.servicios-footer .red-social:nth-child(4):hover {
    background: #25d366;
}

.servicios-footer .copyright-section {
    text-align: center;
}

.servicios-footer .copyright-section p {
    font-family: Arial, sans-serif;
    font-size: 0.95em;
    margin: 0;
    color: white;
}

.servicios-footer .company-logo {
    text-align: center;
    margin-top: 10px;
}

.servicios-footer .company-logo img {
    max-width: 150px;
    height: auto;
    opacity: 0.9;
}


@media (max-width: 1024px) {
    .servicio-item,
    .servicio-item.invertido {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 60px;
    }

    .servicio-item.invertido .servicio-imagen,
    .servicio-item.invertido .servicio-info {
        order: initial;
    }

    .servicio-imagen img {
        height: 400px;
    }

    .servicio-info {
        padding: 20px 15px;
    }

    .day-night-toggle {
        top: 100px;
        right: 20px;
    }

    .theme-toggle-btn {
        width: 60px;
        height: 60px;
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .hero-titulo {
        font-size: 2.5em;
    }

    .hero-subtitulo {
        font-size: 1.2em;
    }

    .hero-stats {
        gap: 20px;
        margin-top: 30px;
    }

    .stat-item {
        min-width: 120px;
        padding: 20px 25px;
    }

    .stat-icon {
        font-size: 2em;
    }

    .stat-number {
        font-size: 2em;
    }

    .stat-label {
        font-size: 0.85em;
    }

    .servicio-info {
        padding: 15px 10px;
    }

    .servicio-icono {
        font-size: 3em;
    }

    .servicio-info h2 {
        font-size: 2em;
    }

    .servicio-descripcion {
        font-size: 1em;
    }

    .servicio-caracteristicas h3 {
        font-size: 1.5em;
    }

    .servicio-imagen img {
        height: 350px;
    }

    .servicio-numero {
        font-size: 1.6em;
    }

    .servicio-overlay {
        width: 60px;
        height: 60px;
    }

    .beneficios-titulo {
        font-size: 2.5em;
    }

    .beneficio-card {
        padding: 30px 20px;
    }

    .servicios-cta .cta-content h2 {
        font-size: 2.5em;
    }

    .servicios-cta .cta-content p {
        font-size: 1.2em;
    }

    .btn-cta-servicios {
        font-size: 1.3em;
        padding: 20px 40px;
    }

    .logo-img {
        height: 45px;
    }

    .day-night-toggle {
        top: 90px;
        right: 15px;
    }

    .theme-toggle-btn {
        width: 55px;
        height: 55px;
        font-size: 1.6em;
    }

    .animated-background {
        opacity: 0.2;
    }
}

@media (max-width: 480px) {
    .hero-titulo {
        font-size: 2em;
        padding: 0 10px;
    }

    .hero-subtitulo {
        font-size: 1em;
        padding: 0 15px;
    }

    .hero-stats {
        gap: 15px;
        margin-top: 25px;
    }

    .stat-item {
        min-width: 100px;
        padding: 15px 20px;
    }

    .stat-icon {
        font-size: 1.8em;
    }

    .stat-number {
        font-size: 1.6em;
    }

    .stat-label {
        font-size: 0.8em;
    }

    .servicio-info {
        padding: 10px;
    }

    .servicio-icono {
        font-size: 2.5em;
    }

    .servicio-info h2 {
        font-size: 1.6em;
    }

    .servicio-descripcion {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    .servicio-caracteristicas h3 {
        font-size: 1.3em;
        margin-bottom: 20px;
    }

    .servicio-caracteristicas li {
        padding: 12px;
        margin-bottom: 10px;
    }

    .check-icon {
        font-size: 1.3em;
    }

    .servicio-caracteristicas strong {
        font-size: 1em;
    }

    .servicio-caracteristicas p {
        font-size: 0.85em;
    }

    .servicio-imagen img {
        height: 250px;
    }

    .servicio-numero {
        font-size: 1.4em;
    }

    .servicio-overlay {
        width: 50px;
        height: 50px;
        top: 15px;
        right: 15px;
    }

    .imagen-badge {
        font-size: 0.8em;
        padding: 6px 15px;
        top: 15px;
        left: 15px;
    }

    .servicio-extra {
        gap: 10px;
        margin-top: 20px;
    }

    .extra-item {
        padding: 10px 16px;
        font-size: 0.9em;
    }

    .extra-icon {
        font-size: 1.3em;
    }

    .beneficios-titulo {
        font-size: 2em;
        margin-bottom: 40px;
    }

    .beneficio-card {
        padding: 25px 15px;
    }

    .beneficio-icono {
        font-size: 3em;
    }

    .beneficio-card h3 {
        font-size: 1.3em;
    }

    .beneficio-card p {
        font-size: 0.95em;
    }

    .servicios-cta {
        padding: 60px 15px;
    }

    .servicios-cta .cta-content h2 {
        font-size: 2em;
        padding: 0 10px;
    }

    .servicios-cta .cta-content p {
        font-size: 1em;
        padding: 0 15px;
        margin-bottom: 30px;
    }

    .btn-cta-servicios {
        font-size: 1.1em;
        padding: 18px 30px;
        gap: 10px;
    }

    .btn-arrow {
        font-size: 1em;
    }

    .logo-img {
        height: 40px;
    }

    .day-night-toggle {
        top: 80px;
        right: 10px;
    }

    .theme-toggle-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5em;
        border: 2px solid white;
    }

    .animated-background {
        display: none;
    }

    /* Ocultar elementos decorativos en mobile muy pequeño para mejor rendimiento */
    .sun, .moon, .rainbow {
        font-size: 3em;
    }

    .cloud {
        font-size: 2em;
    }

    .bird {
        font-size: 1.5em;
    }

    .tree {
        font-size: 2.5em;
    }

    .star {
        font-size: 1.2em;
    }
}
