/* ALEJANDRO CREATIVE STUDIO */

:root {
--lavanda: #B5A0ED;
--menta: #A5E8CF;
--gris: #A6A6B0;
--fondo: #111116;
--tarjetas: #1D1D25;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

html {
scroll-behavior: smooth;
}

body {
font-family: 'Segoe UI', Arial, sans-serif;
background: var(--fondo);
color: white;
line-height: 1.6;
}

header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 25px 8%;
border-bottom: 1px solid #333;
}

.logo {
font-size: 48px;
font-weight: 900;
color: var(--lavanda);
}

nav {
display: flex;
gap: 30px;
}

nav a {
color: white;
text-decoration: none;
font-size: 15px;
transition: 0.3s;
}

nav a:hover {
color: var(--menta);
}

.hero {
min-height: 85vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
padding: 80px 8%;
background: radial-gradient(
ellipse at top right,
#302540,
#111116 65%
);
}

.hero span {
color: var(--menta);
letter-spacing: 4px;
font-size: 14px;
font-weight: 600;
}

.hero h1 {
font-size: clamp(40px, 6vw, 85px);
line-height: 1.1;
max-width: 950px;
margin: 25px 0;
color: var(--lavanda);
}

.hero p {
font-size: 20px;
color: var(--gris);
max-width: 650px;
margin-bottom: 35px;
}

.boton {
display: inline-block;
background: var(--menta);
color: var(--fondo);
padding: 17px 30px;
border-radius: 8px;
text-decoration: none;
font-weight: bold;
transition: 0.3s;
}

.boton:hover {
background: var(--lavanda);
transform: translateY(-4px);
}

section {
padding: 90px 8%;
}

h2 {
font-size: 38px;
margin-bottom: 35px;
}

#servicios {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 25px;
}

#servicios h2 {
grid-column: 1 / -1;
}

article {
background: var(--tarjetas);
padding: 40px 30px;
border-radius: 16px;
border: 1px solid #333;
transition: 0.3s;
}

article:hover {
transform: translateY(-8px);
border-color: var(--lavanda);
}

article h3 {
color: var(--lavanda);
font-size: 25px;
margin-bottom: 15px;
}

article p {
color: var(--gris);
}

#portafolio {
background: #18181F;
}

#contacto {
text-align: center;
}

footer {
text-align: center;
padding: 30px;
color: var(--gris);
border-top: 1px solid #333;
}

/* Diseño para celulares */

@media (max-width: 768px) {

header {
flex-direction: column;
gap: 20px;
}

nav {
flex-wrap: wrap;
justify-content: center;
gap: 15px;
}

#servicios {
grid-template-columns: 1fr;
}

.hero {
min-height: 75vh;
}

h2 {
font-size: 30px;
}
}
/* EFECTOS VISUALES AVANZADOS */

.hero {
position: relative;
overflow: hidden;
isolation: isolate;
}

.hero::before {
content: "";
position: absolute;
inset: 0;
background-image:
linear-gradient(#ffffff08 1px, transparent 1px),
linear-gradient(90deg, #ffffff08 1px, transparent 1px);
background-size: 45px 45px;
z-index: -2;
}

.hero::after {
content: "";
position: absolute;
width: 380px;
height: 380px;
right: 6%;
top: 18%;
border-radius: 50%;
background: radial-gradient(
circle at 30% 25%,
#A5E8CF,
#B5A0ED 35%,
#503B80 60%,
#171222 90%
);
box-shadow:
0 0 80px #B5A0ED55,
0 0 150px #A5E8CF22,
inset -25px -25px 60px #111116;
animation: flotar 6s ease-in-out infinite;
z-index: -1;
}

.hero h1 {
max-width: 65%;
text-shadow: 0 0 40px #B5A0ED22;
}

.hero p {
max-width: 50%;
}

@keyframes flotar {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-25px);
}
}

@media (max-width: 768px) {
.hero::after {
width: 220px;
height: 220px;
right: -60px;
top: 10%;
opacity: 0.3;
}

.hero h1,
.hero p {
max-width: 100%;
}
}

@media (prefers-reduced-motion: reduce) {
.hero::after {
animation: none;
}
}

/* AJUSTE DE COMPOSICION VISUAL */

.hero {
position: relative;
min-height: 80vh;
padding: 70px 8%;
isolation: isolate;
}

