/* MODUS IT - ESTILOS CENTRALIZADOS */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --container-max: 1200px;
    --bg-color: #ffffff;
    --text-main: #1d1d1f;
    --text-sub: #6e6e73;
    --accent-blue: #0071e3;
    --accent-blue-dark: #0051c3;
    --accent-indigo: #4f46e5;
    --accent-cyan: #00b4d8;
    --accent-cyan-light: #06ddf4;
    --footer-bg: #f5f5f7;
    --card-bg: #fbfbfd;
    --gradient-primary: linear-gradient(135deg, #0071e3 0%, #4f46e5 50%, #00b4d8 100%);
    --gradient-subtle: linear-gradient(180deg, #f0f8ff 0%, #e8f4ff 100%);
    --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(0, 113, 227, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(79, 70, 229, 0.08), transparent),
        radial-gradient(ellipse 50% 30% at 10% 80%, rgba(0, 180, 216, 0.06), transparent);
    --page-padding: clamp(16px, 5vw, 48px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    letter-spacing: -0.015em;
}

p, li, .hero-subtitle, .bento-card p, .lifecycle-card p {
    line-height: 1.6;
}

/* ============================================
   NAVBAR - REDISEÑADA
   ============================================ */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 56px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--page-padding);
    gap: 16px;
}

.nav-logo {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.3px;
    text-decoration: none;
    color: var(--text-main);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-logo-icon {
    flex-shrink: 0;
    display: block;
}

.nav-logo .nav-logo-icon {
    -webkit-text-fill-color: initial;
    background: none;
}

.footer-logo {
    margin-bottom: 12px;
}

.nav-menu,
nav ul,
.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-menu a,
nav ul li a,
.nav-links a {
    text-decoration: none;
    color: var(--text-sub);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: color 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    padding-bottom: 2px;
    white-space: nowrap;
}

.nav-menu a:hover,
nav ul li a:hover,
.nav-links a:hover {
    color: var(--accent-blue);
}

.nav-menu a[aria-current="page"],
nav ul li a[aria-current="page"] {
    color: var(--accent-blue);
    font-weight: 600;
}

.nav-menu a:not(.nav-cta)::after,
nav ul li a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-menu a:not(.nav-cta):hover::after,
nav ul li a:not(.nav-cta):hover::after,
.nav-menu a[aria-current="page"]:not(.nav-cta)::after {
    width: 100%;
}

.nav-cta {
    display: inline-block;
    background: var(--gradient-primary);
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    padding: 8px 18px;
    border-radius: 980px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.35);
    color: #fff !important;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    margin: 0;
    border-radius: 8px;
}

.nav-hamburger:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

.nav-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 2px;
}

.nav-hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-menu a:focus-visible,
nav ul li a:focus-visible,
.nav-links a:focus-visible,
.cta-btn:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    nav {
        height: 52px;
    }

    .nav-logo {
        font-size: 14px;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-menu,
    nav ul,
    .nav-links {
        display: none;
        position: absolute;
        top: 52px;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 20px var(--page-padding) 24px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
        max-height: calc(100vh - 52px);
        overflow-y: auto;
    }

    .nav-menu.active,
    nav ul.active,
    .nav-links.active {
        display: flex;
    }

    .nav-menu li,
    nav ul li {
        width: 100%;
    }

    .nav-menu a,
    nav ul li a,
    .nav-links a {
        display: block;
        font-size: 15px;
        padding: 12px 0;
    }

    .nav-menu a::after,
    nav ul li a::after {
        display: none;
    }

    .nav-cta {
        text-align: center;
        margin-top: 8px;
    }
}

/* ============================================
   MAIN SECTIONS BACKGROUNDS
   ============================================ */

main section:nth-of-type(odd) {
    background-color: #ffffff;
}

main section:nth-of-type(even) {
    background: var(--gradient-subtle);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    padding: 160px var(--page-padding) 100px;
    text-align: center;
    width: 100%;
    margin-top: 56px;
    background: var(--gradient-hero);
    position: relative;
}

.hero-lead {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 400;
    margin-bottom: 24px;
    color: var(--text-sub);
    line-height: 1.35;
}

.hero h1 {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.05;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h2.hero-lead {
    background: none;
    -webkit-text-fill-color: var(--text-sub);
}

.hero p {
    font-size: 21px;
    line-height: 1.381;
    font-weight: 400;
    color: var(--text-sub);
    margin-bottom: 40px;
    max-width: 700px;
    margin-inline: auto;
}

.cta-btn {
    display: inline-block;
    background: var(--gradient-primary);
    color: #fff;
    padding: 14px 28px;
    border-radius: 980px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-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.6s ease;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 113, 227, 0.3);
}

