/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #0ea5e9;
    --accent: #f43f5e;
    --dark: #0f172a;
    --light: #f8fafc;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --whatsapp-color: #25d366;
    --accent-orange: #ff8500;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark);
    color: var(--light);
}

/* Encabezado y Navegación */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(15, 23, 42, 0.8);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding: 1rem 5%;
    border-bottom: 1px solid var(--glass-border);
}

#scroll-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #00d4ff, #6366f1, #00d4ff);
    background-size: 200% 100%;
    animation: neonShift 3s linear infinite;
    box-shadow: 0 0 8px #00d4ff, 0 0 20px rgba(0, 212, 255, 0.5);
    transition: width 0.1s linear;
    z-index: 1001;
}

@keyframes neonShift {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1002;
    transition: var(--transition);
    padding: 0 20px;
    /* Margen interno para separarse de los links */
}

.logo img {
    height: 65px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 48px;
}

.nav-menu-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    list-style: none;
    gap: 40px;
    /* Separación reducida */
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links.left {
    justify-content: flex-end;
}

.nav-links.right {
    justify-content: flex-start;
}

.nav-links a {
    text-decoration: none;
    color: var(--light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    opacity: 0.8;
    white-space: nowrap;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Secciones base */
section {
    min-height: 100vh;
    padding: 100px 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Sección Hero */
.hero {
    background: url('../../images/hero.webp') no-repeat center center/cover;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 0 5%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 127, 0.1);
    color: #00ff7f;
    border: 1px solid rgba(0, 255, 127, 0.3);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 6rem;
    margin-bottom: 2rem;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease forwards;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(248, 250, 252, 0.8);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1.2s ease forwards;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease forwards;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #060918;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--light);
    color: var(--light);
}

.btn-outline:hover {
    background: var(--light);
    color: var(--dark);
    transform: translateY(-3px);
}

.btn-accent {
    background: linear-gradient(135deg, #ff8500, #ffb700);
    color: #4b1d00;
    box-shadow: 0 4px 15px rgba(255, 133, 0, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 133, 0, 0.5);
    background: linear-gradient(135deg, #ff9500, #ffc700);
}

.btn-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-accent:hover::before {
    left: 100%;
}

/* Indicador de Desplazamiento */
.hero-scroll {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
    animation: fadeIn 2s ease forwards;
}

.hero-scroll span {
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.mouse {
    width: 20px;
    height: 32px;
    border: 2px solid var(--light);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 6px;
    background: var(--light);
    border-radius: 2px;
    animation: mouseScroll 2s infinite;
}

/* Toggle de Menú Móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1005;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--light);
    border-radius: 3px;
    transition: var(--transition);
}

@keyframes mouseScroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.7;
    }
}

/* Diseño Responsivo */
@media (max-width: 1200px) {
    .nav-links {
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .nav-menu-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease-in-out;
        z-index: 1004;
    }

    .nav-menu-wrapper.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 2rem;
        margin: 0;
    }

    .nav-links.right {
        justify-content: center;
        margin-top: 2rem;
    }

    .logo {
        position: relative;
        margin: 20px 0;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }

    .hero-scroll {
        display: none;
    }
}

/* Sección Agencia de Desarrollo Web */
.agency {
    background: #f8fafc;
    padding: 60px 5%;
    min-height: 0;
    display: block;
}

.agency-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.agency-header {
    text-align: left;
    margin-bottom: 1.2rem;
}

.agency-header .section-title {
    color: var(--dark);
    margin-top: 1rem;
    padding-bottom: 15px;
    font-size: 2.1rem;
}

.agency-header .section-title::after {
    left: 0;
    transform: none;
}

.agency-header .section-badge {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
}

.agency-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.8;
    margin-top: 1.5rem;
}



/* Lista Simple Agencia */
.agency-list-simple {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.agency-image-right {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2rem;
    /* Agrega un pequeño espacio arriba para bajarlo visualmente */
}

.floating-robot {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 30px;
    animation: robotFloat 4s ease-in-out infinite;
    /* Sombras Neon Elegantes */
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
    filter: drop-shadow(0 10px 15px rgba(15, 23, 42, 0.1)) drop-shadow(0 0 20px rgba(99, 102, 241, 0.3)) drop-shadow(0 0 40px rgba(14, 165, 233, 0.1));
    transition: var(--transition);
}

.floating-robot:hover {
    filter: drop-shadow(0 15px 25px rgba(15, 23, 42, 0.15)) drop-shadow(0 0 30px rgba(99, 102, 241, 0.5)) drop-shadow(0 0 50px rgba(14, 165, 233, 0.2));
    transform: translateY(-20px) scale(1.02);
}

@keyframes robotFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Logos de Tecnologías */
.agency-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f1f5f9;
}

.logo-item {
    width: 140px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-item:hover {
    transform: scale(1.15);
}

/* Responsivo - Agencia */

.agency-list-simple li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
}

.agency-list-simple li i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.agency-list-simple li p strong {
    color: var(--dark);
    font-weight: 700;
}



/* Responsivo - Agencia */
@media (max-width: 992px) {
    .agency-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .agency-header {
        text-align: center;
    }

    .agency-header .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .agency-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .agency-list-simple li {
        justify-content: center;
        text-align: left;
    }

    .agency-image-right {
        order: -1;
        /* Mover la imagen arriba en móviles si lo deseas, o déjala abajo */
        padding-top: 0;
    }
}

/* Sección de Servicios */
.services {
    background: #ffffff;
    padding: 60px 5%;
    min-height: 0;
    display: block;
}

.services .section-title {
    color: var(--dark);
}

.services .section-desc {
    color: #64748b;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 10px;
}

.service-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    background: #ffffff;
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.service-card:hover::before {
    opacity: 1;
}

/* Tarjeta destacada */
.service-card.featured {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.05), rgba(14, 165, 233, 0.03));
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.08);
}