.hero::before {
z-index: 0;
pointer-events: none;
}

.hero::after {
z-index: 1;
width: min(30vw, 380px);
height: auto;
aspect-ratio: 1;
top: 50%;
right: 7%;
animation: esfera 6s ease-in-out infinite;
pointer-events: none;
}

.hero > * {
position: relative;
z-index: 2;
}

.hero h1 {
font-size: clamp(36px, 4.5vw, 72px);
max-width: 58%;
}

.hero p {
max-width: 52%;
}

@keyframes esfera {
0%, 100% {
transform: translateY(-50%);
}
50% {
transform: translateY(-56%);
}
}

@media (max-width: 768px) {
.hero h1,
.hero p {
max-width: 100%;
}

.hero::after {
width: 220px;
right: -60px;
opacity: 0.2;
}
}

@media (prefers-reduced-motion: reduce) {
.hero::after {
animation: none;
transform: translateY(-50%);
}
}
/* IDENTIDAD VISUAL DEL LOGOTIPO */

.logo {
display: flex;
align-items: center;
gap: 12px;
}

.logo-icon {
width: 52px;
height: 52px;
}

.logo-text {
display: flex;
flex-direction: column;
line-height: 1.3;
}

.logo-text strong {
font-size: 21px;
letter-spacing: 3px;
color: white;
}

.logo-text small {
font-size: 10px;
letter-spacing: 4px;
color: var(--lavanda);
}

header {
position: sticky;
top: 0;
z-index: 100;
background: #111116ed;
backdrop-filter: blur(15px);
}

section {
scroll-margin-top: 160px;
}

/* SERVICIOS PROFESIONALES */

.titulo-seccion {
grid-column: 1 / -1;
margin-bottom: 20px;
}

.titulo-seccion span {
color: var(--menta);
font-size: 12px;
letter-spacing: 4px;
}

.titulo-seccion h2 {
margin-top: 15px;
font-size: clamp(32px, 4vw, 50px);
line-height: 1.2;
}

.servicio {
padding: 0;
overflow: hidden;
display: flex;
flex-direction: column;
}

.servicio img {
display: block;
width: 100%;
height: 240px;
object-fit: cover;
background: #302540;
transition: transform 0.5s;
}

.servicio:hover img {
transform: scale(1.05);
}

.servicio-info {
padding: 30px;
flex: 1;
}

.servicio-info span {
font-size: 12px;
letter-spacing: 2px;
color: var(--menta);
}

.servicio-info h3 {
margin-top: 15px;
}

.servicio-info p {
margin-bottom: 25px;
}

.servicio-info a {
color: var(--menta);
text-decoration: none;
font-weight: 600;
}

.servicio-info a:hover {
color: var(--lavanda);
}


/* NUEVA IDENTIDAD VISUAL CLARA */

:root {
--lavanda: #B5A0ED;
--menta: #A5E8CF;
--gris: #686875;
--fondo: #F2F3F5;
--tarjetas: #FFFFFF;
}

body {
background: var(--fondo);
color: #34343E;
}

header {
background: #F2F3F5F2;
border-bottom: 1px solid #DDDFE5;
}

.logo-text strong {
color: #34343E;
}

.logo-text small {
color: #80719F;
}

nav a {
color: #34343E;
}

nav a:hover {
color: #8065BE;
}

.hero {
background: linear-gradient(
120deg,
#F2F3F5,
#EDE6FA,
#DDF5EB
);
}

.hero::before {
background-image:
linear-gradient(#B5A0ED15 1px, transparent 1px),
linear-gradient(90deg, #B5A0ED15 1px, transparent 1px);
}

.hero::after {
background: radial-gradient(
circle at 30% 25%,
#E2FFF4,
#A5E8CF 30%,
#B5A0ED 65%,
#8C78C5
);

box-shadow:
0 20px 70px #B5A0ED55,
inset -15px -15px 40px #8C78C540;
}

.hero h1 {
color: #34343E;
text-shadow: none;
}

.hero span,
.titulo-seccion span,
.servicio-info span {
color: #518D7C;
}

.boton {
background: var(--menta);
color: #34343E;
}

#servicios {
background: #FFFFFF;
}

article {
background: #FFFFFF;
border: 1px solid #E1E2E8;
box-shadow: 0 10px 30px #34343E08;
}

article h3 {
color: #8065BE;
}

.servicio-info a {
color: #397B68;
}

.servicio img {
background: #E9E0FA;
}

#portafolio {
background: #EDE6FA;
}