.cta-btn--spaced {
    margin-top: 32px;
}

.cta-btn--lg {
    margin-top: 48px;
}

.cta-arrow::after {
    content: ' →';
}

.scroll-hint {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    color: var(--text-sub);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.scroll-hint:hover {
    color: var(--accent-blue);
    transform: translateY(2px);
}

.scroll-hint-icon {
    width: 20px;
    height: 20px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(4px); }
}

/* ============================================
   FLAGSHIP SECTION (WAZUH)
   ============================================ */

.flagship {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px;
    width: 100%;
    background: linear-gradient(180deg, #f0f8ff 0%, rgba(0, 180, 216, 0.05) 100%);
}

.flagship h2 {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    margin-bottom: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.flagship p {
    font-size: 21px;
    line-height: 1.381;
    color: var(--text-sub);
    max-width: 700px;
    margin: 0 auto 60px;
}

.wazuh-video {
    width: 100%;
    max-width: 800px;
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(0, 113, 227, 0.25);
    margin: 40px 0;
    background-color: #000;
    border: 1px solid rgba(0, 180, 216, 0.2);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}

.wazuh-video:hover {
    transform: scale(1.02);
    box-shadow: 0 32px 80px rgba(0, 113, 227, 0.3);
}

/* ============================================
   BENTO GRID - TARJETAS DE SERVICIOS
   ============================================ */

.bento-section {
    padding: 100px 20px;
    width: 100%;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-card--wide {
        grid-column: span 2;
    }
}

.voip-visual {
    text-align: center;
    padding: 20px;
    width: 100%;
    background: linear-gradient(180deg, rgba(0, 113, 227, 0.04) 0%, transparent 100%);
    border-radius: 16px;
}

.voip-visual-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: var(--accent-blue);
}

.voip-visual-label {
    color: var(--text-sub);
    font-size: 15px;
    font-weight: 500;
}

.bento-icon-svg {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--accent-blue);
    opacity: 0.9;
}

.bento-card {
    border-radius: 28px;
    padding: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    background: #ffffff;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 113, 227, 0.15);
}

.bento-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.bento-card:hover .bento-icon {
    transform: scale(1.1);
}

.bento-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.bento-card p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-sub);
    margin-bottom: 40px;
    max-width: 400px;
}

.graphic-container {
    margin-top: auto;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 24px;
}

.zabbix-image,
.glpi-image {
    height: 100%;
    width: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center top;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.bento-card:hover .zabbix-image,
.bento-card:hover .glpi-image {
    transform: scale(1.05);
}

/* Networking Rack */
.network-rack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 240px;
}

.net-switch {
    width: 100%;
    height: 32px;
    background: #2d2d2d;
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.net-port {
    width: 10px;
    height: 10px;
    background: #111;
    border-radius: 2px;
}

.net-port.active {
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
    animation: blink 1.5s infinite;
}

.net-port.blue {
    background: var(--accent-blue);
    box-shadow: 0 0 8px var(--accent-blue);
}

.net-port.fast {
    animation: blink 0.5s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

/* MariaDB Nodes */
.db-cluster {
    position: relative;
    width: 180px;
    height: 160px;
}

.db-node {
    width: 56px;
    height: 56px;
    background: #fff;
    border: 2px solid var(--accent-blue);
    border-radius: 16px;
    position: absolute;
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.db-node::after {
    content: '';
    width: 24px;
    height: 24px;
    background: var(--accent-cyan);
    border-radius: 50%;
    opacity: 0.2;
}

.db-node:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.db-node:nth-child(2) {
    bottom: 0;
    left: 0;
}

.db-node:nth-child(3) {
    bottom: 0;
    right: 0;
}

.db-conn {
    position: absolute;
    background: var(--accent-blue);
    opacity: 0.2;
    z-index: 1;
}

.db-conn:nth-child(4) {
    width: 2px;
    height: 100px;
    top: 28px;
    left: 32%;
    transform: rotate(32deg);
}

.db-conn:nth-child(5) {
    width: 2px;
    height: 100px;
    top: 28px;
    right: 32%;
    transform: rotate(-32deg);
}

.db-conn:nth-child(6) {
    width: 110px;
    height: 2px;
    bottom: 28px;
    left: 35px;
}

/* ============================================
   LIFECYCLE SECTION
   ============================================ */

.lifecycle-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, #f5f5f7 0%, #f9f9fb 100%);
    width: 100%;
}

.lifecycle-container {
    max-width: 1200px;
    margin: 0 auto;
}

.lifecycle-header {
    text-align: center;
    margin-bottom: 60px;
}

.lifecycle-header h2 {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lifecycle-header p {
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-sub);
    max-width: 800px;
    margin: 0 auto;
}

.lifecycle-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .lifecycle-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .lifecycle-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.lifecycle-card {
    background-color: #ffffff;
    border-radius: 24px;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 113, 227, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
}

.lifecycle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.lifecycle-card:hover::before {
    transform: scaleX(1);
}

.lifecycle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 113, 227, 0.1);
}

