/* ==========================================================================
   1. RESET Y GLOBALES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #e7e7e7;
    min-height: 100vh;
    line-height: 1.5;
    background-color: #0a0f1e;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('IMG/fondo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2; 
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
}

.image-gradient {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0.5;
    z-index: -1;
}

.layer-blur {
    height: 0;
    width: 30rem;
    position: absolute;
    top: 20%;
    right: 0;
    box-shadow: 0 0 500px 50px #1d59b8;
    rotate: -30deg;
    z-index: -1;
    opacity: 0.6;
}

/* ==========================================================================
   2. ENCABEZADO Y NAVEGACIÓN
   ========================================================================== */
header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5rem;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-img {
    height: 80px;
    width: auto;
    display: block;
    object-fit: contain;
}

nav {
    display: flex;
    align-items: center;
    gap: 3rem;
}

nav a {
    position: relative;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    text-decoration: none;
    color: #e7e7e7;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    z-index: 999;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #61dae6;
    transition: width 0.3s ease, box-shadow 0.3s ease;
}

nav a:hover, nav a.active {
    color: #61dae6; 
    text-shadow: 0 0 10px rgba(97, 218, 230, 0.4);
}

nav a:hover::after, nav a.active::after {
    width: 100%;
    box-shadow: 0 0 8px rgba(97, 218, 230, 0.6);
}

nav a.active {
    border-bottom: none;
}

/* ==========================================================================
   3. MENÚ HAMBURGUESA Y MÓVIL
   ========================================================================== */
.hamburger {
    display: none;
    cursor: pointer;
    border: none;
    background: none;
    z-index: 1001;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: #e7e7e7;
    border-radius: 3px;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: #61dae6;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: #61dae6;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 999;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.mobile-nav a {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.15rem;
    color: #e7e7e7;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.mobile-nav a:hover, .mobile-nav a.active {
    color: #61dae6;
}

/* ==========================================================================
   4. BOTONES Y COMPONENTES UI
   ========================================================================== */
.btn-signing {
    background-color: transparent;
    color: #61dae6;
    padding: 0.6rem 2rem;
    border-radius: 50px;
    border: 1px solid #61dae6;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
    cursor: pointer;
    z-index: 999;
}

.btn-signing:hover {
    background-color: #61dae6;
    color: black;
    box-shadow: 0 0 15px rgba(97, 218, 230, 0.4);
}

.buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

.buttons a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

.buttons a .arrow {
    transition: transform 0.3s ease;
}

.buttons a:hover .arrow {
    transform: translateX(6px);
}

.btn-get-started {
    color: #e7e7e7;
    background: transparent;
    border: 1px solid #61dae6;
    box-shadow: 0 0 10px rgba(97, 218, 230, 0.05);
}

.btn-get-started::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(97, 218, 230, 0.1);
    z-index: -1;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
}

.btn-get-started:hover {
    color: #61dae6;
    border-color: #61dae6;
    box-shadow: 0 0 20px rgba(97, 218, 230, 0.3);
}

.btn-get-started:hover::before {
    transform: scaleY(1);
}

.btn-signing-main {
    color: #fff;
    background: linear-gradient(90deg, #1d59b8, #347deb, #1d59b8);
    background-size: 200% auto;
    border: 1px solid transparent;
    box-shadow: 0 4px 15px rgba(29, 89, 184, 0.4);
}

.btn-signing-main:hover {
    background-position: right center;
    color: #fff;
    border: 1px solid #61dae6;
    box-shadow: 0 8px 25px rgba(97, 218, 230, 0.5);
    transform: translateY(-3px);
}

.btn-wsp-flotante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulso-wsp 2s infinite;
}

.btn-wsp-flotante svg {
    width: 35px;
    height: 35px;
}

.btn-wsp-flotante:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    animation: none;
}

@keyframes pulso-wsp {
    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); }
}