#contacto {
background: #DDF5EB;
}

footer {
background: #F2F3F5;
border-top: 1px solid #DDDFE5;
}

/* HERO TECNOLOGICO */

.hero {
display: grid;
grid-template-columns: 1.1fr 0.9fr;
align-items: center;
gap: 40px;
min-height: 85vh;
position: relative;
overflow: hidden;
}

.hero-contenido {
position: relative;
z-index: 2;
}

.hero-visual {
position: relative;
height: 520px;
display: flex;
align-items: center;
justify-content: center;
}

/* Esfera principal */
.tech-orb {
width: 320px;
height: 320px;
border-radius: 50%;
background: radial-gradient(
circle at 30% 25%,
#E8FFF6,
#A5E8CF 28%,
#B5A0ED 65%,
#8B77C9 100%
);
box-shadow:
0 25px 60px rgba(181, 160, 237, 0.35),
0 0 0 12px rgba(255, 255, 255, 0.08),
inset -20px -20px 50px rgba(80, 64, 120, 0.22);
position: relative;
z-index: 2;
}

/* Anillo orbital */
.orbital-ring {
position: absolute;
width: 420px;
height: 160px;
border: 2px solid rgba(181, 160, 237, 0.45);
border-radius: 50%;
transform: rotate(-25deg);
z-index: 1;
box-shadow: 0 0 25px rgba(165, 232, 207, 0.18);
}

/* Tarjetas flotantes */
.glass-card {
position: absolute;
background: rgba(255, 255, 255, 0.34);
border: 1px solid rgba(255, 255, 255, 0.55);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
box-shadow: 0 14px 30px rgba(52, 52, 62, 0.10);
border-radius: 18px;
z-index: 3;
}

.card-top {
top: 40px;
right: 10px;
width: 170px;
padding: 18px;
}

.card-left {
left: 10px;
bottom: 120px;
width: 120px;
height: 90px;
display: flex;
align-items: center;
justify-content: center;
}

.card-bottom {
bottom: 45px;
right: 45px;
width: 180px;
padding: 18px;
}

