/* ======================================================
    ESTILOS PARA index.html
   ====================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 3rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 20%, rgba(58, 90, 120, 0.14) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 107, 107, 0.14) 0%, transparent 50%);
    z-index: -1;
    animation: heroBackground 20s infinite alternate;
}

@keyframes heroBackground {
    0% {
        transform: scale(1) rotate(0deg);
    }

    100% {
        transform: scale(1.1) rotate(1deg);
    }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    transform-style: preserve-3d;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px) rotateY(10deg);
    }

    to {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
    }
}

.hero-title-accent {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    display: inline-block;
}

.hero-title-accent::after {
    content: '';
    position: absolute;
    bottom: 0em;
    left: 0;
    width: 100%;
    height: 0.1em;
    background-color: var(--text-primary);
    transform: scaleX(0);
    transform-origin: left;
    animation: accentReveal 1.5s ease forwards;
    animation-delay: 0.5s;
}

@keyframes accentReveal {
    to {
        transform: scaleX(1.05);
    }
}

.hero-h1 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.6;
    max-width: 600px;
    animation: fadeInUp 1.5s ease-out 0.3s both;
    position: relative;
    padding-left: 1rem;
}

.hero-h1::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-color);
    border-radius: 2px;
    box-shadow: 0 0 15px var(--accent-color);
}

.hero-h1::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    filter: blur(20px);
    opacity: 0.3;
    z-index: -1;
}

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

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

/* Elemento visual abstracto */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    animation: floatImage 8s ease-in-out infinite;
}

@keyframes floatImage {

    0%,
    100% {
        transform: translateY(0) perspective(1000px) rotateY(-5deg);
    }

    50% {
        transform: translateY(-8px) perspective(1000px) rotateY(-5deg);
    }
}

.visual-abstract {
    width: 400px;
    height: 400px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        repeating-linear-gradient(45deg, transparent 0px, transparent 20px, rgba(255, 255, 255, 0.04) 20px, rgba(255, 255, 255, 0.02) 40px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 7s infinite alternate ease-in-out;
    position: relative;
    box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-abstract img {
    opacity: 0.1;
    height: 50%;
    margin: auto;
}

.visual-abstract::before {
    content: '';
    position: absolute;
    inset: -20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 60%;
    animation: floatReverse 11s infinite alternate ease-in-out;
}

/* ======================================================
    SECCIÓN SOBRE NOSOTROS
   ====================================================== */
.about {
    background-color: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--text-primary), var(--accent-color), transparent);
    animation: scanLine 4.5s linear infinite;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    transform-style: preserve-3d;
}

.about-subtitle {
    color: var(--text-primary);
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-text p {
    color: var(--text-secondary);
}

.about-subtitle:first-child {
    margin-top: 0;
}
.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 720px;
    gap: 40px;
}

.about-timeline {
    max-width: 760px;
    margin: 0;
    position: relative;
}

.about-timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #ff6b6b, transparent);
}

.about-timeline .timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 34px;
    position: relative;
}

.about-timeline .timeline-item:last-child {
    margin-bottom: 0;
}

.about-timeline .timeline-number {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: 2px solid #ff6b6b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    color: #ff6b6b;
    position: relative;
    z-index: 2;
    flex: 0 0 40px;
    transition: all 0.2s ease;
}

.about-timeline .timeline-content {
    flex: 1;
    padding-bottom: 10px;
}

.about-timeline .timeline-content h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.about-timeline .timeline-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.1em;
    background: linear-gradient(to right, var(--text-primary), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease-in;
}

.about-timeline .timeline-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.about-timeline .timeline-item:hover .timeline-number {
    color: var(--text-primary);
    border-radius: 8px;
    transform: scale(1.12);
}

.about-timeline .timeline-item:hover .timeline-content h3::after {
    transform: scaleX(1.05);
}

