/* GEMINI WAS HERE */
:root {
    /* Colores metálicos (plata/gris en "Maxlex") */
    --light-gray: #D8D8D8;
    --medium-gray: #A6A6A6;
    --dark-gray: #4B4B4B;
    --black: #000000;

    /* Colores dorados/naranja (trazo en forma de cable y "Internet") */
    --bright-yellow: #FFD700;
    --medium-orange: #F9A602;
    --dark-gold: #B87333;
    --brown-black-shadow: #2A1B00;

    /* Colores de detalles (conexiones en la fibra) */
    --intense-yellow: #FFCC00;

    /* Gradiente metálico */
    --metallic-gradient: linear-gradient(90deg, var(--bright-yellow) 0%, var(--medium-orange) 40%, var(--dark-gold) 80%, var(--bright-yellow) 100%);
}
/* Reset y base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: "Inter", Arial, sans-serif;
    color: var(--dark-gray);
    -webkit-font-smoothing: antialiased;
    background: var(--metallic-gradient);
    overflow-x: hidden;
    transition: background 0.8s cubic-bezier(.77, 0, .18, 1);
}

/* --------- header / nav --------- */
header {
    position: fixed;
    inset: 0 auto auto 0;
    width: 100%;
    z-index: 1200;
    transition: background 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: transparent;
    transition: background 0.28s ease;
}

header.scrolled .nav-inner {
    background: var(--light-gray);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

header.scrolled .nav-links a {
    color: var(--dark-gray);
}

header.scrolled .nav-links a:hover {
    color: var(--medium-orange);
}

header.scrolled .nav-links a.active-link {
    color: var(--medium-orange);
}

.logo {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.logo img {
    height: 46px;
    width: auto;
    display: block;
}

.logo .brand {
    font-weight: 700;
    letter-spacing: .4px;
    color: var(--bright-yellow);
    font-size: 1.25rem;
}

/* nav links */
.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--black);
    font-weight: 600;
    padding: .7rem 1.5rem;
    border-radius: 14px;
    position: relative;
    font-size: 1.08rem;
    transition: color .38s cubic-bezier(.77, 0, .18, 1);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.nav-links a:hover,
.nav-links a.active-link {
    color: var(--medium-orange);
}

.nav-links a:hover .menu-icon,
.nav-links a.active-link .menu-icon {
    transform: rotate(-10deg) scale(1.2);
}

.nav-links a .menu-icon {
    display: inline-block;
    transition: transform .38s cubic-bezier(.77, 0, .18, 1);
}

/* hamburguer - mobile */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(216, 216, 216, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.05);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 18px;
    height: 2px;
    background: var(--dark-gray);
    display: block;
    border-radius: 2px;
    position: relative;
}

.nav-toggle .bar::before,
.nav-toggle .bar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--dark-gray);
    border-radius: 2px;
}

.nav-toggle .bar::before {
    top: -6px;
}

.nav-toggle .bar::after {
    bottom: -6px;
}

/* mobile menu (hidden by default) */
.mobile-menu {
    display: none;
    position: absolute;
    right: 1rem;
    top: 100%;
    margin-top: 10px;
    background: rgba(216, 216, 216, 0.98);
    box-shadow: 0 8px 30px rgba(20, 20, 40, 0.08);
    border-radius: 12px;
    overflow: hidden;
    z-index: 1300;
}

.mobile-menu a {
    display: block;
    padding: .85rem 1.1rem;
    font-weight: 600;
    color: var(--dark-gray);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: var(--black);
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("images/back.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
	background-attachment: fixed;
    z-index: -2;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, rgba(42, 27, 0, 0.8) 0%, rgba(184, 115, 51, 0.7) 100%);
}

.hero .hero-inner {
    max-width: 1100px;
    padding: 2rem;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1.1;
    margin-bottom: .75rem;
    color: var(--light-gray);
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 255, 255, 0.3);
    letter-spacing: -0.02em;
    font-weight: 800;
    animation: text-focus-in 1s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}