.lifecycle-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    line-height: 1.25;
}

.lifecycle-card p {
    font-size: 14px;
    line-height: 1.57;
    color: var(--text-sub);
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    padding: 120px 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 100px);
    align-items: center;
    margin-top: 56px;
}

.about-container {
    max-width: 800px;
    text-align: center;
}

.about-container h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 32px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-container p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-sub);
    margin-bottom: 24px;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: linear-gradient(180deg, var(--footer-bg) 0%, #eeeeef 100%);
    padding: 60px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

footer .footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    padding: 0 var(--page-padding);
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.5;
    max-width: 280px;
}

footer h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 12px;
}

footer a {
    color: var(--text-sub);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 24px;
    text-align: center;
}

footer p {
    color: var(--text-sub);
    font-size: 12px;
    margin-bottom: 8px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
    }

    .flagship {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .bento-section {
        padding: 60px 20px;
    }

    .bento-card {
        padding: 32px 20px;
    }

    .lifecycle-section {
        padding: 60px 20px;
    }

    .lifecycle-card {
        padding: 28px 20px;
    }

    .about-section {
        padding: 80px 20px;
    }

    footer .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 42px;
    }

    .hero h2 {
        font-size: 20px;
    }

    .bento-card h3 {
        font-size: 24px;
    }

    .lifecycle-header h2 {
        font-size: 28px;
    }
}

/* ============================================
   ENHANCED VISUAL EFFECTS & ANIMATIONS
   ============================================ */

/* Smooth scroll behavior for all interactions */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Improved button states */
.cta-btn:active {
    transform: translateY(0);
}

.cta-btn:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 4px;
}

/* Card animation on load */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .bento-card {
        animation: slideInUp 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    }

    .bento-card:nth-child(1) { animation-delay: 0.1s; }
    .bento-card:nth-child(2) { animation-delay: 0.2s; }
    .bento-card:nth-child(3) { animation-delay: 0.3s; }
    .bento-card:nth-child(4) { animation-delay: 0.4s; }
    .bento-card:nth-child(5) { animation-delay: 0.5s; }

    .scroll-hint-icon {
        animation: scrollBounce 2s ease-in-out infinite;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bento-card,
    html {
        animation: none;
        scroll-behavior: auto;
    }
}

/* Improved form focus states */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1), 0 0 0 8px rgba(0, 113, 227, 0.05);
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    .cta-btn {
        padding: 16px 32px;
        font-size: 16px;
    }
    
    nav ul li a {
        padding: 12px 0;
    }
}

/* ============================================
   SERVICE PAGES STYLES
   ============================================ */

.product-hero {
    padding: 160px 22px 80px 22px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
    margin-top: 56px;
}

.max-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--page-padding);
}

.product-brand {
    display: block;
    font-size: 28px;
    color: var(--text-sub);
    margin-bottom: 12px;
    font-weight: 400;
}

.product-headline {
    font-size: clamp(32px, 5vw, 48px) !important;
    margin-bottom: 16px !important;
    font-weight: 600 !important;
    color: var(--text-main) !important;
    background: none !important;
    -webkit-text-fill-color: var(--text-main) !important;
}

.product-hero h1 {
    font-size: 56px;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-main);
}

.product-hero h1:first-of-type {
    font-size: 28px;
    color: var(--text-sub);
    margin-bottom: 12px;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-sub);
    max-width: 850px;
    margin: 0 auto 40px auto;
    line-height: 1.4;
}

/* Metrics / Stats Section */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 60px 0 20px 0;
    padding: 40px 22px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.metric-item {
    text-align: center;
}

.metric-number {
    font-size: 64px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-label {
    font-size: 16px;
    color: var(--text-sub);
    font-weight: 500;
}

/* Features Section */
.features-section {
    padding: 100px 22px;
    background-color: #ffffff;
}

.features-section h2 {
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-align: center;
    margin-bottom: 60px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 113, 227, 0.1);
    border-color: rgba(0, 113, 227, 0.1);
}