/* Elementos de UI */
.mini-bar {
width: 100%;
height: 16px;
border-radius: 999px;
background: linear-gradient(90deg, #B5A0ED, #A5E8CF);
margin-bottom: 14px;
}

.mini-boxes {
display: flex;
gap: 10px;
}

.mini-boxes span {
width: 28px;
height: 28px;
border-radius: 8px;
background: linear-gradient(135deg, #EDE6FA, #CFF6E8);
display: inline-block;
}

.icon-code {
font-size: 28px;
font-weight: 700;
color: #6C59A8;
}

.mini-screen {
width: 100%;
height: 55px;
border-radius: 12px;
background: linear-gradient(135deg, #B5A0ED, #A5E8CF);
margin-bottom: 12px;
opacity: 0.9;
}

.mini-line {
width: 100%;
height: 10px;
border-radius: 999px;
background: rgba(108, 89, 168, 0.28);
margin-bottom: 8px;
}

.mini-line.short {
width: 70%;
}

/* Líneas decorativas suaves */
.hero-visual::before,
.hero-visual::after {
content: "";
position: absolute;
border-radius: 50%;
pointer-events: none;
}

.hero-visual::before {
width: 520px;
height: 520px;
border: 1px solid rgba(165, 232, 207, 0.25);
z-index: 0;
}

.hero-visual::after {
width: 460px;
height: 460px;
border: 1px dashed rgba(181, 160, 237, 0.18);
z-index: 0;
}

/* Responsive */
@media (max-width: 900px) {
.hero {
grid-template-columns: 1fr;
text-align: left;
}

.hero-visual {
height: 420px;
margin-top: 20px;
}

.tech-orb {
width: 240px;
height: 240px;
}

.orbital-ring {
width: 320px;
height: 120px;
}

.card-top {
width: 140px;
right: 20px;
}

.card-left {
width: 100px;
height: 75px;
left: 20px;
}

.card-bottom {
width: 150px;
right: 30px;
}
}


/* CORRECCION DEL HERO TECNOLOGICO */

/* Eliminar la esfera antigua */

.hero::after {
display: none !important;
}

/* Organizar las dos columnas */

.hero {
display: grid;
grid-template-columns: minmax(0, 1.1fr)
minmax(0, 0.9fr);
align-items: center;
gap: 30px;
padding: 60px 8%;
min-height: 80vh;
}

.hero-contenido {
width: 100%;
}

.hero-contenido h1 {
max-width: 100%;
font-size: clamp(32px, 4vw, 65px);
margin: 25px 0;
}

.hero-contenido p {
max-width: 100%;
}

.hero-visual {
width: 100%;
height: 450px;
min-width: 0;
margin: 0;
}

.tech-orb {
width: 75%;
max-width: 320px;
height: auto;
aspect-ratio: 1;
}

.orbital-ring {
width: 100%;
max-width: 420px;
}

.glass-card {
background: rgba(255, 255, 255, 0.75);
border: 1px solid white;
}

.card-top {
top: 25px;
right: 0;
}

.card-left {
left: 0;
bottom: 90px;
}

.card-bottom {
right: 0;
bottom: 25px;
}

/* Adaptacion para celulares */

@media (max-width: 768px) {
.hero {
grid-template-columns: 1fr;
}

.hero-visual {
height: 360px;
}

.tech-orb {
max-width: 240px;
}

.hero-visual::before,
.hero-visual::after {
width: 100%;
height: auto;
aspect-ratio: 1;
}
}

/* CORRECCION DEL TITULO DIGITAL */

.hero h1 span.destacado {
color: #8065BE !important;
font-size: inherit !important;
font-weight: inherit !important;
letter-spacing: inherit !important;
line-height: inherit !important;
}

/* ACABADO PREMIUM DE SERVICIOS */

#servicios {
background: #F7F7F9;
padding: 80px 5%;
gap: 25px;
}

.titulo-seccion {
margin-bottom: 10px;
}

.titulo-seccion h2 {
color: #34343E;
letter-spacing: -1.5px;
}

.servicio {
background: white;
border: 1px solid #E8E5EF;
border-radius: 22px;
box-shadow: 0 8px 25px rgba(52, 52, 62, 0.06);
transition: all 0.4s ease;
}

.servicio:hover {
transform: translateY(-10px);
box-shadow: 0 18px 40px rgba(128, 101, 190, 0.15);
border-color: #B5A0ED;
}

.servicio img {
height: auto;
aspect-ratio: 4 / 3;
object-fit: cover;
}

.servicio-info {
padding: 28px;
display: flex;
flex-direction: column;
}

.servicio-info span {
color: #8065BE;
font-weight: 600;
}

.servicio-info h3 {
color: #34343E;
font-size: 26px;
}

.servicio-info p {
color: #686875;
font-size: 16px;
flex-grow: 1;
}

.servicio-info a {
display: block;
background: #E4F6EF;
color: #397B68;
padding: 13px 18px;
border-radius: 10px;
text-align: center;
margin-top: auto;
transition: 0.3s;
}

.servicio-info a:hover {
background: #B5A0ED;
color: #34343E;
}

/* PORTAFOLIO PROFESIONAL */

#portafolio {
background: #F2F3F5;
padding: 90px 5%;
}

#portafolio .titulo-seccion {
text-align: center;
}

#portafolio .titulo-seccion p {
color: #686875;
font-size: 18px;
}

.filtros {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 12px;
margin: 35px 0 45px;
}

.filtro {
padding: 12px 24px;
border: 1px solid #DCD6E8;
border-radius: 30px;
background: white;
color: #34343E;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: 0.3s;
}

.filtro:hover,
.filtro.activo {
background: #B5A0ED;
border-color: #B5A0ED;
}

.proyectos {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 25px;
}

.proyecto {
background: white;
border-radius: 20px;
overflow: hidden;
box-shadow: 0 8px 25px #34343E0D;
transition: 0.4s;
}

.proyecto:hover {
transform: translateY(-8px);
box-shadow: 0 18px 35px #8065BE22;
}

.proyecto img {
display: block;
width: 100%;
aspect-ratio: 4 / 3;
object-fit: cover;
background: #E9E0FA;
}

.proyecto-info {
padding: 25px;
}

.proyecto-info span {
color: #8065BE;
font-size: 12px;
letter-spacing: 2px;
font-weight: 600;
}

