/* ======================================== */
/* ----------- VARIABLES GLOBALES --------- */
/* ======================================== */
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("fonts/poppins-300-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/poppins-400-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/poppins-600-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("fonts/poppins-800-latin.woff2") format("woff2");
}

:root {
    --negro: #000;
    --blanco: #fff;
    --rojo: #f00;
    --azul: #0ff;
    --verde-alfa: rgba(0, 255, 0, 0.3);
    --borde: #4f5a79;
    --margen-seccion: 250px;
    --font: "Poppins", sans-serif;

    --shadow-azul: 0 0 10px 10px var(--azul);
    --shadow-rojo: 0 0 10px 10px var(--rojo);
    --shadow-rojo-small: 0 0 5px 5px var(--rojo);
    --shadow-borde: 0 0 10px 10px var(--borde);
}

/* ======================================== */
/* ----------------- BODY ----------------- */
/* ======================================== */
body {
    font-family: var(--font);
    padding-top: 90px;
    background: url(img/bg_contacto.jpg) no-repeat fixed center/cover;
}

#AnclaNosotros,
#AnclaWeb,
#AnclaPc,
#AnclaAndroid,
#AnclaContacto {
    scroll-margin-top: 100px;
}

#logo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#img_logo {
    display: block;
    margin: 0 auto;
    max-width: 400px;
}


/* ======================================== */
/* --------------- SECCIONES -------------- */
/* ======================================== */
section {
    width: 95%;
    margin: auto;
    padding-bottom: 20px;
    border-radius: 50px;
    box-shadow: var(--shadow-borde);
    overflow: hidden;
}

#nosotros,
#Webs,
#pc,
#android_herramientas,
#android_2d,
#android_3d,
#contacto {
    margin-bottom: var(--margen-seccion);
}

#nosotros { background: rgba(255,0,0,0.25); }
#Webs { background: rgba(0,255,255,0.3); }
#pc { background: rgba(0,255,0,0.3); }
#android_herramientas,
#android_2d,
#android_3d { background: rgba(255,141,0,0.3); }
#contacto { background: rgba(0,0,255,0.3); }

/* ======================================== */
/* ------------- CONTENEDORES ------------- */
/* ======================================== */
.contenedor {
    width: 95%;
    display: flex;
    justify-content: center;
    margin: auto;
    flex-wrap: wrap;
}

.contenedor2 {
    width: 90%;
    margin: auto;
    margin-bottom: 30px;
    background: rgba(0,0,0,0.7);
    box-shadow: var(--shadow-borde);
}


/* ======================================== */
/* --------------- CABECERAS -------------- */
/* ======================================== */
.tx_cabecera {
    text-align: center;
    font-size: 40px;
    font-weight: bold;
    color: var(--negro);
    text-shadow: 0 0 10px var(--rojo);
    -webkit-text-fill-color: var(--rojo);
    -webkit-text-stroke: 1px var(--negro);
}

#nosotros_cabecera,
#webs_cabecera,
#pc_cabecera,
#android_cabecera,
#contacto_cabecera {
    visibility: hidden;
    border-radius: 30px;
}

/* ======================================== */
/* ----------------- TEXTOS --------------- */
/* ======================================== */
a { color: var(--azul); cursor: pointer; }

p {
    text-align: center;
    color: var(--azul);
    font-size: 30px;
}

h2 {
    text-align: center;
    font-size: 25px;
    text-shadow: 0 0 10px var(--rojo);
    -webkit-text-fill-color: var(--blanco);
}

h3 {
    text-align: center;
    font-size: 30px;
    text-shadow: 0 0 10px var(--rojo);
    -webkit-text-fill-color: var(--rojo);
    -webkit-text-stroke: 1px var(--negro);
}

h4 {
    text-align: center;
    font-size: 20px;
    text-shadow: 0 0 10px var(--azul);
    -webkit-text-fill-color: var(--azul);
    -webkit-text-stroke: 1px var(--negro);
}


/* ======================================== */
/* --------------- IMAGENES --------------- */
/* ======================================== */
.img_circulo {
    width: 80%;
    margin: 40px auto 0;
    display: block;
    border-radius: 50%;
    box-shadow: var(--shadow-rojo);
}

.img_mas_info {
    width: 60%;
    margin: 20px auto 0;
    display: block;
    border-radius: 1%;
    box-shadow: var(--shadow-rojo-small);
}

.ico {
    width: 60%;
    border: 2px solid var(--rojo);
    border-radius: 20px;
    transition: box-shadow 0.3s ease;
}

.ico:hover { box-shadow: 0 0 30px 30px var(--azul); }