.service-card.featured::before {
    opacity: 1;
}

.service-card.featured:hover {
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.25);
}

.service-badge-featured {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(14, 165, 233, 0.2));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: white;
    transform: rotate(-5deg) scale(1.1);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.service-card p {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.7;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: #475569;
}

.service-features li i {
    color: #00ff7f;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.service-card-footer {
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.service-btn {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.service-btn i {
    font-size: 0.8rem;
    transition: var(--transition);
}

.service-btn:hover {
    color: var(--secondary);
    gap: 14px;
}

/* Responsivo - Servicios */
@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 2rem;
    }
}

/* Sección de Portafolio */
.portfolio {
    background: #f8fafc;
    padding: 60px 5%;
}

.portfolio .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3.5rem auto;
}

.portfolio .section-title {
    text-align: center;
    color: var(--dark);
}

.portfolio .section-desc {
    text-align: center;
    color: #64748b;
}



.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.portfolio-card {
    display: block;
    text-decoration: none;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.portfolio-card.gradient-card {
    background: linear-gradient(135deg, #0f172a, #581c87);
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 2rem;
    border: none;
    position: relative;
    /* Efecto Neon Azul Marino/Morado */
    box-shadow: 0 15px 35px rgba(88, 28, 135, 0.3);
    filter: drop-shadow(0 0 10px rgba(15, 23, 42, 0.2));
}

.portfolio-card.gradient-card i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

.portfolio-card.gradient-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.portfolio-card:hover {
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.4);
}

.portfolio-card.gradient-card:hover {
    filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.6));
}

.inner-glass {
    width: 99%;
    height: 99%;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 0;
    position: relative;
    /* Necesario para el overlay */
}

.inner-glass img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    /* Hereda el redondeo del contenedor */
    transition: var(--transition);
}

.portfolio-card.gradient-card:hover .inner-glass {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}


