/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #14d7dc;
    --dark: #053132;
    --secondary: #0c8487;
    --light: #f0feff;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Ambient Background */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
    overflow: hidden;
}

.ambient-bg::before,
.ambient-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.ambient-bg::before {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
    animation-delay: -5s;
}

.ambient-bg::after {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -150px;
    right: -150px;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

/* Navigation */
nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 80px !important;
    background: rgba(5, 49, 50, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    padding: 0 2rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    z-index: 2000 !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
}

.logo-container {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    height: 100% !important;
}

.logo-img {
    display: block !important;
    height: 45px !important;
    width: auto !important;
    max-height: 45px !important;
    object-fit: contain !important;
    flex: 0 0 auto !important;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(5, 49, 50, 0.98);
    min-width: 220px;
    list-style: none;
    padding: 0.5rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--white);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background: rgba(20, 215, 220, 0.1);
    border-left-color: var(--primary);
    color: var(--primary);
}

.lang-selector {
    background: var(--primary);
    color: var(--dark);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-selector:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(20, 215, 220, 0.3);
}

.lang-icon {
    font-size: 1.2rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section */
.section {
    padding: 6rem 0;
    background: var(--white);
}

.dark-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
    color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: inherit;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 8rem 2rem 4rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    line-height: 1.1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.8rem;
}

.animated-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) skewY(5deg);
    filter: blur(5px);
    animation: revealWord 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--delay) * 0.1s);
}

.animated-title .word.highlight {
    background: linear-gradient(90deg, var(--primary), #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.animated-title .word.brand {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(20, 215, 220, 0.3);
    font-weight: 800;
    position: relative;
}

.animated-title .word.brand::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    animation: lineReveal 0.6s ease forwards;
    animation-delay: calc(var(--delay) * 0.1s + 0.5s);
}

@keyframes revealWord {
    to {
        opacity: 1;
        transform: translateY(0) skewY(0);
        filter: blur(0);
    }
}

@keyframes lineReveal {
    to {
        transform: scaleX(1);
        transform-origin: left;
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s backwards;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-description {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    opacity: 0.85;
    animation: fadeInUp 1s ease 0.3s backwards;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    background: var(--primary);
    color: var(--dark);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.5s backwards;
    box-shadow: 0 8px 30px rgba(20, 215, 220, 0.3);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(20, 215, 220, 0.5);
    background: var(--white);
}

/* Animación tipo “glow” tech */
@keyframes ia-pulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 2px rgba(20, 215, 220, .25));
    }

    50% {
        transform: scale(1.03);
        filter: drop-shadow(0 0 10px rgba(20, 215, 220, .55));
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Problems Grid */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.problem-card {
    background: var(--light);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.problem-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px var(--shadow);
}

.problem-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.result-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.result-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
}

.result-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--light);
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px var(--shadow);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.service-card p {
    color: var(--dark);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    background: var(--primary);
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Sectors Grid */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.sector-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.sector-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
}

.sector-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.sector-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.sector-card p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    opacity: 0.95;
}

.sector-benefits {
    list-style: none;
    margin-top: 1.5rem;
}

.sector-benefits li {
    padding: 0.5rem 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Process Timeline */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
    padding: 2rem;
    background: var(--light);
    border-radius: 15px;
    transition: var(--transition);
    position: relative;
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.process-step h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.process-step p {
    color: var(--dark);
    line-height: 1.8;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.about-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.about-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
}

.about-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.about-card p {
    line-height: 1.8;
    opacity: 0.95;
}

/* FAQ */
.faq-container {
    max-width: 900px;
    margin: 3rem auto 0;
}

.faq-item {
    background: var(--light);
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light);
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(20, 215, 220, 0.1);
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--dark);
    margin: 0;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 2rem 1.5rem;
    color: var(--dark);
    line-height: 1.8;
}

/* Contact Section */
.contact-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

/* Contact Form */
.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--white);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 0.75rem;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 0.95rem;
}

.submit-button {
    width: 100%;
    background: var(--primary);
    color: var(--dark);
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(20, 215, 220, 0.4);
    background: var(--white);
}

.form-note {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 1rem;
    opacity: 0.8;
}

/* Contact Info */
.contact-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    height: fit-content;
}

.contact-info h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-method:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    font-size: 2rem;
}

.contact-method h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-method p {
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.8;
}

.footer-section a:hover {
    color: var(--primary);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 30px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responsive Design */

@media (max-width: 600px) {
    .logo-container {
        height: 44px;
        max-height: 44px;
    }

    .logo-img {
        width: 36px;
        height: 36px;
    }

    .logo-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 968px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(5, 49, 50, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.5s ease;
        padding: 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255, 255, 255, 0.05);
        min-width: 100%;
        margin-top: 1rem;
        text-align: center;
        box-shadow: none;
    }

    .nav-links .dropdown:hover .dropdown-menu {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
        gap: 0.3rem 0.6rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid,
    .sectors-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 600px) {
    nav {
        padding: 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .hero {
        padding: 6rem 1rem 3rem;
    }

    .section {
        padding: 4rem 0;
    }

    .problems-grid,
    .process-timeline {
        grid-template-columns: 1fr;
    }
}