:root {
    --azul-oscuro: #003366;
    --azul-claro: #00AEEF;
    --verde-acierto: #4CAF50;
    --gris-fondo: #f4f7f9;
    --blanco: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 45px;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--azul-oscuro);
    margin-left: 30px;
    font-weight: 500;
}

.btn-nav {
    background: var(--verde-acierto);
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
}

.hero {
    background: linear-gradient(-45deg, #002144, #004a8f, #00a294, #4CAF50);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
    position: relative;
    color: white;
    padding: 100px 0 180px 0;
    display: flex;
    align-items: center;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 120px;
    background: white;
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
    z-index: 4;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 5;
}

.hero-text h1 {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-decoration: none;
    transition: 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

.cta-group {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: var(--azul-claro);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
    display: inline-block;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

.btn-primary:hover {
    background: #008cc0;
    transform: translateY(-2px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-image-container {
    position: relative;
    padding: 20px;
}

.screenshot {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    animation: floatDashboard 6s ease-in-out infinite;
}

@keyframes floatDashboard {

    0%,
    100% {
        transform: translateY(0) rotateY(-5deg);
    }

    50% {
        transform: translateY(-15px) rotateY(-2deg);
    }
}

.floating-icon {
    position: absolute;
    right: -30px;
    top: -20px;
    width: 85px;
    height: 85px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 22px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 10;
    animation: floatingIcon 6s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes floatingIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.floating-icon svg {
    width: 100%;
    height: 100%;
    opacity: 0.9;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    animation: spinning 10s linear infinite;
}

@keyframes spinning {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateAndFloat {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.floating-badge {
    position: absolute;
    bottom: -15px;
    left: -30px;
    background: #4CAF50;
    color: white;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 11;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: floatDashboard 5s ease-in-out infinite reverse;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 60px 20px;
}

.feature-card {
    text-align: center;
    padding: 40px;
    border-radius: 15px;
    background: var(--gris-fondo);
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.pricing {
    background: var(--gris-fondo);
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: var(--azul-oscuro);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.price-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #eee;
    position: relative;
}

.price-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--azul-claro);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.pop {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--verde-acierto);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 15px 0;
    color: var(--azul-oscuro);
}

.price span {
    font-size: 1rem;
    color: #777;
}

.price-card ul {
    list-style: none;
    margin-bottom: 25px;
    text-align: left;
}

.price-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.btn-outline {
    display: inline-block;
    padding: 12px 25px;
    border: 2px solid var(--azul-claro);
    color: var(--azul-claro);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

details {
    background: white;
    border-bottom: 1px solid #eee;
}

summary {
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

details[open] summary {
    background: #e3f2fd;
    color: #1565c0;
}

.chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    transform: rotate(45deg);
    transition: 0.3s;
}

details[open] .chevron {
    transform: rotate(-135deg);
}

.faq-content {
    padding: 20px;
    border-top: 1px solid #eee;
}

footer {
    background: var(--azul-oscuro);
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: 50px;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .cta-group {
        justify-content: center;
    }

    .features,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .hero-image-container {
        margin-top: 40px;
    }
}

.section-intro {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 10px auto;
}

.active-eco {
    background: rgba(30, 64, 175, 0.1);
    border-color: rgba(59, 130, 246, 0.5) !important;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.1);
}

.active-eco .eco-icon-box {
    background: #2563eb !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
}

.active-eco h4 {
    color: white !important;
}

.active-eco p {
    color: #60a5fa !important;
}

.hero {
    padding: 120px 0 200px 0;
}

.hero-text h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

.contact-map {
    padding: 80px 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.contact-icon {
    background: #e3f2fd;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    color: var(--azul-oscuro);
    font-size: 1.1rem;
}

.contact-item p {
    color: #666;
    margin: 0;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .map-container iframe {
        height: 350px;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

@keyframes zoomInFondo {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(100px);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

.animate-zoom-hero {
    animation: zoomInFondo 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInDelayed {

    0%,
    70% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-delayed {
    animation: fadeInDelayed 2s ease-out forwards;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

.reveal-dashboard {
    opacity: 0;
    transform: scale(0.5) translateY(100px);
    filter: blur(10px);
    transition: opacity 0.5s ease-out;
}

.animate-zoom-active {
    animation: zoomInFondo 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes zoomInFondo {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(100px);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

.animate-fade-delayed {
    opacity: 0;
}

.animate-zoom-active .animate-fade-delayed {
    animation: fadeInDelayed 1s ease-out 1s forwards;
}

@keyframes fadeInDelayed {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.floating {
    animation: float 5s ease-in-out infinite;
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.active-reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transform: translateX(0) !important;
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}


@keyframes dataFall {
    0% {
        transform: translateY(-10vh);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(110vh);
        opacity: 0;
    }
}

.falling-data {
    position: absolute;
    color: #60a5fa;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.65rem;
    font-weight: bold;
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}

#claves-container, #oficios-container, #calc-container, #auditor-container {
    position: relative;
    background-color: rgba(2, 6, 23, 0.5);
}

#claves-container::before, #oficios-container::before, 
#calc-container::before, #auditor-container::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-12%, -50%);
    width: 250px;
    height: 250px;
    background-image: url('../img/ia-acerto.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.ai-bubble {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #e2e8f0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.user-bubble {
    position: relative;
    z-index: 10;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.scrollbar-hide::-webkit-scrollbar {
    width: 5px;
}
.scrollbar-hide::-webkit-scrollbar-track {
    background: transparent;
}
.scrollbar-hide::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-bounce-slow {
    animation: bounce-slow 4s ease-in-out infinite;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

#ai-shortcut {
    transition: all 0.5s ease;
    transform: translateX(-150%);
}

#ai-shortcut.visible {
    transform: translateX(0);
}