:root {
    /* Color Palette - Premium Dark Theme */
    --bg-color: #ffffff;
    /* Deep blue/slate */
    --text-color: #f8fafc;
    /* Off-white */
    --accent-color: #38bdf8;
    /* Light blue accent */
    --highlight-color: #fbbf24;
    /* Gold/Amber for premium touches */
    --header-bg: rgb(0, 36, 119);
    /* Semi-transparent background */

    /* Spacing */
    --header-height: 100px;
    --container-width: 1100px;

    /* Fonts */
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    /* Glassmorphism effect */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Ajuste de posi del logo */
.logo img {
    /* Modifica este valor (px) para subir o bajar el logo */
    transform: translateY(5px);
    /* Positivo baja, negativo sube */
}

.logo a {
    color: var(--text-color);
    text-decoration: none;
    background: linear-gradient(90deg, var(--accent-color), var(--highlight-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.8;
}

.main-nav {
    display: flex;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: rgba(248, 250, 252, 0.992);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

/* Underline animation for links */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Special button style for "Oficina Virtual" */
.nav-link.btn-highlight {
    background: linear-gradient(135deg, var(--accent-color), #0ea5e9);
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Special button style for "Oficina Virtual" */
.nav-link.btn-highlight {
    background: linear-gradient(135deg, var(--accent-color), #0ea5e9);
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(56, 191, 248, 0.658);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Special button style for "Oficina Virtual" */
.nav-link.btn-highlight {
    background: linear-gradient(135deg, var(--accent-color), #0ea5e9);
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(56, 191, 248, 0.658);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-link.btn-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
    color: #fff;
}

.nav-link.btn-highlight::after {
    display: none;
    /* No underline for the button */
}

/* Hero Section (Parallax) */
.hero {
    height: 100vh;
    display: flex;
    justify-content: flex-start;
    /* Align left */
    align-items: center;
    text-align: left;
    /* Align text left */
    padding-top: var(--header-height);
    padding-left: 10%;
    /* Spacing from left */
    background-image: url('Guarenas/Guarenas-2.png');
    background-attachment: fixed;
    /* Parallax effect */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    color: #fff;
}

/* Dark overlay to improve text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* 40% dark overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    /* Ensure text is above overlay */
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.5rem;
    color: #f1f5f9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Base Content Section */
.content-section {
    padding: 80px 5%;
    background-color: var(--bg-color);
    /* Solid background to cover parallax */
    position: relative;
    z-index: 10;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Flexbox Layout for Who We Are */
.content-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
    /* Space between text and image */
    justify-content: space-between;
}

.text-col {
    flex: 1;
    text-align: left;
    /* Ensure text aligns left */
}

.image-col {
    flex: 1;
    display: flex;
    justify-content: center;
}

.section-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.section-image:hover {
    transform: translateY(-5px);
}

.content-section h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.content-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin-top: 10px;
    border-radius: 2px;
}

.content-section p {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Adjust text color if background is white */
body {
    background-color: #ffffff;
    color: #334155;
}

/* Interactive Cards Section */
.cards-section {
    padding: 60px 5%;
    background-color: #f8fafc;
    /* Light background to contrast with cards */
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: var(--container-width);
    margin: 0 auto;
}

.card {
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    flex: 1 1 250px;
    /* Grow, shrink, basis */
    max-width: 300px;
    text-align: center;
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.card .icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.25rem;
    color: var(--header-bg);
    margin-bottom: 15px;
}

.card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

/* Hover Interaction Logic */

/* Scale up the hovered card and bring to front */
.card:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Blur and fade siblings when container is hovered */
.cards-container:hover .card:not(:hover) {
    filter: blur(2px);
    transform: scale(0.95);
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .cards-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 100%;
    }

    /* Disable complex hover effects on mobile for better usability */
    .cards-container:hover .card:not(:hover) {
        filter: none;
        transform: none;
        opacity: 1;
    }

    .card:hover {
        transform: translateY(-5px);
        /* Simple lift instead of scale */
        z-index: 1;
    }
}

/* --- Servicios Page Styles --- */

.servicios-page {
    background-color: #ffffff;
}

.hero-parallax-bg {
    width: 100%;
    height: 300px;
    /* Reduced height as requested */
    margin-top: var(--header-height);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.2);
}

.residential-parallax {
    background-image: url('personas/chica-1.jpg');
}

.enterprise-parallax {
    background-image: url('personas/mesa de trabajo.jpg');
}

/* Utility Classes */
.py-80 {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.mt-60 {
    margin-top: 60px;
}

.dark-text {
    color: #003049;
}

.light-text {
    color: #f8fafc;
}

.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #64748b;
}

/* Plans Grid */
.plans-grid,
.enterprise-plans-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Plan Cards Base */
.plan-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    flex: 1 1 300px;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    /* Increased shadow as requested */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.plan-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.plan-price {
    margin-bottom: 25px;
}

.plan-price .currency {
    font-size: 1.5rem;
    vertical-align: top;
    font-weight: 600;
}

.plan-price .amount {
    font-size: 3.5rem;
    font-weight: 700;
}

.plan-price .period {
    font-size: 1rem;
    color: #64748b;
}

.plan-speed {
    font-size: 2rem;
    font-weight: 700;
    color: #023e8a;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
}

.plan-features {
    list-style: none;
    width: 100%;
    margin-bottom: 40px;
    text-align: left;
}

.plan-features li {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #475569;
}

.plan-features li i {
    color: #0077b6;
    margin-right: 10px;
}

/* Residential Specific */
.residential-card .plan-name {
    color: #023e8a;
}

.residential-card.featured {
    border: 2px solid #ffd60a;
    position: relative;
    overflow: hidden;
}

.residential-card.featured::before {
    content: 'MÁS POPULAR';
    position: absolute;
    top: 20px;
    right: -35px;
    background: #ffd60a;
    transform: rotate(45deg);
    padding: 5px 40px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #000;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #023e8a;
    color: #fff;
}

.btn-primary:hover {
    background: #0077b6;
    transform: scale(1.05);
}

/* Enterprise Section */
.services-enterprise {
    background-color: #023e8a;
    color: #fff;
    position: relative;
}

.services-enterprise .subtitle {
    color: #cbd5e1;
}

.enterprise-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: #ffffff;
}

.enterprise-card .plan-speed {
    color: #ffd60a;
    border-color: rgba(255, 255, 255, 0.1);
}

/*.enterprise-card.featured {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffd60a;
}*/

.btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline-light:hover {
    background: #fff;
    color: #023e8a;
}

.btn-yellow {
    background: #ffd60a;
    color: #000;
}

.btn-yellow:hover {
    background: #ffea00;
    transform: scale(1.05);
}

/* Enterprise Details */
.enterprise-details {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 30px;
    padding: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.enterprise-details h3 {
    font-size: 1.8rem;
    margin-bottom: 40px;
    text-align: center;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.detail-item i {
    font-size: 1.5rem;
    color: #ffd60a;
    width: 30px;
    text-align: center;
}

.detail-item span {
    font-size: 1.1rem;
}

.disclaimer {
    margin-top: 40px;
    font-size: 0.9rem;
    font-style: italic;
    color: #cbd5e1;
    text-align: center;
}

/* =============================================
   CORPORATE FOOTER - Parallax Style
   ============================================= */
.corporate-footer {
    background-color: #001a4d;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(0, 119, 182, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(56, 189, 248, 0.15) 0%, transparent 60%);
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    position: relative;
    z-index: 10;
    padding: 60px 5% 30px;
    text-align: center;
    border-top: 3px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

/* Línea divisoria animada superior */
.corporate-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #38bdf8, #fbbf24, #38bdf8, transparent);
    border-radius: 2px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-logo-area {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.1);
    border: 2px solid rgba(56, 189, 248, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
    }

    50% {
        box-shadow: 0 0 25px rgba(56, 189, 248, 0.5);
    }
}

.footer-icon {
    font-size: 2rem;
    color: #38bdf8;
}

.footer-company {
    font-size: 1.6rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(56, 189, 248, 0.3);
}

.footer-details {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 1.05rem;
    color: #cbd5e1;
}

.footer-detail i {
    color: #fbbf24;
    margin-right: 6px;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
}

.footer-address {
    margin-top: 14px;
    font-size: 0.9rem;
    color: #94a3b8;
    max-width: 560px;
    line-height: 1.6;
}

.footer-address i {
    color: #fbbf24;
    margin-right: 6px;
}

.footer-copy {
    font-size: 0.82rem;
    color: rgba(148, 163, 184, 0.7);
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
}

@media (max-width: 768px) {
    .footer-company {
        font-size: 1.2rem;
    }

    .footer-details {
        flex-direction: column;
        gap: 8px;
    }

    .footer-separator {
        display: none;
    }
}

/* Navigation Active State */
.nav-link.active {
    color: var(--accent-color);
}

.nav-link.active::after {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2.2rem;
    }

    .enterprise-details {
        padding: 30px 20px;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }
}