:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --primary: #38bdf8;
    --primary-glow: rgba(14, 50, 65, 0.4);
    --secondary: #818cf8;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: var(--text-light);
    background-color: var(--bg-dark);
}

body {
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography elements */
h1,
h2,
h3 {
    color: var(--text-light);
}

.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

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

.btn-primary-outline {
    border: 1px solid var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: var(--primary);
    text-decoration: none;
}

.btn-primary-outline:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--primary-glow);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    background: #0a0f19;
}

.hero-bg-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../../Fotos/Personal/slider.jpg') center/cover no-repeat;
    z-index: 1;
    animation: kenBurns 12s infinite alternate ease-in-out;
    pointer-events: none;
}




@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}




.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(10, 15, 25, 0.9) 100%);
    z-index: 3;
    pointer-events: none;
}


.hero .container {
    position: relative;
    z-index: 10;
}


.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}



.hero h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 600;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}


.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* General Sections */
section {
    padding: 6rem 0;
}

/* Nosotros */
.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.nosotros-text ul {
    list-style: none;
    margin-top: 1.5rem;
}

.nosotros-text li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.nosotros-text li i {
    color: var(--primary);
    font-size: 1.2rem;
}

.nosotros-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--primary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.nosotros-img::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        var(--primary) 25%,
        var(--secondary) 50%,
        var(--primary) 75%,
        transparent 100%
    );
    animation: rotateNeon 4s linear infinite;
}

.nosotros-img::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--bg-card);
    border-radius: 12px;
    z-index: 0;
}

.nosotros-img img {
    position: relative;
    z-index: 1;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    object-fit: cover;
    border-radius: 12px;
    filter: brightness(0.9) contrast(1.1);
}


@keyframes rotateNeon {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}



/* Equipo Nuevo Diseño */
.equipo-grid-new {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    margin-top: 2rem;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

@media (max-width: 900px) {
    .equipo-grid-new {
        flex-wrap: wrap;
    }
    .equipo-col {
        width: 50% !important;
    }
}
@media (max-width: 500px) {
    .equipo-col {
        width: 100% !important;
    }
}

.equipo-col {
    width: 20%;

    display: flex;
    flex-direction: column;
}

.eq-blue .eq-body { background-color: #3b93c3; }
.eq-slate .eq-body { background-color: #4c5b6a; }
.eq-footer-blue { background-color: #92bed6; color: #fff; }
.eq-footer-slate { background-color: #9eaab5; color: #fff; }

.eq-body {
    padding: 3rem 1.5rem 2rem;
    text-align: center;
    flex-grow: 1;
}

.eq-img-wrapper {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    background: #ccc;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.eq-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(15%);
}

.eq-body h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.eq-body p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
}

.eq-footer {
    padding: 1.5rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Servicios */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.servicio-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    text-align: left;
}

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

.servicio-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.servicio-card h3 {
    margin-bottom: 1rem;
}

.servicio-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Proyectos */
.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.proyecto-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.proyectos-grid:not(.mostrar-todos) .proyecto-card:nth-child(n+7) {
    display: none;
}

.proyecto-img {
    width: 100%;
    height: 200px;
    background: rgba(56, 189, 248, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.proyecto-content {
    padding: 2rem;
}

.proyecto-content h3 {
    margin-bottom: 1rem;
}

.proyecto-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tech-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-tag {
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Impacto */
.impacto {
    background: linear-gradient(to right, var(--bg-card), rgba(15, 23, 42, 0.9));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.impacto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.impacto-item h2 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.impacto-item p {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Tecnologias */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}

.tech-item {
    text-align: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.tech-item:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.tech-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Contacto */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contacto-info {
    font-size: 1.1em;
    color: var(--text-muted);
}

.contacto-info p {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contacto-info i {
    color: var(--primary);
    font-size: 1.2rem;
}

.contacto-form {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-light);
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    font-size: 1.1rem;
}

/* Alerts */
.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Animaciones */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {

    .nosotros-grid,
    .contacto-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social div {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        padding: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

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

    .impacto-grid {
        grid-template-columns: 1fr;
    }
}

/* Planes */
.planes {
    background: var(--bg-dark);
}

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

.plan-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    padding-bottom: 2.5rem;
}

.plan-card:hover {
    transform: translateY(-15px);
    border-color: var(--card-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(var(--card-rgb), 0.2);
}

.plan-header {
    padding: 2rem 1.5rem;
    background: linear-gradient(180deg, rgba(var(--card-rgb), 0.15) 0%, transparent 100%);
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 320px;
    max-height: 320px; /* Fuerza el límite superior */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    overflow: hidden; /* Evita que el contenido empuje la caja */
}

.plan-title-box {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 2;
}

.plan-title-box h3 {
    color: var(--text-light);
    font-size: 0.95rem; /* Un poco más pequeño para evitar saltos de línea innecesarios */
    margin-bottom: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}

.plan-price {
    color: var(--card-color);
    font-size: 2.2rem;
    font-weight: 800;
    text-shadow: 0 0 20px rgba(var(--card-rgb), 0.3);
    line-height: 1.2;
}

.plan-features {
    list-style: none;
    padding: 2.5rem 2rem;
    flex-grow: 1;
}

.plan-features li {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    min-height: 3.5rem; /* Aumentado para soportar textos de 3 líneas con holgura */
    padding: 0.5rem 0;
}

.plan-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--card-color);
    font-size: 0.8rem;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-btn-wrapper {
    padding: 0 2rem;
}

.plan-btn {
    width: 100%;
    padding: 1rem;
    background: transparent;
    color: var(--text-light);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 1px solid var(--card-color);
    display: block;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.plan-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--card-color);
    transition: var(--transition);
    z-index: -1;
}

.plan-btn:hover {
    color: #000;
    box-shadow: 0 0 20px rgba(var(--card-rgb), 0.4);
}

.plan-btn:hover::before {
    width: 100%;
}

.plan-blue {
    --card-color: var(--primary);
    --card-rgb: 56, 189, 248;
}

.plan-teal {
    --card-color: #2dd4bf;
    --card-rgb: 45, 212, 191;
}

.plan-pink {
    --card-color: #f472b6;
    --card-rgb: 244, 114, 182;
}

/* A deeper indigo to stay in theme */

/* Responsive Adjustments for Planes */
@media (max-width: 768px) {
    .planes-grid {
        grid-template-columns: 1fr;
    }
}

/* WhatsApp Floating Button */



.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    color: #fff;
}

.whatsapp-float i {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Pulsing effect */
@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float {
    animation: pulse-whatsapp 2s infinite;
}

/* Tooltip style "Nube" */
.whatsapp-float::after {
    content: '¿En qué podemos ayudarte?';
    position: absolute;
    right: 80px;
    background: #fff;
    color: #333;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}