.btn-about {
    text-decoration: none;
    border: solid 1px var(--text-tertiary);
    padding: 13px 40px;
    border-radius: 30px;
    width: fit-content;
    text-align: center;
    color: var(--text-primary);
    background: var(--bg-secondary);
    z-index: 3;
    position: relative;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-about:hover {
    border-radius: var(--border-radius);
    background-color: var(--bg-elevated);
    border-color: var(--accent-color);
}

.about-image {
    perspective: 1000px;
}

.about-placeholder {
    height: fit-content;
    width: fit-content;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform 0.5s ease;
    backdrop-filter: blur(10px);
    box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.5), -10px -10px 20px rgba(255, 255, 255, 0.02);
}

.about-placeholder:hover {
    transform: perspective(1000px) rotateY(-10deg) rotateX(-3deg) translateZ(20px);
}

.about-placeholder video {
    width: 400px;
    height: 350px;
    margin: 20px 20px 13px 20px;
    object-fit: cover;
    border-radius: var(--border-radius);
    pointer-events: none;
}

/* ======================================================
   SECCIÓN SERVICIOS
====================================================== */
.services {
    background: var(--bg-primary);
    position: relative;
    padding: 90px 0;
    overflow: hidden;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.services-grid-visual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin: 3.2rem 0 0;
}

/* ======================================================
   CARD BASE
====================================================== */
.service-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 340px;
    padding: 2rem;
    border-radius: 22px;
    background: #141414;
    border: 1px solid #262626;
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
    overflow: hidden;
    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.service-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.35s ease;
}

.service-visual::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

/* Glow/control visual por tarjeta */
.service-web::before {
    box-shadow:
        inset 0 0 0 1px rgba(255, 131, 131, 0.04),
        0 0 0 0 rgba(255, 131, 131, 0);
}

.service-ai::before {
    box-shadow:
        inset 0 0 0 1px rgba(70, 192, 230, 0.05),
        0 0 0 0 rgba(70, 192, 230, 0);
}

.service-visual:hover {
    transform: translateY(-8px);
}