.feature-icon {
    font-size: 24px;
    margin-bottom: 20px;
    background-color: #ffffff;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    color: var(--accent-blue);
    flex-shrink: 0;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.005em;
    color: var(--text-main);
}

.feature-card p {
    font-size: 16px;
    color: var(--text-sub);
    line-height: 1.5;
}

/* Bottom CTA Panel */
.bottom-cta {
    padding: 100px 22px;
    background: var(--gradient-subtle);
    text-align: center;
}

.bottom-cta h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-main);
}

@media (max-width: 768px) {
    .product-hero {
        padding: 100px 20px 60px;
        margin-top: 52px;
    }

    .product-hero h1 {
        font-size: 38px;
    }

    .product-hero h1:first-of-type {
        font-size: 20px;
    }

    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 24px;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 24px;
    }

    .metric-number {
        font-size: 48px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .features-section h2 {
        font-size: 30px;
    }

    .bottom-cta {
        padding: 60px 20px;
    }

    .bottom-cta h3 {
        font-size: 22px;
    }
}

/* ============================================
   COTIZAR PAGE - QUOTE FORM
   ============================================ */

.main-container {
    max-width: var(--container-max);
    margin: 100px auto 60px auto;
    padding: 0 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    flex: 1;
}

.info-side {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 20px;
}

.main-container h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 16px;
    line-height: 1.1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 21px;
    color: var(--text-sub);
    line-height: 1.4;
    margin-bottom: 40px;
    font-weight: 400;
}

.value-props {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.prop-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 113, 227, 0.1);
}

.prop-item:hover {
    background: rgba(0, 113, 227, 0.05);
    border-color: rgba(0, 113, 227, 0.2);
}

.prop-icon {
    width: 24px;
    height: 24px;
    margin-top: 2px;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.prop-text h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-main);
}

.prop-text p {
    font-size: 15px;
    color: var(--text-sub);
    line-height: 1.47;
}

.form-side {
    background-color: #ffffff;
    transition: opacity 0.3s ease;
    border-radius: 24px;
    padding: 36px 32px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.form-success {
    text-align: center;
    padding: 80px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    animation: appleFadeIn 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.form-success-icon {
    width: 52px;
    height: 52px;
    color: #34c759;
    margin-bottom: 24px;
}

.form-success h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    color: var(--text-main);
}

.form-success p {
    font-size: 16px;
    color: var(--text-sub);
    max-width: 360px;
}

.form-group {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    background-color: var(--bg-color);
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-family: var(--font-family);
    font-size: 16px;
    color: var(--text-main);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    -webkit-appearance: none;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-textarea {
    height: 120px;
    resize: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

.btn-submit {
    width: 100%;
    height: 48px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 12px;
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.2);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 113, 227, 0.3);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.privacy-notice {
    font-size: 12px;
    color: var(--text-sub);
    text-align: center;
    margin-top: 16px;
    line-height: 1.57;
}

@keyframes appleFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 60px;
    }

    .main-container h1 {
        font-size: 36px;
    }

    .subtitle {
        font-size: 18px;
        margin-bottom: 24px;
    }
}

.voip-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.voip-visual-label {
  text-align: center;
  margin-bottom: 0;
}
/* Contenedor principal: los alinea en el mismo nivel y los centra */
.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem; /* Espaciado uniforme entre ambos botones */
    margin-top: 2.5rem;
    flex-wrap: wrap; /* Excelente adaptabilidad en móviles */
}

/* Estilo para el Botón Secundario (Uniforme en tamaño y forma) */
.cta-btn--secondary {
    /* IMPORTANTE: Ajusta este padding y borde para que coincida exactamente con tu .cta-btn base */
    padding: 14px 28px; 
    border-radius: 9999px; /* Misma forma de píldora que el botón azul */
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    
    /* Personalización del estilo limpio/outline */
    background: rgba(0, 113, 227, 0.03); /* Un fondo casi imperceptible */
    color: #0071e3;                      /* Texto con el azul de tu marca */
    border: 2px solid #0071e3;           /* Borde sutil del mismo color */
    transition: all 0.3s ease;
}

/* Efecto Hover interactivo para el botón secundario */
.cta-btn--secondary:hover {
    background: #0071e3;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.25);
    transform: translateY(-1px); /* Pequeña elevación premium al pasar el mouse */
}