/* ======================================== */
/* ------------- ARTICLES 3D -------------- */
/* ======================================== */
article {
    visibility: hidden;
    width: 70%;
    max-width: 400px;
    margin: 50px auto;
    padding: 10px;
    background: rgba(0,0,0,0.5);
    border: 4px solid var(--negro);
    border-radius: 200px 200px 60px 60px;
    box-shadow: var(--shadow-azul);
}

.card {
    width: 90%;
    max-width: 400px;
    height: 500px;
    margin: 40px auto;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 1s;
}

.card.flipped .card-inner { transform: rotateY(180deg); }

.card-front,
.card-back {
    position: absolute;
    background: transparent;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    padding: 10px;
    border-radius: 10px;
}

.card-front { transform: rotateY(0deg); }

.card-back { transform: rotateY(180deg); }



/* ======================================== */
/* --------------- CONTACTO --------------- */
/* ======================================== */
input[type=text],
textarea {
    width: 80%;
    margin: 0 5% 10px;
    padding: 20px;
    font-size: 20px;
    border: 3px solid var(--negro);
    border-radius: 20px;
    box-shadow: var(--shadow-borde);
}

input:focus,
textarea:focus { background-color: #F3F781; }

textarea { height: 100px; }

#contacto input[type="submit"] {
    width: 50%;
    margin: 20px auto 0;
    padding: 15px 20px;
    font-size: 20px;
    font-weight: bold;
    background: var(--azul);
    color: var(--negro);
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 0 12px var(--borde);
    transition: all 0.3s ease;
    display: block;
}

#contacto input[type="submit"]:hover {
    background: var(--verde-alfa);
    color: var(--blanco);
    box-shadow: 0 0 20px var(--shadow-azul);
}


/* ======================================== */
/* -------- Animaciones necesarias -------- */
/* ======================================== */
.fadeIn {
    animation: fadeIn 1.5s ease-in-out;
    visibility: visible !important;
}
@keyframes fadeIn {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.1); }
    80% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.slideLeft,
.slideRight {
    animation-duration: 1s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
    visibility: visible !important;
}

@keyframes slideLeft {
    0% { transform: translateX(150%); }
    50% { transform: translateX(-8%); }
    65% { transform: translateX(4%); }
    80% { transform: translateX(-4%); }
    95% { transform: translateX(2%); }
    100% { transform: translateX(0); }
}
.slideLeft {  animation-name: slideLeft; }

@keyframes slideRight {
    0% { transform: translateX(-150%); }
    50% { transform: translateX(8%); }
    65% { transform: translateX(-4%); }
    80% { transform: translateX(4%); }
    95% { transform: translateX(-2%); }
    100% { transform: translateX(0); }
}
.slideRight { animation-name: slideRight; }

.slideUp {
    animation: slideUp 1s ease;
    visibility: visible !important;
}
@keyframes slideUp {
    0% { transform: translateY(100%); }
    50% { transform: translateY(-8%); }
    100% { transform: translateY(0); }
}

.slideExpandUp {
    animation: slideExpandUp 1.6s ease-out;
    visibility: visible !important;
}
@keyframes slideExpandUp {
    0% { transform: translateY(100%) scaleX(0.5); }
    50% { transform: translateY(0) scaleX(1.1); }
    100% { transform: translateY(0) scaleX(1); }
}


/* ======================================== */
/* ---------------- Header ---------------- */
/* ======================================== */
header {
    position: fixed;
    width: 100%;
    margin-left: -10px;
    top: 0;
    z-index: 100;
    background: linear-gradient(0deg, #000 0%, #131313 10%, #404141 50%, #131313 90%, #000 100%);
    box-shadow: 0 0 15px var(--azul);
}

#bar1, #bar2, #bar3 {
    width: 50px;
    height: 10px;
    background-color: var(--azul);
    margin: 10px -10px;
    transition: transform 0.4s ease, opacity 0.4s ease;
    border-radius: 5px;
}

.cabecera_menu {
    width: 100%;
    justify-content: center;
    margin: auto;
}

#menu_inicio { color: red; }

#logo_texto {
    float: left;
    padding: 10px;
    width: 200px;
    height: 50px;
    visibility: hidden;
}

.control-menu {
    float: right;
    height: 50px;
    width: 50px;
}

.menu-items {
    clear: both;
    margin: 0;
    padding: 0;
    height: 0;
    width: 100%;
    overflow: hidden;
    transition: height 0.4s ease-in-out, background-color 1s ease;
    text-align: center;
}

.menu-items a {
    display: block;
    font-size: 30px;
    color: var(--azul);
    height: 60px;
    line-height: 60px;
}