.service-web:hover {
    border-color: rgba(255, 131, 131, 0.22);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.42),
        0 0 28px rgba(255, 131, 131, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.service-ai:hover {
    border-color: rgba(70, 192, 230, 0.24);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.42),
        0 0 28px rgba(70, 192, 230, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

/* Línea/acento superior */
.service-visual .service-accent-line {
    display: none;
}

.service-visual.service-web {
    background-image:
        linear-gradient(180deg, rgba(255, 131, 131, 0.025), transparent 22%);
}

.service-visual.service-ai {
    background-image:
        linear-gradient(180deg, rgba(70, 192, 230, 0.03), transparent 22%);
}

/* ======================================================
   ICONO
====================================================== */
.service-icon-large {
    width: 74px;
    height: 74px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: #191919;
    border: 1px solid #2a2a2a;
    box-shadow:
        0 10px 18px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        background 0.35s ease;
    position: relative;
    overflow: hidden;
}

.service-icon-large::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 1;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.service-web .service-icon-large::before {
    background: linear-gradient(135deg, rgba(255, 131, 131, 0.10), transparent 70%);
}

.service-ai .service-icon-large::before {
    background: linear-gradient(135deg, rgba(70, 192, 230, 0.12), transparent 70%);
}

.service-icon-large i {
    position: relative;
    z-index: 1;
    font-size: 1.95rem;
    color: var(--text-primary);
    transition:
        transform 0.35s ease,
        color 0.35s ease,
        text-shadow 0.35s ease;
}

.service-web .service-icon-large i {
    color: #ff9a9a;
    text-shadow: 0 0 14px rgba(255, 131, 131, 0.14);
}

.service-ai .service-icon-large i {
    color: rgb(102, 220, 255);
    text-shadow: 0 0 14px rgba(70, 192, 230, 0.16);
}

.service-web:hover .service-icon-large {
    border-color: rgba(255, 131, 131, 0.22);
    box-shadow:
        0 0 22px rgba(255, 131, 131, 0.08),
        0 10px 18px rgba(0, 0, 0, 0.24);
}

.service-ai:hover .service-icon-large {
    border-color: rgba(70, 192, 230, 0.24);
    box-shadow:
        0 0 22px rgba(70, 192, 230, 0.10),
        0 10px 18px rgba(0, 0, 0, 0.24);
}

.service-visual:hover .service-icon-large {
    transform: translateY(-2px) scale(1.03);
}

.service-visual:hover .service-icon-large::before {
    transform: scale(1.08);
}

.service-visual:hover .service-icon-large i {
    transform: scale(1.05);
}

/* ======================================================
   TÍTULO
====================================================== */
.service-visual h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.85rem 0;
    letter-spacing: -0.03em;
    line-height: 1.15;
    position: relative;
    display: inline-block;
    width: fit-content;
}

.service-visual h3::after {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 38px;
    height: 2px;
    border-radius: 999px;
    transition: width 0.35s ease, opacity 0.35s ease;
    opacity: 0.95;
}

.service-web h3::after {
    background: linear-gradient(90deg, rgba(255, 131, 131, 0.95), transparent);
}

.service-ai h3::after {
    background: linear-gradient(90deg, rgba(70, 192, 230, 0.95), transparent);
}

.service-visual:hover h3::after {
    width: 100%;
}

/* ======================================================
   TEXTO
====================================================== */
.service-visual p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 1.6rem 0;
    opacity: 0.9;
    max-width: 34ch;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.service-visual:hover p {
    color: #cfcfcf;
    opacity: 1;
}

/* ======================================================
   BOTÓN (VERSIÓN LLAMATIVA PRO)
====================================================== */
.service-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: auto;
    background: #181818;
    color: var(--text-primary);
    border: 1px solid #2e2e2e;
    padding: 0.82rem 1.2rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    overflow: hidden;

    transition:
        transform 0.5s ease,
        border-color 0.5s ease,
        box-shadow 0.5s ease,
        background 0.5s ease,
        color 0.5s ease;
}

/* 🔴 Glow base SIEMPRE activo */
.service-web .service-link-btn {
    border-color: rgba(255, 131, 131, 0.25);
    box-shadow: 0 0 12px rgba(255, 131, 131, 0.08);
}

.service-ai .service-link-btn {
    border-color: rgba(70, 192, 230, 0.25);
    box-shadow: 0 0 12px rgba(70, 192, 230, 0.10);
}

/* ✨ EFECTO SHINE (la clave) */
.service-link-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.35),
        transparent
    );
    transform: skewX(-20deg);
    transition: none;
}

/* se activa SOLO en hover */
.service-link-btn:hover::after {
    animation: shine 0.8s ease forwards;
}

@keyframes shine {
    0% {
        left: -120%;
    }
    100% {
        left: 140%;
    }
}

/* 🚀 Hover potente */
.service-link-btn:hover {
    transform: translateY(-3px) scale(1.04);
}

/* 👉 Flecha con vida */
.service-link-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.service-link-btn:hover i {
    transform: translateX(6px);
}

/* 🔥 Pulso suave continuo (muy sutil) */
@keyframes pulseGlowWeb {
    0%, 100% {
        box-shadow: 0 0 12px rgba(255, 131, 131, 0.08);
    }
    50% {
        box-shadow: 0 0 18px rgba(255, 131, 131, 0.14);
    }
}

@keyframes pulseGlowAI {
    0%, 100% {
        box-shadow: 0 0 12px rgba(70, 192, 230, 0.10);
    }
    50% {
        box-shadow: 0 0 20px rgba(70, 192, 230, 0.16);
    }
}

.service-web .service-link-btn {
    animation: pulseGlowWeb 2.8s ease-in-out infinite;
}

.service-ai .service-link-btn {
    animation: pulseGlowAI 2.8s ease-in-out infinite;
}