.hero p {
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    margin-bottom: 1.5rem;
    opacity: 0.95;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 999px;
    background: var(--metallic-gradient);
    color: var(--black);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(249, 166, 2, 0.18);
    transition: transform .28s cubic-bezier(.77, 0, .18, 1), box-shadow .28s cubic-bezier(.77, 0, .18, 1);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 18px 45px rgba(249, 166, 2, 0.24);
}

.centered-logo {
    display: block;
    width: 90%;
    max-width: 300px;
    margin: 0 auto 2rem auto; /* Center horizontally and add some bottom margin */
    border-radius: 12px; /* Slightly rounded corners */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Smooth transition for animation */
	cursor: pointer
}

.centered-logo:hover {
    transform: scale(1.05) rotate(2deg); /* Slightly scale up and rotate on hover */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3); /* Deeper shadow on hover */
}

.centered-logo {
    display: block;
    width: 90%;
    max-width: 300px;
    margin: 0 auto 2rem auto; /* Center horizontally and add some bottom margin */
}

/* ---------- sections generales ---------- */
main {
    margin-top: 0;
}

.content-section {
    padding: 5rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 1200px;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 3vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-gray);
    font-weight: 800;
    position: relative;
    padding-bottom: 1.5rem;
    display: block;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100px;
    height: 6px;
    background: var(--metallic-gradient);
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ---- Nosotros mejorado ---- */
.about {}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.about-card {
    background: var(--light-gray);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(42, 27, 0, 0.08);
    transition: transform .38s cubic-bezier(.77, 0, .18, 1), box-shadow .38s cubic-bezier(.77, 0, .18, 1);
    border-left: 6px solid var(--dark-gold);
}

.about-card:hover {
    transform: translateY(-14px) scale(1.03);
    box-shadow: 0 24px 60px rgba(184, 115, 51, 0.18);
}

.about-card h3 {
    color: var(--dark-gold);
    margin-bottom: .6rem;
    font-size: 1.25rem;
}

.about-card p,
.about-card ul {
    color: var(--dark-gray);
    line-height: 1.6;
    font-size: 1rem;
}

/* ---- Plans: estilos y colores por categoria ---- */
.plans {
    position: relative;
    overflow: hidden;
}

.plans .container {
    position: relative;
    z-index: 3;
}

.plans-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.plan-card {
    border-radius: 12px;
    overflow: hidden;
    background: var(--light-gray);
    box-shadow: 0 8px 30px rgba(42, 27, 0, 0.08);
    transition: transform .38s cubic-bezier(.77, 0, .18, 1), box-shadow .38s cubic-bezier(.77, 0, .18, 1);
    position: relative;
    border: 1px solid var(--medium-gray);
}

.plan-card:hover {
    transform: translateY(-16px) scale(1.04);
    box-shadow: 0 28px 80px rgba(249, 166, 2, 0.18);
}

.plan-header {
    padding: 1.5rem;
    color: var(--black);
    text-align: center;
}

.fibra .plan-header {
    background: linear-gradient(135deg, var(--bright-yellow), var(--dark-gold));
}

.gamer .plan-header {
    background: linear-gradient(135deg, var(--medium-orange), var(--dark-gold));
}

.antena .plan-header {
    background: linear-gradient(135deg, var(--intense-yellow), var(--bright-yellow));
}

.plan-name {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: .01em;
	margin-top: 30px;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 900;
    margin-top: .35rem;
}

.plan-body {
    padding: 1.5rem;
    text-align: center;
    color: var(--dark-gray);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
    color: var(--dark-gray);
}

.plan-features li {
    padding: .5rem 0;
}

.plan-button {
    display: inline-block;
    padding: .75rem 1.5rem;
    border-radius: 999px;
    background: var(--metallic-gradient);
    color: var(--black);
    font-weight: 700;
    text-decoration: none;
    transition: transform .28s cubic-bezier(.77, 0, .18, 1), box-shadow .28s cubic-bezier(.77, 0, .18, 1);
}

.plan-button:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 18px 45px rgba(249, 166, 2, 0.24);
}

.plan-ribbon {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.1);
    color: var(--light-gray);
    padding: .35rem .9rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .85rem;
}

/* coverage, contact similar; simplified styles omitted for brevity */
.coverage {}