.menu-items a:hover { background: rgba(255, 255, 255, 0.3); }

.menu_horizontal { display: none; }


/* ======================================== */
/* ------------- QUERYS + 1024 ------------ */
/* ======================================== */
@media (min-width: 1024px) {
    body { padding-top: 120px; }

    .cabecera_menu { width: 95%; }

    #logo_texto {
        width: 400px;
        height: 100px;
    }

    #menu_vertical { display: none; }

    .menu_horizontal {
        position: static;
        width: auto;
        height: auto;
        float: right;
        display: flex;
        visibility: hidden;
    }

    .menu_horizontal a {
        color: var(--azul);
        padding: 0 10px 10px;
        font-size: 20px;
        margin-left: 20px;
        margin-top: 25px;
    }

    .menu_horizontal a:hover {
        box-shadow: 0 0 10px 10px var(--azul);
        border-radius: 20px;
    }

    #AnclaNosotros {
        margin-top: 25px;
        scroll-margin-top: 150px;
    }

    #logo { width: 1024px; }
    #img_logo { width: 40%; }

    section { width: 1200px; }
    .contenedor2 { width: 900px; }

    .tx_cabecera { font-size: 80px; }
    h3 { font-size: 50px; }
    h4 { font-size: 35px; }
    p { font-size: 35px; }

    article {
        width: 90%;
        margin: 30px;
        border-radius: 150px 150px 40px 40px;
    }

    .img_circulo,
    .img_mas_info {
        width: 60%;
        margin-top: 20px;
    }

    .ico { width: 200px; }

    #contacto .contenedor {
        flex-direction: column;
        align-items: center;
    }
}

/* ======================================== */
/* --------- Acabado visual y responsive --- */
/* ======================================== */
:root {
    --negro: #070b12;
    --blanco: #f2f7fb;
    --rojo: #ff4d61;
    --azul: #56e6f4;
    --borde: rgba(86, 230, 244, .24);
    --margen-seccion: clamp(72px, 10vw, 140px);
    --shadow-azul: 0 0 24px rgba(86, 230, 244, .16);
    --shadow-rojo: 0 0 24px rgba(255, 77, 97, .22);
    --shadow-rojo-small: 0 0 16px rgba(255, 77, 97, .2);
    --shadow-borde: 0 14px 48px rgba(0, 0, 0, .28);
}