/* ======================================================
   RESPONSIVE
====================================================== */
@media (max-width: 992px) {
    .services-grid-visual {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-visual {
        min-height: unset;
    }
}

@media (max-width: 768px) {
    .services {
        padding: 75px 0;
    }

    .services-container {
        padding: 0 20px;
    }

    .services-grid-visual {
        margin-top: 2.5rem;
    }

    .service-visual {
        padding: 1.5rem;
        border-radius: 18px;
    }

    .service-icon-large {
        width: 66px;
        height: 66px;
        border-radius: 16px;
        margin-bottom: 1.2rem;
    }

    .service-icon-large i {
        font-size: 1.7rem;
    }

    .service-visual h3 {
        font-size: 1.55rem;
    }

    .service-visual p {
        font-size: 0.96rem;
        line-height: 1.65;
        margin-bottom: 1.35rem;
    }

    .service-link-btn {
        padding: 0.78rem 1.05rem;
        font-size: 0.93rem;
    }
}

/* ======================================================
    SECCIÓN CONTACTO
   ====================================================== */
.contact {
    background-color: var(--bg-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    perspective: 1000px;
}

.contact-info h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 400;
}

.contact-details {
    margin-top: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(30, 30, 30, 0.5);
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    backdrop-filter: blur(10px);
}

.contact-item:hover {
    transform: translateY(-2px) translateZ(4px);
    border-color: var(--text-primary);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(255, 255, 255, 0.08);
}



.contact-item i {
    font-size: 1.5rem;
    color: var(--text-primary);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease, color 0.3s ease;
}

/* EMAIL - Gmail */
.contact-email:hover i {
    color: rgb(80, 127, 197);
}

/* PHONE - Verde */
.contact-phone:hover i {
    color: #25D366;
}

/* LOCATION */
.contact-location:hover i {
    color: #b99621;
}

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: 0.3s ease;
}

.contact-item a:hover {
    color: var(--text-primary);
}

.contact-email:hover i {
    transform: rotateZ(-14deg);
}

.contact-phone:hover i {
    transform: rotateZ(23deg);
}

.contact-location:hover i {
    transform: translateY(-4px);
}

.contact-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 400;
}

.contact-item p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

.social-contact {
    padding: 30px;
    background: rgba(30, 30, 30, 0.5);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    transition:
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.6s ease,
        border-color 0.6s ease;
    border: 1px solid transparent;
}

.social-contact:hover {
    transform: translateY(-3px) translateZ(7px);
    border-color: var(--text-primary);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(255, 255, 255, 0.08);
}

/* LinkedIn */
.social-contact:hover .social-links a[href*="linkedin"] {
    color: #b4e1ff;
}

/* Instagram */
.social-contact:hover .social-links a[href*="instagram"] {
    color: #e654b5;
}

/* Twitter / X */
.social-contact:hover .social-links a[href*="x.com"],
.social-contact:hover .social-links a[href*="twitter"] {
    color: #1DA1F2;
}

.social-contact p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--text-primary);
    text-decoration: none;
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.4s ease
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: var(--text-primary);
}

/* FORMULARIO DE CONTACTO */
.contact.contact-hero {
    background-color: transparent;
    position: relative;
    overflow: hidden;
}

.contact.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(58, 90, 120, 0.14) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 107, 107, 0.03) 0%, transparent 50%);
    z-index: -1;
    animation: heroBackground 20s infinite alternate;
}

.contact-form-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95), rgba(18, 18, 18, 0.95));
    padding: 25px 30px 30px 30px;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    backdrop-filter: blur(20px);
    box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.5), -10px -10px 20px rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.form-title {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.contact-form-container:hover {
    border-color: #ff6b6b;
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.2);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
    background: rgba(0, 0, 0, 0.8);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-tertiary);
    font-weight: 300;
}

.contact-form .checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.contact-form .checkbox input {
    width: 18px;
    height: 18px;
    accent-color: #ff6b6b;
    margin: 0;
    flex-shrink: 0;
}