.communities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.community-tag {
    background: linear-gradient(90deg, var(--brown-black-shadow), var(--dark-gold));
    color: var(--light-gray);
    padding: 1.5rem 1rem; /* Adjusted padding */
    border-radius: 10px;
    display: flex; /* Changed to flex */
    flex-direction: column; /* Stack content vertically */
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    font-weight: 700;
    position: relative; /* Added for absolute positioning of children */
    min-height: 100px; /* Ensure enough height */
    overflow: hidden; /* Hide anything outside */
}

.community-icon-top {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 1.2rem;
    color: var(--bright-yellow);
}

.community-name {
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 10px;
    margin-bottom: 10px;
    z-index: 1;
}

.community-icon-bottom-right {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 1.2rem;
    color: #28a745;
}

.contact {}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
}

.contact-card {
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(42, 27, 0, 0.08);
    text-align: center;
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--dark-gold);
}

/* Footer / legal */
.legal {}

main .content-section:nth-of-type(odd) {
    background: var(--light-gray);
}

main .content-section:nth-of-type(even) {
    background: var(--medium-gray);
}

footer {
    background: var(--brown-black-shadow);
    color: var(--light-gray);
    padding: 4rem 1.25rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    display: inline-block;
    margin-left: 1rem;
}

.footer-links a {
    color: var(--light-gray);
    text-decoration: none;
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    /*border-top: 1px solid rgba(216, 216, 216, 0.1);*/
    padding-top: 0px;
}

/* Animaciones y responsive */
@media (max-width: 980px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .mobile-menu {
        right: 1rem;
        left: auto;
        width: 220px;
    }

    header {
        padding: 0;
    }

    .nav-inner {
        padding: .6rem 1rem;
    }
}

@media (max-width: 560px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .mobile-menu {
        width: 90vw;
        right: 5vw;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links ul {
        margin-top: 2rem;
    }
}

/* pequeñas transiciones para entrada */
.fade-up {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 1.1s cubic-bezier(.77, 0, .18, 1);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(28px) scale(0.98);
    }

    60% {
        opacity: 1;
        transform: translateY(-6px) scale(1.04);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes text-focus-in {
    0% {
        -webkit-filter: blur(12px);
        filter: blur(12px);
        opacity: 0;
    }
    100% {
        -webkit-filter: blur(0px);
        filter: blur(0px);
        opacity: 1;
    }
}

.wifi-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    z-index: 0;
}

.wifi-animation .wifi-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: wifi-animate 2s linear infinite;
}

.wifi-animation .wifi-circle:nth-child(2) {
    animation-delay: 0.5s;
}

.wifi-animation .wifi-circle:nth-child(3) {
    animation-delay: 1s;
}

@keyframes wifi-animate {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Animated Circles */
.circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.circles span {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    animation: animate-circles 25s linear infinite;
    bottom: -150px;
}

.circles span:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.circles span:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.circles span:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.circles span:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.circles span:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.circles span:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.circles span:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.circles span:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.circles span:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.circles span:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

@keyframes animate-circles {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

.plans-animated-bg {
    background: linear-gradient(45deg, var(--bright-yellow), var(--dark-gold), var(--brown-black-shadow)) !important;
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--light-gray);
}

.plans-animated-bg .section-title {
    color: var(--light-gray) !important;
}

.plans-animated-bg .section-title::after {
    background: var(--light-gray) !important;
}

.plans-animated-bg h3 {
    color: var(--light-gray) !important;
}

.plans-animated-bg p {
    color: var(--light-gray) !important;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}
.download-buttons-container {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between buttons */
    margin-top: 2rem;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.download-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.file-name {
    font-weight: 600;
    color: var(--dark-gray); /* Use a dark gray for file names */
    margin-bottom: 5px;
}

.download-button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 999px;
    background: var(--metallic-gradient); /* Use the metallic gradient for buttons */
    color: var(--black); /* Use black text for contrast */
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(249, 166, 2, 0.18); /* Use a subtle shadow */
    transition: transform .28s cubic-bezier(.77, 0, .18, 1), box-shadow .28s cubic-bezier(.77, 0, .18, 1);
    min-width: 200px; /* Ensure same size for buttons */
    text-align: center;
}

.download-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 35px rgba(249, 166, 2, 0.24);
}