/* ==========================================================================
   5. SECCIÓN HERO (INDEX)
   ========================================================================== */
main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(90vh - 6rem);
}

.content {
    max-width: 40rem;
    margin-left: 10%;
    z-index: 999;
}

.tag-box {
    position: relative;
    width: 22rem;
    height: 2.5rem;
    border-radius: 50px;
    background: linear-gradient(to right, #1d59b8, #61dae6, #1d59b8, #61dae6);
    background-size: 200%;
    animation: animationGradient 3s linear infinite;
    box-shadow: 0 0 15px rgba(29, 89, 184, 0.4);
}

@keyframes animationGradient {
    to { background-position: 200%; }
}

.tag-box .tag {
    position: absolute;
    inset: 2px 2px 2px 2px;
    background-color: black;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: 0.3s ease;
    cursor: default;
}

.tag-box .tag:hover {
    color: #61dae6;
}

.content h1 {
    margin: 1.5rem 0 2.5rem 0;
    line-height: 1;
    text-transform: uppercase;
}

.content h1 .text-light {
    font-size: 3.5rem;
    font-weight: 300;
    color: #e7e7e7;
    letter-spacing: 0.1em;
}

.content h1 .text-gradient {
    font-size: 4.5rem;
    font-weight: 800; 
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #61dae6, #1d59b8, #61dae6);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: shineText 4s linear infinite;
    filter: drop-shadow(0 4px 15px rgba(97, 218, 230, 0.3));
    display: inline-block;
}

@keyframes shineText {
    to { background-position: 200% center; }
}

.description {
    font-size: 1.15rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    max-width: 38rem;
    color: #c4c4c4; 
    line-height: 1.8;
    margin: 2rem 0;
    padding-left: 1.5rem;
    border-left: 3px solid #1d59b8;
    background: linear-gradient(90deg, rgba(29, 89, 184, 0.15) 0%, rgba(0,0,0,0) 100%);
    border-radius: 0 8px 8px 0;
}

.description .highlight {
    color: #61dae6;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(97, 218, 230, 0.3);
}

/* ==========================================================================
   6. COMPONENTE TERMINAL
   ========================================================================== */
.terminal-container {
    position: absolute;
    top: 25%;
    right: 5%;
    width: 650px;
    background: rgba(10, 15, 30, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(97, 218, 230, 0.2);
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(29, 89, 184, 0.2);
    overflow: hidden;
    z-index: 10;
}

.terminal-header {
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close { background-color: #ff5f56; }
.btn-minimize { background-color: #ffbd2e; }
.btn-maximize { background-color: #27c93f; }

.terminal-title {
    color: #888;
    font-family: monospace;
    font-size: 0.85rem;
    margin: 0 auto;
    padding-right: 40px;
}

.terminal-body {
    padding: 20px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.9rem;
    color: #e7e7e7;
    line-height: 1.6;
}

.terminal-body p { margin-bottom: 8px; }

.prompt {
    color: #61dae6;
    font-weight: bold;
    margin-right: 8px;
}

.output { color: #a7a7a7; }

.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: #61dae6;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ==========================================================================
   7. BENTO BOX (STACK TECNOLÓGICO)
   ========================================================================== */
    .stack-section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.stack-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e7e7e7;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: 0.1em;
    text-shadow: 0 0 15px rgba(97, 218, 230, 0.2);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.bento-card:nth-child(1) { grid-column: span 2; }
.bento-card:nth-child(2) { grid-column: span 1; grid-row: span 2; }
.bento-card:nth-child(3) { grid-column: span 1; }
.bento-card:nth-child(4) { grid-column: span 1; }

.bento-card:nth-child(2) .tech-tags {
    margin-top: auto; 
}

.bento-card {
    background: linear-gradient(135deg, rgba(10, 15, 30, 0.7) 0%, rgba(10, 15, 30, 0.3) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(97, 218, 230, 0.15);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease, box-shadow 0.4s ease;
}

.bento-card:hover {
    transform: translateY(-8px);
    border-color: rgba(97, 218, 230, 0.5);
    box-shadow: 0 15px 35px rgba(29, 89, 184, 0.25), inset 0 0 20px rgba(97, 218, 230, 0.05);
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(29, 89, 184, 0.15);
    border: 1px solid rgba(29, 89, 184, 0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: background 0.3s ease;
}

.bento-card:hover .icon-wrapper {
    background: rgba(97, 218, 230, 0.15);
    border-color: #61dae6;
}

.bento-icon {
    color: #61dae6;
    width: 24px;
    height: 24px;
}

.bento-card h3 {
    color: #e7e7e7;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tech-tags span {
    background: rgba(29, 89, 184, 0.1);
    border: 1px solid rgba(29, 89, 184, 0.3);
    color: #a7a7a7;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: default;
}

.bento-card:hover .tech-tags span:hover {
    background: rgba(97, 218, 230, 0.2);
    border-color: #61dae6;
    color: #fff;
}

/* ==========================================================================
   8. METODOLOGÍA (FLUJO DE TRABAJO)
   ========================================================================== */
.workflow-section {
    padding: 8rem 5%;
    background-color: transparent;
    position: relative;
    z-index: 5;
}

.workflow-header {
    text-align: center;
    margin-bottom: 4rem;
}

.workflow-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #e7e7e7;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(97, 218, 230, 0.2);
}

.workflow-header p {
    font-size: 1.1rem;
    color: #a7a7a7;
    max-width: 600px;
    margin: 0 auto;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.workflow-card {
    background: rgba(10, 15, 30, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(97, 218, 230, 0.1);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.workflow-card:hover {
    transform: translateY(-10px);
    border-color: rgba(97, 218, 230, 0.5);
    box-shadow: 0 10px 30px rgba(29, 89, 184, 0.3);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(97, 218, 230, 0.5);
    position: absolute;
    top: 10px;
    right: 20px;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.workflow-card:hover .step-number {
    color: #61dae6;
    opacity: 0.8;
    text-shadow: 0 0 20px rgba(97, 218, 230, 0.5);
    -webkit-text-stroke: 0;
}

.workflow-card h3 {
    font-size: 1.3rem;
    color: #e7e7e7;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 2;
}

.workflow-card p {
    font-size: 0.95rem;
    color: #a7a7a7;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   9. PÁGINA EXPERIENCIA (TIMELINE)
   ========================================================================== */
.page-header {
    text-align: center;
    padding: 10rem 5% 4rem 5%;
    position: relative;
    z-index: 5;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #e7e7e7;
    text-transform: uppercase;
}

.page-header p {
    font-size: 1.2rem;
    color: #a7a7a7;
    max-width: 700px;
    margin: 0 auto;
}

.timeline-section {
    padding: 2rem 5% 8rem 5%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.timeline-container {
    position: relative;
    padding-left: 3rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #61dae6 0%, #1d59b8 50%, rgba(29, 89, 184, 0) 100%);
    box-shadow: 0 0 10px rgba(97, 218, 230, 0.5);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -3.45rem;
    top: 1.5rem;
    width: 16px;
    height: 16px;
    background-color: #0a0f1e;
    border: 3px solid #61dae6;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(97, 218, 230, 0.8);
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    background-color: #61dae6;
}

.timeline-content {
    padding: 2.5rem;
}

.timeline-date {
    display: inline-block;
    color: #61dae6;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.timeline-content h3 {
    margin-bottom: 1rem;
}

.timeline-content p {
    color: #a7a7a7;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   10. PÁGINA DE SERVICIOS
   ========================================================================== */
.services-main-section {
    padding: 2rem 5% 8rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.service-detail-card {
    background: linear-gradient(135deg, rgba(10, 15, 30, 0.6) 0%, rgba(10, 15, 30, 0.2) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(97, 218, 230, 0.15);
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, border-color 0.3s ease, box-shadow 0.4s ease;
}

.service-detail-card:hover {
    transform: translateY(-8px);
    border-color: rgba(97, 218, 230, 0.5);
    box-shadow: 0 15px 35px rgba(29, 89, 184, 0.25), inset 0 0 20px rgba(97, 218, 230, 0.05);
}

.service-icon-large {
    color: #1d59b8;
    width: 55px;
    height: 55px;
    margin-bottom: 2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.service-detail-card:hover .service-icon-large {
    color: #61dae6;
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(97, 218, 230, 0.4));
}

.service-detail-card h3 {
    font-size: 1.5rem;
    color: #e7e7e7;
    margin-bottom: 1.2rem;
    letter-spacing: 0.05em;
}

.service-detail-card p {
    color: #a7a7a7;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-link {
    align-self: flex-start;
    color: #61dae6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.service-detail-card:hover .service-link {
    border-bottom-color: #61dae6;
}

.service-link:hover {
    color: #fff;
    border-bottom-color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   11. PÁGINA DE PROYECTOS
   ========================================================================== */
.projects-main-section {
    padding: 2rem 5% 8rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.project-card {
    background: linear-gradient(135deg, rgba(10, 15, 30, 0.6) 0%, rgba(10, 15, 30, 0.2) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(97, 218, 230, 0.15);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s ease, border-color 0.3s ease, box-shadow 0.4s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(97, 218, 230, 0.5);
    box-shadow: 0 15px 35px rgba(29, 89, 184, 0.25);
}

.project-category {
    display: inline-block;
    color: #61dae6;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
}

.project-content h3 {
    font-size: 1.4rem;
    color: #e7e7e7;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.project-content p {
    color: #a7a7a7;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.project-actions {
    margin-top: auto;
    padding-top: 1.5rem;
}

.btn-project-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.8rem;
    background: rgba(29, 89, 184, 0.2);
    border: 1px solid #1d59b8;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.btn-project-primary:hover {
    background: #61dae6;
    border-color: #61dae6;
    color: #000;
    box-shadow: 0 0 15px rgba(97, 218, 230, 0.4);
}

.btn-project-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.8rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #a7a7a7;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.btn-project-secondary:hover {
    border-color: #e7e7e7;
    color: #fff;
}

/* ==========================================================================
   12. PÁGINA DE COTIZACIÓN
   ========================================================================== */
.quote-section {
    padding: 2rem 5% 8rem 5%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.quote-container {
    padding: 3rem;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group label {
    display: block;
    color: #e7e7e7;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    letter-spacing: 0.05em;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    background: rgba(10, 15, 30, 0.5);
    border: 1px solid rgba(29, 89, 184, 0.4);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    border-color: #61dae6;
    box-shadow: 0 0 15px rgba(97, 218, 230, 0.2);
    background: rgba(10, 15, 30, 0.8);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #656565;
}

.service-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-option input[type="radio"] {
    display: none;
}

.service-card-content {
    background: rgba(10, 15, 30, 0.5);
    border: 1px solid rgba(29, 89, 184, 0.4);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    height: 100%;
}

.service-card-content svg {
    width: 35px;
    height: 35px;
    color: #1d59b8;
    transition: color 0.3s ease;
}

.service-card-content span {
    color: #a7a7a7;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.service-option:hover .service-card-content {
    border-color: rgba(97, 218, 230, 0.5);
    background: rgba(29, 89, 184, 0.1);
}

.service-option input[type="radio"]:checked + .service-card-content {
    border-color: #61dae6;
    background: rgba(97, 218, 230, 0.1);
    box-shadow: 0 0 20px rgba(97, 218, 230, 0.2);
    transform: translateY(-5px);
}

.service-option input[type="radio"]:checked + .service-card-content svg {
    color: #61dae6;
}

.service-option input[type="radio"]:checked + .service-card-content span {
    color: #fff;
}

.btn-submit {
    position: relative;
    color: #e7e7e7;
    background: linear-gradient(135deg, rgba(10, 15, 30, 0.8) 0%, rgba(29, 89, 184, 0.4) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #61dae6;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    align-self: center;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 4px 15px rgba(97, 218, 230, 0.1), inset 0 0 15px rgba(97, 218, 230, 0.05);
    overflow: hidden;
}

.wsp-icon {
    width: 24px;
    height: 24px;
    fill: #61dae6;
    transition: all 0.3s ease;
}

.btn-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(97, 218, 230, 0.4), transparent);
    transform: skewX(-25deg);
    transition: all 0.6s ease;
}

.btn-submit:hover {
    background: linear-gradient(135deg, rgba(29, 89, 184, 0.8) 0%, rgba(10, 15, 30, 0.9) 100%);
    border-color: #fff;
    box-shadow: 0 10px 30px rgba(97, 218, 230, 0.4), inset 0 0 20px rgba(97, 218, 230, 0.2);
    transform: translateY(-3px) scale(1.02);
    color: #fff;
}

.btn-submit:hover::after {
    left: 150%;
}

.btn-submit:hover .wsp-icon {
    fill: #25D366;
    transform: scale(1.1) rotate(10deg);
}

.btn-submit .arrow {
    transition: transform 0.3s ease;
    color: #61dae6;
}

.btn-submit:hover .arrow {
    transform: translateX(6px);
    color: #fff;
}

/* ==========================================================================
   13. CONTENEDORES LEGALES
   ========================================================================== */
.legal-section {
    padding: 2rem 5% 8rem 5%;
    max-width: 900px; 
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.legal-container {
    padding: 4rem 3rem;
}

.legal-text h2 {
    color: #61dae6;
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.legal-text h2:first-child {
    margin-top: 0;
}

.legal-text p {
    color: #c4c4c4;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify; 
}

.legal-text ul {
    list-style: none; 
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-text ul li {
    color: #a7a7a7;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.8rem;
    position: relative;
}

.legal-text ul li::before {
    content: "•";
    color: #61dae6;
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: -1.2rem;
    top: -2px;
}

.legal-text strong {
    color: #fff;
    font-weight: 600;
}

.legal-text em {
    color: #61dae6;
    font-style: normal;
    font-weight: 600;
}

.legal-text a.legal-inline-link {
    color: #61dae6;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.legal-text a.legal-inline-link:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(97, 218, 230, 0.6);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.site-footer {
    background: linear-gradient(to top, rgba(10, 15, 30, 0.95), rgba(10, 15, 30, 0.4));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(97, 218, 230, 0.15);
    padding: 5rem 5% 2rem 5%;
    position: relative;
    z-index: 5;
    margin-top: 5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px; 
    margin: 0 auto;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center; 
}

.footer-brand .footer-logo {
    height: 60px; 
    margin: 0 auto 1.5rem auto; 
    display: block;
    filter: drop-shadow(0 0 10px rgba(97, 218, 230, 0.2));
}

.footer-brand p {
    color: #a7a7a7;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 300px;
}

.footer-links h4, 
.footer-contact h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-links ul { 
    list-style: none; 
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center; 
    gap: 0.8rem;
}

.footer-links a {
    color: #a7a7a7;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #61dae6;
    transform: translateY(-2px);
    text-shadow: 0 0 8px rgba(97, 218, 230, 0.4);
}

.footer-contact p {
    color: #a7a7a7;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.contact-link {
    color: #61dae6;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.contact-link:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(97, 218, 230, 0.6);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.8rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(29, 89, 184, 0.15);
    border: 1px solid rgba(29, 89, 184, 0.4);
    border-radius: 50%;
    color: #a7a7a7;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.social-icons svg {
    width: 20px;
    height: 20px;
}

.social-icons a:hover {
    background: #61dae6;
    border-color: #61dae6;
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(97, 218, 230, 0.4);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
}

.footer-bottom p {
    color: #656565;
    font-size: 0.85rem;
    margin: 0;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.legal-links a {
    color: #656565;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #61dae6;
}

.legal-links .separator {
    color: #333;
}

/* ==========================================================================
   15. MEDIA QUERIES (DISEÑO RESPONSIVO)
   ========================================================================== */
@media (max-width: 1300px) {
    header { padding: 1rem 2rem; }
    .content { margin-top: 10%; }
    .terminal-container { right: 2%; width: 450px; }
    .workflow-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1235px) {
    .content { max-width: 90%; margin-left: 5%; }
    
    .terminal-container {
        position: relative;
        top: 0; 
        right: 0; 
        width: 100%; 
        max-width: 650px; 
        margin: 4rem 5% 0 5%;
    }
}

@media (max-width: 968px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-card:nth-child(1),
    .bento-card:nth-child(2),
    .bento-card:nth-child(3),
    .bento-card:nth-child(4) {
        grid-column: span 1;
        grid-row: span 1;
    }
    .bento-card:nth-child(2) .tech-tags { margin-top: 0; }
    .services-grid { grid-template-columns: 1fr; }
}

@media (min-width: 769px) {
    .project-card:last-child:nth-child(odd) { grid-column: 1 / -1;}
}

@media (max-width: 768px) {
    header { padding: 1rem 5%; }
    nav { display: none; }
    .hamburger { display: block; }
    .logo-img { height: 45px; }
    
    .content { margin-top: 5rem; margin-left: 5%; max-width: 90%; }
    .content h1 .text-light { font-size: 2.2rem; }
    .content h1 .text-gradient { font-size: 2.8rem; }
    .description { font-size: 1rem; }
    .tag-box { width: 18rem; }
    
    .buttons { flex-direction: column; gap: 1rem; }
    .btn-get-started, .btn-signing-main { text-align: center; }
    .btn-signing { padding: 0.5rem 1.2rem; font-size: 0.8rem; }
    
    .terminal-container {
        margin: 3rem auto 0 auto; 
        max-width: 90%; 
    }

    .service-detail-card { padding: 2rem; }
    .service-detail-card h3 { font-size: 1.3rem; }
    
    .bento-grid, .workflow-grid { grid-template-columns: 1fr; }
    
    .stack-section, .workflow-section { padding: 5rem 5%; }
    .page-header h1 { font-size: 2.5rem; }
    
    .timeline-container { padding-left: 2rem; }
    .timeline-dot { left: -2.4rem; }
    .timeline-content { padding: 1.5rem; }

    .quote-container { padding: 2rem; }
    .form-group-row { grid-template-columns: 1fr; gap: 1.5rem; }
    .service-selector { grid-template-columns: 1fr; }
    .btn-submit { width: 100%; justify-content: center; } 
    
    .footer-container { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .social-icons { justify-content: center; }
    .footer-links a:hover { padding-left: 0; }
    .site-footer { padding-bottom: 6rem; }
    
    .btn-wsp-flotante { bottom: 20px; right: 20px; width: 55px; height: 55px; }
    .btn-wsp-flotante svg { width: 30px; height: 30px; }
}

@media (max-width: 480px) {
    .page-header h1 { font-size: 1.5rem; }
    .content { margin-top: 3rem; }
    .content h1 .text-light { font-size: 1.8rem; }
    .content h1 .text-gradient { font-size: 2.2rem; }
    .tag-box { width: 16rem; height: 2.2rem; }
    
    .footer-brand p { font-size: 0.85rem;}
    .footer-bottom p { text-align: center; font-size: 0.8rem; line-height: 1.6; padding: 0 10px;}
    .legal-links { flex-direction: column; gap: 0.8rem; margin-top: 0.5rem;}
    .legal-links .separator { display: none;}
    
    .projects-grid { grid-template-columns: 1fr; }
    .project-card { padding: 1.5rem; }
}