.contact-form .checkbox label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    margin: 0;
    line-height: 1.4;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #ff6b6b, #ff8a8a);
    color: #000;
    border: none;
    padding: 16px 24px;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 10px rgba(255, 107, 107, 0.15);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 15px rgba(255, 107, 107, 0.15);
    background: linear-gradient(135deg, #ff8a8a, #ff9f9f);
}

.btn-submit i {
    font-size: 1.2rem;
}

.form-status {
    display: none;
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 500;
    transform: translateY(10px);
    transition: all 0.4s ease;
    text-align: center;
    backdrop-filter: blur(10px);
}

.form-status.show {
    display: block;
    transform: translateY(0);
}

.form-status.success {
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.4);
    color: #2ecc71;
}

.form-status.error {
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.4);
    color: #ff6b6b;
}

/* ======================================================
    SECCIÓN LEGAL
   ====================================================== */
.legal {
    background-color: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    padding: 30px 0px;
}

.legal .section-header {
    margin: 0px 0px 30px;
}

.legal-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    perspective: 1000px;
}

.legal-card {
    background: var(--bg-elevated);
    border-radius: var(--border-radius);
    padding: 20px 25px 20px 15px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    flex: 1 1 300px;
    max-width: 360px;
}

.legal-card:hover {
    transform: perspective(1000px) rotateY(5deg) translateZ(10px);
    border-color: var(--text-primary);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.legal-card h3 {
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.25rem;
    transition: transform 0.5s ease;
    font-weight: 500;
}

.legal-card:hover h3 {
    transform: translateX(5px);
}

.legal-card h3 i {
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform 0.5s ease;
}

.legal-card:hover h3 i {
    transform: scale(1.1) rotate(5deg);
}

.legal-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: transform 0.2s ease, opacity 0.5s ease;
    opacity: 0.7;
}

.legal-card:hover .legal-link {
    transform: translateX(8px) rotate(90deg) scale(1.4);
    color: var(--accent-color);
    opacity: 1;
}

.legal-link:hover {
    gap: 15px;
    opacity: 1;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    100% {
        transform: translate(20px, -23px) scale(1.02) rotate(10deg);
    }
}

@keyframes floatReverse {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(-15px, 15px) rotate(-8deg);
    }
}

@keyframes heroBackground {
    0% {
        transform: scale(1) rotate(0deg);
    }

    100% {
        transform: scale(1.1) rotate(1deg);
    }
}
/* RESPONSIVE */
@media (max-width: 1200px) {
    .about-content {
        gap: 10px;
    }

    .legal-card {
        flex: 0 0 calc(50% - 25px);
        justify-content: center;
        max-width: calc(50% - 25px);
    }

    .legal-card h3 {
        font-size: 1.15rem;
    }

    .legal-card {
        flex: 0 0 calc(50% - 25px);
        max-width: calc(50% - 25px);
    }
}