.portfolio-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.portfolio-card:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    /* Fondo oscuro elegante */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    border-radius: inherit;
    padding: 2rem;
    text-align: center;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.overlay-content {
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-card:hover .overlay-content {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

.portfolio-overlay .portfolio-category {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.2rem;
    display: block;
    opacity: 0.9;
}

.portfolio-link {
    display: inline-block;
    padding: 5px 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.portfolio-link:hover {
    background: white;
    color: #0f172a;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}


/* Responsivo - Portafolio */
@media (max-width: 1100px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.testimonials {
    padding: 60px 5%;
    background: linear-gradient(rgba(6, 11, 25, 0.4), rgba(6, 11, 25, 0.4)), url('../../images/testimonios.webp');
    background-size: cover;
    background-position: center;
}

.testimonials .section-title {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.testimonials .section-desc {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    padding: 2.5rem;
    background: rgba(15, 23, 42, 0.4);
    /* Fondo oscuro traslúcido */
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    border: 1px solid #00e8fd;
    box-shadow: 0 0 20px rgba(0, 232, 253, 0.1),
        inset 0 0 15px rgba(0, 232, 253, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    background: rgba(15, 23, 42, 0.6);
    box-shadow: 0 15px 40px rgba(0, 232, 253, 0.25),
        0 0 30px rgba(0, 232, 253, 0.15);
    border-color: #00e8fd;
}

.testimonial-stars {
    color: #fbbf24;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.testimonial-text {
    color: rgba(248, 250, 252, 0.8);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-client {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #00e8fd, #6366f1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 0 15px rgba(0, 232, 253, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.client-info h3 {
    font-size: 1.1rem;
    color: var(--light);
    margin-bottom: 0.2rem;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 10rem;
    color: rgba(0, 232, 253, 0.25);
    /* Color más claro y brillante */
    font-family: serif;
    line-height: 1;
    filter: brightness(2);
}

.client-info span {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

/* Responsivo - Testimonios */
@media (max-width: 1100px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Sección de Contacto */
.contact {
    padding: 60px 5%;
    background: #f8fafc;
}

.contact .section-title {
    color: var(--dark);
}

.contact .section-desc {
    color: #64748b;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-subtitle {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.contact-desc-minimal {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 90%;
}

.contact-subtitle span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-details-minimal {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-detail {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.contact-detail i {
    font-size: 1.1rem;
    color: var(--primary);
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: rgba(24, 157, 234, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-detail-content h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.contact-detail-content p {
    font-size: 0.9rem;
    color: #1e293b;
    font-weight: 400;
    line-height: 1.5;
}

.contact-detail p a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.contact-detail p a:hover {
    color: var(--primary);
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.form-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.8rem;
}

.form-group select {
    padding: 0.85rem 1.2rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--dark);
    background: #f8fafc;
    outline: none;
    transition: var(--transition);
    -webkit-appearance: none;
    appearance: none;
    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='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    cursor: pointer;
}

.form-group select:focus {
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}

.form-security-note {
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    padding: 0.85rem 1.2rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--dark);
    background: #f8fafc;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.btn-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

/* Responsivo - Contacto */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-subtitle {
        font-size: 1.8rem;
    }

    .contact-desc-minimal {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
    }

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

@media (max-width: 480px) {
    .contact {
        padding: 40px 15px;
    }

    .contact-form {
        padding: 1.2rem;
        border-radius: 16px;
    }
}

/* Estilos del Footer */
.main-footer {
    background-color: var(--dark);
    padding: 50px 5%;
}

.footer-brand .logo {
    position: static;
    transform: none;
    margin-bottom: 25px;
    padding: 0;
}

.footer-brand .logo img {
    height: 55px;
}

.footer-desc {
    color: rgba(248, 250, 252, 0.6);
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 0.95rem;
    max-width: 500px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 1.1rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.footer-links h3,
.footer-contact h3 {
    color: var(--light);
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 18px;
    color: rgba(248, 250, 252, 0.6);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-links ul li a {
    color: rgba(248, 250, 252, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.footer-contact ul li i {
    color: var(--primary);
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: rgba(248, 250, 252, 0.5);
    font-size: 0.9rem;
}

.footer-bottom span {
    color: var(--primary);
    font-weight: 600;
}

/* Footer Responsivo */
@media (max-width: 1200px) {
    .footer-grid {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand .logo,
    .social-links {
        justify-content: center;
    }

    .footer-desc {
        max-width: 100%;
    }

    .footer-links ul li,
    .footer-contact ul li {
        justify-content: center;
    }
}

/* Componentes Compartidos */
.container {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    position: relative;
    padding-bottom: 15px;
}

.section-header .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 190px;
    height: 4px;
    background: linear-gradient(to right, #f59e0b, #fbbf24);
    border-radius: 10px;
}

.section-title span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    color: rgba(248, 250, 252, 0.7);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 3rem;
}

/* Sección Quiénes Somos */
.about {
    background-color: #ffffff;
    padding: 120px 5%;
}

.about .section-title {
    color: var(--dark);
}

.about .section-desc {
    color: #475569;
}

.about h3 {
    color: var(--dark);
}

.about .feature-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.about .feature-item:hover {
    background: #f1f5f9;
    border-color: rgba(99, 102, 241, 0.2);
}

.about .feature-item p {
    color: #64748b;
}

.about {
    padding: 60px 5%;
}

.about .experience-card {
    border: 1px solid #f1f5f9;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 30px;
    overflow: visible;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.about-image img {
    width: 100%;
    border-radius: 30px;
    /* Sombras Neon Elegantes */
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
    filter: drop-shadow(0 10px 15px rgba(15, 23, 42, 0.1)) drop-shadow(0 0 20px rgba(99, 102, 241, 0.3)) drop-shadow(0 0 40px rgba(14, 165, 233, 0.1));
    transition: var(--transition);
}

.about-image img:hover {
    filter: drop-shadow(0 15px 25px rgba(15, 23, 42, 0.15)) drop-shadow(0 0 30px rgba(99, 102, 241, 0.5)) drop-shadow(0 0 50px rgba(14, 165, 233, 0.2));
    transform: scale(1.02);
}

.experience-card {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: floatIcon 4s ease-in-out infinite;
    z-index: 5;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.experience-card .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.experience-card .text {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.feature-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.2);
}

.feature-item .icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.6);
    line-height: 1.5;
}

/* Extensiones Responsivas */
@media (max-width: 992px) {
    .about {
        padding: 80px 5%;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .experience-card {
        right: 0;
        bottom: -20px;
        padding: 1.5rem;
    }

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

/* Estilos del Widget de WhatsApp */
.whatsapp-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 2000;
}

.whatsapp-float {
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: var(--transition);
    animation: whatsappPulse 2s infinite;
    position: relative;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
}

.whatsapp-chat {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.whatsapp-chat.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: linear-gradient(135deg, #075e54 0%, #128c7e 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-avatar {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.chat-info h4 {
    color: white;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.chat-info span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
}

.chat-close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
}

.chat-close:hover {
    opacity: 1;
}

.chat-body {
    padding: 20px;
    background: #e5ddd5;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    min-height: 120px;
}

.chat-message {
    background: white;
    padding: 12px 15px;
    border-radius: 0 15px 15px 15px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    max-width: 90%;
}

.chat-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, white 50%, transparent 50%);
}

.chat-message p {
    margin: 0 0 5px;
    color: #111;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message-time {
    font-size: 0.7rem;
    color: #999;
    display: block;
    text-align: right;
}

.chat-footer {
    padding: 15px 20px;
    background: #f0f0f0;
    display: flex;
    justify-content: center;
}

.chat-send-btn {
    width: 100%;
    padding: 12px;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.chat-send-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3b30;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: badgeBounce 2s infinite;
}

@keyframes badgeBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

@media (max-width: 480px) {
    .whatsapp-widget {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-chat {
        width: 280px;
        bottom: 70px;
    }
}

/* Notificación Flash (Toast) */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--primary);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: white;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    max-width: 350px;
}

.toast.active {
    transform: translateX(0);
}

.toast-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toast-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--secondary);
}

.toast-message {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

@media (max-width: 480px) {
    .toast-container {
        right: 10px;
        left: 10px;
        top: 10px;
    }

    .toast {
        max-width: none;
    }
}