.proyecto-info h3 {
color: #34343E;
font-size: 23px;
margin-top: 10px;
}

.proyecto-info p {
color: #686875;
font-size: 14px;
margin-top: 8px;
}

.proyecto[hidden] {
display: none;
}

@media (max-width: 900px) {
.proyectos {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}

@media (max-width: 600px) {
.proyectos {
grid-template-columns: 1fr;
}
}
/* PORTAFOLIO INTERACTIVO */

.proyecto {
overflow: hidden;
transition: box-shadow 0.3s ease;
}

.proyecto:hover {
box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.proyecto img {
cursor: zoom-in;
transition: transform 0.4s ease;
}

.proyecto img:hover {
transform: scale(1.05);
}

/* VISOR DE IMÁGENES */

.visor-proyecto {
position: fixed;
inset: 0;
margin: auto;
padding: 0;
border: none;
border-radius: 16px;
background: transparent;
max-width: 90vw;
max-height: 90vh;
overflow: hidden;
}

.visor-proyecto[open] {
animation: aparecerVisor 0.3s ease;
}

.visor-proyecto::backdrop {
background: rgba(10, 12, 20, 0.9);
backdrop-filter: blur(8px);
}

.visor-proyecto img {
display: block;
max-width: 90vw;
max-height: 85vh;
width: auto;
height: auto;
object-fit: contain;
border-radius: 16px;
}

.cerrar-visor {
position: absolute;
top: 12px;
right: 12px;
width: 42px;
height: 42px;
border: none;
border-radius: 50%;
background: white;
color: #222;
font-size: 28px;
cursor: pointer;
z-index: 10;

}

.cerrar-visor:hover {
    background: #A5E8CF;
}

.proyecto[hidden] {
    display: none !important;
}

@keyframes aparecerVisor {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* SECCION DE CONTACTO */

#contacto {
    background: #F5F2FC;
    padding: 80px 20px;
    text-align: center;
}

.contacto-contenedor {
    max-width: 700px;
    margin: 0 auto;
}

.contacto-etiqueta {
    color: #8E79C5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}


#contacto h2 {
font-size: 38px;
color: #252535;
margin: 18px 0;
}

#contacto p {
color: #6B7280;
line-height: 1.6;
}

#formulario-contacto {
display: flex;
flex-direction: column;
gap: 12px;
background: #FFFFFF;
padding: 35px;
margin-top: 35px;
border-radius: 20px;
text-align: left;
box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

#formulario-contacto label {
font-size: 14px;
font-weight: 600;
color: #343444;
}

#formulario-contacto input,
#formulario-contacto select,
#formulario-contacto textarea {
width: 100%;
box-sizing: border-box;
padding: 15px;
border: 1px solid #DEDDE5;
border-radius: 10px;
background: #FAFAFC;
font-family: inherit;
font-size: 15px;
outline: none;
transition: border-color 0.3s ease;
}

#formulario-contacto input:focus,
#formulario-contacto select:focus,
#formulario-contacto textarea:focus {
border-color: #A58DED;
}

#formulario-contacto textarea {
resize: vertical;
}

.btn-cotizacion {
background: #A58DED;
color: #FFFFFF;
border: none;
border-radius: 10px;
padding: 17px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
margin-top: 15px;
transition: all 0.3s ease;
}

.btn-cotizacion:hover {
background: #A5E8CF;
color: #252535;
transform: translateY(-3px);
}

.contacto-ubicacion {
margin-top: 25px;
font-size: 14px;
}

@media (max-width: 600px) {
#contacto h2 {
font-size: 28px;
}

#formulario-contacto {
padding: 22px;
}
}

/* ===== MENÚ RESPONSIVE ===== */

.menu-toggle {
display: none;
background: transparent;
border: none;
cursor: pointer;
padding: 8px;
}

.menu-toggle span {
display: block;
width: 28px;
height: 3px;
margin: 5px 0;
background: #b8a4f4;
border-radius: 3px;
}

@media (max-width: 768px) {

header {
position: sticky;
top: 0;
z-index: 1000;
}

.menu-toggle {
display: block;
}

#nav-menu {
display: none;
position: absolute;
top: 100%;
left: 0;
width: 100%;
background: #14141d;
flex-direction: column;
padding: 25px;
gap: 20px;
box-sizing: border-box;
}