@media (max-width: 1060px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .about-image,
    .about-placeholder {
        perspective: none;
    }

    .about-placeholder {
        transform: none !important;
        max-width: 500px;
        margin: 0 auto;
        padding: 10px;
        box-sizing: border-box;
    }

    .about-placeholder .placeholder-content {
        width: 100%;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        border-radius: var(--border-radius);
    }

    .about-placeholder:hover {
        transform: none !important;
    }

    .about-text {
        text-align: left;
        max-width: 760px;
        margin: 0 auto;
    }

    .about-placeholder video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: inherit;
        margin: 0;
        display: block;
    }

    .about {
        padding: 80px 0;
    }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-visual {
        order: -1;
    }

    .visual-abstract {
        width: 300px;
        height: 300px;
    }

    .hero-h1 {
        margin: 0 auto;
        margin-top: 2rem;
        padding-left: 0;
        padding-top: 1.2rem;
        font-weight: 200;
    }

    /* Línea horizontal centrada arriba */
    .hero-h1::before {
        left: 50%;
        top: 0;
        bottom: auto;
        transform: translateX(-50%);
        width: 50%; 
        height: 2px; 
        border-radius: 2px;
        background: var(--accent-color);
        box-shadow: 0 0 15px var(--accent-color);
    }

    .hero-h1::after {
        left: 50%;
        top: 0;
        transform: translate(-50%, -50%);
        width: 50%;
        height: 3px;
        filter: blur(40px);
        opacity: 0.75;
        background: var(--accent-color);
        z-index: -1;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-icon-large {
        width: 70px;
        height: 70px;
    }
    
    .service-icon-large i {
        font-size: 2.2rem;
    }
    
    .service-visual h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 798px) {
    .logos-grid {
        gap: 2rem;
    }

    .logo-card {
        font-size: 1rem;
    }

    .logo-card span {
        display: none;
    }

    .legal-content {
        gap: 14px;
    }

    .legal-card {
        flex: 0 0 100%;
        max-width: 500px;
        padding: 10px 25px 10px 15px;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .services-grid-visual {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .service-visual {
        align-items: center;
        text-align: center;
    }
    
    .service-visual h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .service-visual:hover h3::after {
        width: 60px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .btn-services-all {
        padding: 0.8rem 2rem;
        font-size: 0.95rem;
    }
}


@media (max-width: 768px) {
    .about-timeline .timeline-item {
        gap: 18px;
    }

    .about-timeline::before {
        left: 15px;
    }

    .about-timeline .timeline-number {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        font-size: 0.95rem;
    }
}
@media (max-width: 600px) {
    .form-group {
        margin-bottom: 16px;
    }

    .form-group-title {
        font-size: 0.92rem;
        margin-bottom: 0.45rem;
    }

    #contacto .container {
        padding: 0 25px;
    }

    .contact-item {
        padding: 10px;
        gap: 10px;
    }

    .social-contact {
        padding: 20px;
    }

    .contact-item i {
        font-size: 1.2rem;
        width: 40px;
        height: 40px;
    }
}

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

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

    .hero {
        min-height: 95vh;
        padding: 5.5rem 2rem 4rem;
    }

    .hero-container {
        gap: 3rem;
    }

    .about-placeholder {
        width: 100%;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .visual-abstract {
        width: 220px;
        height: 220px;
    }

    .btn-about {
        font-size: 1.1rem;
    }
}

@media (max-width: 465px) {
    .section-title {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .about-timeline .timeline-item {
        gap: 14px;
        margin-bottom: 24px;
    }

    .about-timeline .timeline-number {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 0.95rem;
    }

    .about-timeline::before {
        left: 17px;
    }

    .about-timeline .timeline-content h3 {
        font-size: 1.1rem;
    }

    .about-timeline .timeline-content p {
        font-size: 0.95rem;
    }

    .legal-card h3 {
        font-size: 1rem;
    }

    .legal-card h3 i {
        font-size: 1.2rem;
    }

    .legal-link {
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .hero-visual {
        margin-top: 45px;
    }
}

.closer-return-button {
  position: fixed;
  left: 17px;
  top: 120px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.92);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.closer-return-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 131, 131, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
}

.closer-return-button i {
  color: var(--accent-color, #ff8383);
}

@media (max-width: 998px) {
  .closer-return-button {
    top: 110px;
    padding: 6px 14px;
    font-size: 0.9rem;
  }
}

/* ======================================================
   SERVICES CARDS — SLIDE-IN ANIMATION
====================================================== */
.service-visual.slide-ready {
    will-change: transform, opacity;
    transition:
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        opacity    0.65s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s ease,
        box-shadow   0.35s ease;
}

.service-visual.slide-ready.slide-delay {
    transition-delay: 0.12s;
}

.service-visual.slide-ready.slide-off.slide-from-left  { transform: translateX(-70px); opacity: 0; }
.service-visual.slide-ready.slide-off.slide-from-right { transform: translateX(70px);  opacity: 0; }