html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
img { height: auto; }
body {
    margin: 0;
    padding-top: 76px;
    color: var(--blanco);
    background: linear-gradient(rgba(5, 9, 16, .48), rgba(5, 9, 16, .62)), url(img/bg_contacto.jpg) no-repeat fixed center/cover;
    line-height: 1.65;
}
header {
    margin: 0;
    background: rgba(7, 11, 18, .94);
    border-bottom: 1px solid rgba(86, 230, 244, .18);
    box-shadow: 0 8px 30px rgba(0,0,0,.28);
    backdrop-filter: blur(12px);
}
.cabecera_menu { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { display: inline-flex; align-items: center; }
#logo_texto { float: none; width: 175px; height: auto; padding: 8px; object-fit: contain; }
.control-menu { float: none; border: 0; color: inherit; background: transparent; cursor: pointer; }
#bar1, #bar2, #bar3 { width: 34px; height: 3px; margin: 7px 0; }
.menu-items { background: rgba(7,11,18,.98); }
.menu-items a, .menu_horizontal a { color: #d9faff; text-decoration: none; font-weight: 600; }
.menu-items a { font-size: 18px; height: 48px; line-height: 48px; }
.menu_horizontal a { padding: 8px 12px; font-size: 15px; margin: 0 0 0 8px; border-radius: 8px; }
.menu_horizontal a:hover, .menu-items a:hover { color: var(--azul); background: rgba(86,230,244,.09); box-shadow: none; }
#menu_vertical { position: static; flex: 0 0 50px; width: 50px; height: 50px; margin-left: auto; }
.control-menu { position: relative; display: block; width: 50px; height: 50px; padding: 0; }
#bar1, #bar2, #bar3 { position: absolute; left: 8px; width: 34px; height: 3px; margin: 0; }
#bar1 { top: 13px; }
#bar2 { top: 23px; }
#bar3 { top: 33px; }
.menu-items { position: fixed; top: 76px; left: 0; z-index: 101; width: 100vw; height: 0; }
.menu-items a { height: 50px; line-height: 50px; }

section {
    width: min(92%, 1120px);
    padding: clamp(22px, 4vw, 52px);
    border: 1px solid rgba(86,230,244,.22);
    border-radius: 22px;
    box-shadow: var(--shadow-borde), 0 0 22px rgba(86,230,244,.12), inset 0 0 0 1px rgba(86,230,244,.06);
    transition: border-color .25s ease, box-shadow .25s ease;
    backdrop-filter: blur(8px);
}
#nosotros { margin-top: 34px; background: linear-gradient(135deg, rgba(15,28,43,.62), rgba(15,16,30,.66)); }
#Webs { background: linear-gradient(135deg, rgba(8,38,48,.58), rgba(12,20,32,.68)); }
#pc { background: linear-gradient(135deg, rgba(15,40,34,.58), rgba(12,20,32,.68)); }
#android_herramientas, #android_2d, #android_3d { background: linear-gradient(135deg, rgba(52,35,16,.56), rgba(12,20,32,.68)); }
#contacto { background: linear-gradient(135deg, rgba(18,27,58,.62), rgba(12,20,32,.70)); }
.contenedor { width: 100%; gap: 8px; }
.contenedor2 { width: min(90%, 940px); margin-top: 0; margin-bottom: 20px; border: 1px solid rgba(86,230,244,.38); border-radius: 14px; background: rgba(5,9,16,.78); box-shadow: 0 10px 30px rgba(0,0,0,.32); backdrop-filter: blur(10px); }
.tx_cabecera { margin: 0; padding: 10px 16px; color: #75efff; font-size: clamp(27px, 5vw, 46px); text-shadow: 0 2px 10px rgba(0,0,0,.8), 0 0 18px rgba(86,230,244,.28); -webkit-text-fill-color: #75efff; -webkit-text-stroke: 0; letter-spacing: .06em; }
#nosotros_cabecera { display: none; }
p { max-width: 760px; margin: 14px auto; color: #d5e3ed; font-size: clamp(16px, 1.5vw, 18px); text-align: left; }
h1, h2, h3, h4 { line-height: 1.2; }
h1 { margin: 14px auto; color: white; font-size: clamp(38px, 7vw, 68px); letter-spacing: -.045em; text-align: center; }
h1 span { color: var(--azul); }
h2 { color: var(--blanco); }
h4 { color: var(--azul); }
a { color: var(--azul); }
.hero { display: flex; flex-direction: column; align-items: center; }
.hero #logo { width: min(100%, 420px); }
#logo { position: relative; isolation: isolate; }
.hero #logo::before { content: ""; position: absolute; z-index: 0; width: 84%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(86,230,244,.38) 0%, rgba(86,230,244,.22) 38%, rgba(255,77,97,.2) 60%, transparent 76%); filter: blur(24px); }
#img_logo { position: relative; z-index: 1; width: min(100%, 340px); max-width: 100%; filter: drop-shadow(0 0 15px rgba(86,230,244,.3)) drop-shadow(0 0 24px rgba(255,77,97,.18)) drop-shadow(0 10px 28px rgba(0,0,0,.36)); }
.hero > div:last-child { width: min(100%, 780px); }
.hero > div:last-child > p { text-align: left; }
.eyebrow { margin: 16px auto 0; color: var(--rojo); font-size: 20px; font-weight: 800; letter-spacing: .08em; text-align: center !important; }
.eyebrow span { display: inline-block; white-space: nowrap; }
.eyebrow.single-line span:first-child::after { content: " ·"; }
.hero-lead { max-width: 650px; color: #c5d3df; font-size: clamp(18px, 2vw, 22px); text-align: center !important; }
.section-intro { margin: 44px 0 16px; font-size: 28px; }
.mentions-title { margin-top: 34px; font-size: 22px; }
.mentions-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mentions-list li { padding: 12px 16px; border: 1px solid rgba(86,230,244,.2); border-radius: 10px; background: rgba(5,10,17,.45); }
.mentions-list a { color: #8debf5; text-decoration: none; }
.mentions-list a:hover { color: white; text-decoration: underline; }
.cta { display: flex; width: fit-content; align-self: center; gap: 10px; align-items: center; justify-content: center; margin: 18px auto 28px; padding: 12px 18px; border: 1px solid rgba(86,230,244,.35); border-radius: 10px; color: var(--blanco); font-size: 16px; font-weight: 600; text-decoration: none; background: rgba(86,230,244,.1); transition: .2s ease; }
.cta:hover { transform: translateY(-2px); color: white; background: rgba(86,230,244,.2); }
.subsection-title { width: fit-content; margin: 50px auto 18px; padding: 8px 18px; border-bottom: 2px solid var(--rojo); color: var(--blanco); font-size: clamp(20px, 3vw, 28px); letter-spacing: .08em; text-shadow: none; -webkit-text-fill-color: var(--blanco); -webkit-text-stroke: 0; }
article { width: min(100%, 330px); max-width: 330px; margin: 20px 12px; padding: 8px; border: 1px solid rgba(86,230,244,.42); border-radius: 20px; background: linear-gradient(155deg, rgba(20,31,45,.98), rgba(8,14,24,.98)); box-shadow: 0 14px 36px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.07); }
article:hover { border-color: rgba(86,230,244,.72); box-shadow: 0 18px 42px rgba(0,0,0,.5), 0 0 20px rgba(86,230,244,.1), inset 0 1px 0 rgba(255,255,255,.09); }
.card { width: 100%; height: 430px; margin: 0; cursor: pointer; }
.card-front, .card-back { padding: 18px; }
.img_circulo { width: min(78%, 230px); height: auto; margin: 12px auto; border-radius: 18px; box-shadow: 0 10px 28px rgba(0,0,0,.25); }
.img_mas_info { width: 42%; max-width: 150px; height: auto; margin: 12px auto; box-shadow: none; }
.ico { width: 160px; max-width: 65%; height: auto; border: 0; }
.ico:hover { box-shadow: none; transform: translateY(-2px); }
.card h4 { margin: 10px; font-size: 20px; }
.card h2 { margin: 10px 0; font-size: 17px; font-weight: 400; text-align: center; }
.card-back a { display: inline-flex; align-items: center; justify-content: center; min-width: 160px; min-height: 56px; border: 1px solid rgba(86,230,244,.3); border-radius: 12px; }
.card-back a p { margin: 0; text-align: center; }
#formulario { display: flex; flex-direction: column; width: min(100%, 680px); }
#formulario label { margin: 10px 5% 4px; color: #dceaf2; font-size: 14px; font-weight: 600; }
.form-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-honeypot input { width: 1px; height: 1px; }
input[type=text], input[type=email], textarea { box-sizing: border-box; width: 90%; margin: 0 5% 10px; padding: 13px 15px; border: 1px solid rgba(86,230,244,.24); border-radius: 10px; color: white; background: rgba(5,10,17,.72); font: inherit; font-size: 16px; box-shadow: none; }
input:focus, textarea:focus { outline: 2px solid var(--azul); outline-offset: 2px; background: rgba(5,10,17,.9); }
textarea { height: 140px; }
#contacto input[type=submit] { width: 90%; margin-top: 10px; padding: 13px 20px; border: 0; border-radius: 10px; color: #071117; background: var(--azul); box-shadow: none; }
#contacto input[type=submit]:hover { color: #071117; background: #8af2fb; box-shadow: none; }
#estado-formulario { display: block; min-height: 1.5em; margin: 8px 5%; color: var(--azul); }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 4px; }
.site-footer { width: 100%; margin-top: var(--margen-seccion); padding: 42px 5% 20px; border-top: 1px solid rgba(86,230,244,.2); color: #aebdca; background: rgba(5,9,16,.94); }
.footer-inner { width: min(100%, 1120px); margin: 0 auto; text-align: center; }
.footer-brand { color: var(--blanco); font-size: 26px; font-weight: 800; letter-spacing: .02em; text-decoration: none; }
.footer-brand span { color: var(--azul); }
.footer-tagline { margin: 5px auto 20px; color: #9aabba; font-size: 14px; text-align: center; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin: 0 auto 28px; }
.footer-nav a, .back-to-top { color: #d7e8f1; font-size: 14px; text-decoration: none; }
.footer-nav a:hover, .back-to-top:hover { color: var(--azul); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
@media (min-width: 1024px) {
    body { padding-top: 100px; }
    .cabecera_menu { width: min(94%, 1280px); height: 100px; min-height: 0; transition: height .25s ease; }
    #logo_texto { width: 260px; height: auto; }
    .menu_horizontal { align-items: center; }
    section { width: min(92%, 1120px); }
    .contenedor2 { width: min(90%, 940px); }
    #contacto .contenedor { flex-direction: column; }
}
@media (max-width: 600px) {
    body { padding-top: 66px; background-attachment: scroll; }
    .cabecera_menu { min-height: 66px; }
    .menu-items { top: 66px; }
    #logo_texto { width: 150px; height: auto; }
    section { width: 90%; padding: 22px 14px; border-radius: 16px; }
    .contenedor2 { width: 92%; }
    article { width: 100%; margin: 14px 0; }
    .card { height: 390px; }
    .hero { padding-top: 12px; }
    .eyebrow { font-size: 20px; letter-spacing: .04em; }
    .subsection-title { margin-top: 34px; }
    .footer-bottom { flex-direction: column; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