#nav-menu.active {
display: flex;
}

#nav-menu a {
color: white;
font-size: 16px;
text-decoration: none;
}
}


/* ===== MENÚ RESPONSIVE ===== */

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 5px 0;
    background: #b8a4f4;
    border-radius: 3px;
}

@media (max-width: 768px) {

    header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .menu-toggle {
        display: block;
    }

    #nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #14141d;
        flex-direction: column;
        padding: 25px;
        gap: 20px;
        box-sizing: border-box;
    }

    #nav-menu.active {
        display: flex;
    }

    #nav-menu a {
        color: white;
        text-decoration: none;
    }
}


/* ===== CABECERA MÓVIL MEJORADA ===== */

@media (max-width: 768px) {

    header {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        padding: 15px 5%;
        gap: 12px;
    }

    .logo {
        display: flex;
        align-items: center;
        width: auto;
        min-width: 0;
    }

    .logo img {
        max-width: 210px;
        width: 100%;
        height: auto;
    }

    .menu-toggle {
        flex-shrink: 0;
        margin: 0;
    }

    #nav-menu {
        background: #ffffff;
        padding: 20px;
        gap: 15px;
        border-radius: 0 0 18px 18px;
        box-shadow: 0 12px 25px rgba(0,0,0,0.08);
    }

    #nav-menu a {
        color: #30303b;
        padding: 12px;
        width: 100%;
        box-sizing: border-box;
        border-radius: 8px;
    }

    #nav-menu a:hover {
        background: #eee8fa;
    }

    #nav-menu a:last-child {
        background: #def3eb;
        color: #326e60;
        text-align: center;
    }

    .menu-toggle span {
        transition: transform 0.3s, opacity 0.3s;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}


/* ===== WHATSAPP FLOTANTE ===== */

.whatsapp-flotante {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 2000;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.35);
    transition: transform 0.3s, background 0.3s;
}

.whatsapp-flotante:hover {
    transform: scale(1.1);
    background: #20ba5a;
}

.whatsapp-texto {
    position: absolute;
    right: 75px;
    white-space: nowrap;
    background: #ffffff;
    color: #30303b;
    font-size: 13px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.whatsapp-flotante:hover .whatsapp-texto {
    opacity: 1;
    visibility: visible;
}

/* Adaptación para celulares */

@media (max-width: 768px) {

    .whatsapp-flotante {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .whatsapp-texto {
        display: none;
    }
}

/* ===== SELECTOR DE IDIOMAS ===== */

.language-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: #f0edf6;
    border-radius: 30px;
    flex-shrink: 0;
}

.lang-btn {
    border: none;
    background: transparent;
    color: #666675;
    padding: 8px 12px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.lang-btn:hover {
    background: #dff3eb;
}

.lang-btn.active {
    background: #b8a4f4;
    color: #ffffff;
}

@media (max-width: 768px) {

    .language-switch {
        gap: 2px;
        padding: 3px;
    }

    .lang-btn {
        padding: 6px 9px;
        font-size: 11px;
    }
}


/* ===== CORRECCIÓN DEL TÍTULO BILINGÜE ===== */

.hero .hero-contenido h1 span[data-i18n] {
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    text-transform: none !important;
    color: #30303b !important;
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hero .hero-contenido h1 span.destacado {
    color: #9676cf !important;
}

/* ===== FOOTER PROFESIONAL ===== */

.footer {
    background: #252530;
    color: #d3d3dc;
    padding: 65px 8% 25px;
    text-align: left;
}

.footer-contenedor {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 40px;
}

.footer-marca h3 {
    color: #ffffff;
    font-size: 26px;
    letter-spacing: 4px;
    margin: 0;
}

.footer-marca span {
    color: #b8a4f4;
    font-size: 12px;
    letter-spacing: 4px;
}

.footer-marca p {
    margin-top: 22px;
    font-size: 14px;
    line-height: 1.8;
    color: #bcbcc8;
}

.footer-columna {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.footer-columna h4 {
    color: #b8a4f4;
    font-size: 16px;
    margin: 0 0 8px;
}

.footer-columna a,
.footer-columna p {
    color: #d3d3dc;
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none;
    margin: 0;
    transition: color 0.3s;
}

.footer-columna a:hover {
    color: #a5ddcb;
}

.footer-columna .footer-whatsapp {
    color: #a5ddcb;
    border: 1px solid #a5ddcb;
    padding: 10px 20px;
    border-radius: 8px;
    margin-top: 5px;
}

.footer-columna .footer-whatsapp:hover {
    background: #a5ddcb;
    color: #252530;
}

.footer-inferior {
    max-width: 1400px;
    margin: 45px auto 0;
    padding-top: 25px;
    border-top: 1px solid #484854;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-inferior p {
    color: #bcbcc8;
    font-size: 12px;
    margin: 0;
}

/* FOOTER PARA TABLETS */

@media (max-width: 1024px) {

    .footer-contenedor {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* FOOTER PARA CELULARES */

@media (max-width: 600px) {

    .footer {
        padding: 45px 6% 85px;
    }

    .footer-contenedor {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 20px;
    }

    .footer-marca {
        grid-column: 1 / -1;
    }

    .footer-columna:last-child {
        grid-column: 1 / -1;
    }

    .footer-inferior {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

}

/* ===== PORTADA TECNOLÓGICA ANIMADA ===== */

/* Esfera flotante */

.tech-orb {
    animation: orbFlotante 6s ease-in-out infinite;
}

@keyframes orbFlotante {

    0%, 100% {
        transform: translateY(0) scale(1);
        filter: hue-rotate(0deg);
    }

    50% {
        transform: translateY(-15px) scale(1.05);
        filter: hue-rotate(20deg);
    }
}


/* Movimiento orbital */

.orbital-ring {
    animation: anilloGiratorio 18s linear infinite;
}

@keyframes anilloGiratorio {

    from {
        transform: rotate(-35deg);
    }

    to {
        transform: rotate(325deg);
    }
}


/* Tarjetas flotantes independientes */

.card-top {
    animation: tarjetaFlotante 4s ease-in-out infinite;
}

.card-left {
    animation: tarjetaFlotante 5s ease-in-out infinite;
    animation-delay: -1.5s;
}

.card-bottom {
    animation: tarjetaFlotante 6s ease-in-out infinite;
    animation-delay: -3s;
}

@keyframes tarjetaFlotante {

    0%, 100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -14px;
    }
}


/* Degradados en movimiento */

.mini-bar,
.mini-screen {
    background: linear-gradient(
        120deg,
        #b8a4f4,
        #a5e5ce,
        #b8a4f4
    );

    background-size: 200% 200%;

    animation: degradadoAnimado 5s linear infinite;
}

@keyframes degradadoAnimado {

    from {
        background-position: 0% 50%;
    }

    to {
        background-position: 200% 50%;
    }
}


/* Icono de programación iluminado */

.icon-code {
    animation: codigoBrillante 3s ease-in-out infinite;
}

@keyframes codigoBrillante {

    0%, 100% {
        text-shadow: 0 0 0 transparent;
    }

    50% {
        text-shadow: 0 0 18px #b8a4f4;
    }
}


/* Accesibilidad */

@media (prefers-reduced-motion: reduce) {

    .tech-orb,
    .orbital-ring,
    .card-top,
    .card-left,
    .card-bottom,
    .mini-bar,
    .mini-screen,
    .icon-code {
        animation: none !important;
    }
}

/* ===== OPTIMIZACION DE ACCESIBILIDAD ===== */

/* Texto pequeño del logotipo */

.logo-text small {
    color: #655181;
}

/* Selector de idiomas */

.lang-btn {
    color: #494954;
}

.lang-btn.active {
    background: #b8a4f4;
    color: #30243f;
}

/* Etiquetas de las secciones */

.titulo-seccion span {
    color: #326b5a;
}

.servicio-info span,
.proyecto-info span {
    color: #684da3;
}

/* Botones de servicios */

.servicio-info a {
    color: #285b4c;
}

.servicio-info a:hover {
    color: #252535;
}

/* Seccion de contacto */

.contacto-etiqueta {
    color: #684da3;
}

#contacto p,
#contacto .contacto-ubicacion {
    color: #51515e;
}

/* Boton de cotizacion */

.btn-cotizacion {
    background: #A58DED;
    color: #252535;
}

.btn-cotizacion:hover {
    background: #A5E8CF;
    color: #252535;
}

/* Accesibilidad mediante teclado */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #684da3;
    outline-offset: 4px;
}
