/* ============================================
   ARVOK SD - Styles.css (Redesigned)
   Complete CSS for all pages with improved spacing and animations
   ============================================ */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background-color: #050505;
    color: #ffffff;
    line-height: 1.75;
    overflow-x: hidden;
    letter-spacing: 0.01em;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Page Transition Overlay */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0D1B2A 0%, #050505 50%, #4DA8FF 100%);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-transition-overlay.active {
    opacity: 1;
    visibility: visible;
}

.page-transition-overlay::after {
    content: '';
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #4DA8FF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Container - Improved spacing */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 3rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 4rem;
    }
}

@media (min-width: 1440px) {
    .container {
        padding: 0 6rem;
    }
}

/* Navbar - Redesigned */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 48px;
    width: 48px;
    filter: brightness(0) invert(1);
    transform-style: preserve-3d;
}

@keyframes logoFlip {
    0%, 90% {
        transform: rotateY(0deg);
    }
    95%, 100% {
        transform: rotateY(180deg);
    }
}

.menu-toggle {
    display: none;
    background: rgba(77, 168, 255, 0.1);
    border: 1px solid rgba(77, 168, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(77, 168, 255, 0.2);
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #4DA8FF;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #4DA8FF;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    position: relative;
    padding: 0.75rem 1.25rem;
    color: #9ca3af;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: #4DA8FF;
    background: rgba(77, 168, 255, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: #4DA8FF;
    border-radius: 50%;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-content {
        height: 80px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .logo-img {
        height: 40px;
        width: 40px;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, rgba(5, 5, 5, 0.98) 0%, rgba(13, 27, 42, 0.98) 100%);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 0.5rem;
        display: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        animation: slideDown 0.3s ease;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        text-align: left;
        padding: 1rem 1.25rem;
        font-size: 1.125rem;
    }
    
    .nav-link.active::after {
        display: none;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section - Enhanced */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0D1B2A 0%, #050505 50%, #050505 100%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.4;
}

.orb-1 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(77, 168, 255, 0.4) 0%, rgba(77, 168, 255, 0) 70%);
    animation: pulse-slow 8s ease-in-out infinite;
}

.orb-2 {
    top: 20%;
    left: 20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.3) 0%, rgba(30, 58, 138, 0) 70%);
    filter: blur(120px);
    animation: pulse-slower 10s ease-in-out infinite 1s;
}

.orb-3 {
    bottom: 20%;
    right: 20%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(13, 74, 138, 0.3) 0%, rgba(13, 74, 138, 0) 70%);
    filter: blur(130px);
    animation: pulse-slowest 12s ease-in-out infinite 2s;
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

@keyframes pulse-slower {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

@keyframes pulse-slowest {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.18);
    }
}

/* Floating particles animation */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #4DA8FF;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.hero::before {
    top: 30%;
    left: 20%;
    animation-delay: 0s;
}

.hero::after {
    top: 60%;
    right: 25%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-30px) translateX(20px);
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 960px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    animation: scaleIn 0.8s ease-out 0.2s backwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* LOGO DEL HERO — BLANCO + ANIMACIÓN COMPLETA */
.hero-logo img {
    width: 180px;               /* Ajusta si necesitas */
    filter: brightness(0) invert(1); /* Convierte cualquier logo en blanco */
    animation: rotateBounce 11s ease-in-out infinite;
    transform-origin: center;
}

/* ANIMACIÓN: 5s quieto → 1s giro con rebote → 5s quieto */
@keyframes rotateBounce {
    0% {
        transform: rotate(0deg);
    }
    45% {
        transform: rotate(0deg); /* Quieto 5s */
    }
    55% {
        transform: rotate(185deg); /* Se pasa un poco */
    }
    60% {
        transform: rotate(178deg); /* Rebote */
    }
    65% {
        transform: rotate(180deg); /* Posición final */
    }
    100% {
        transform: rotate(180deg); /* Quieto otros 5s */
    }
}




@media (min-width: 768px) {
    .hero-logo img {
        height: 160px;
        width: 160px;
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

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

@media (min-width: 1024px) {
    .hero-title {
        font-size: 6.5rem;
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #4DA8FF;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    font-weight: 600;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.875rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: #d1d5db;
    max-width: 720px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    animation: fadeInUp 1s ease-out 1s backwards;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }
}

/* Buttons - Enhanced */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.125rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 1.0625rem;
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn svg {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn:hover svg {
    transform: translateX(4px);
}

.btn-primary {
    background: linear-gradient(135deg, #4DA8FF 0%, #3B8FE0 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(77, 168, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(77, 168, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #4DA8FF;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(77, 168, 255, 0.5);
}

.btn-outline:hover {
    background-color: rgba(77, 168, 255, 0.1);
    border-color: #4DA8FF;
    transform: translateY(-2px);
}

/* Section Spacing - Uniform */
section {
    padding: 6rem 0;
}

@media (min-width: 768px) {
    section {
        padding: 8rem 0;
    }
}

@media (min-width: 1024px) {
    section {
        padding: 10rem 0;
    }
}

/* Section Headers - Enhanced */
.section-header {
    text-align: center;
    margin: 0 auto 4rem;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out;
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: 5rem;
        padding: 0 2rem;
    }
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 auto 1.25rem;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-align: center;
    width: 100%;
}

@media (min-width: 768px) {
    .section-header h2 {
        font-size: 3.25rem;
    }
}

@media (min-width: 1024px) {
    .section-header h2 {
        font-size: 3.75rem;
    }
}

.section-header p {
    color: #9ca3af;
    font-size: 1.125rem;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.75;
    text-align: center;
    width: 100%;
}

@media (min-width: 768px) {
    .section-header p {
        font-size: 1.25rem;
    }
}

.text-accent {
    color: #4DA8FF;
    position: relative;
}

/* Services Section - Redesigned Grid */
.services-preview {
    padding: 8rem 0;
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.3) 0%, rgba(5, 5, 5, 0) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

.service-card {
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4DA8FF 0%, #3B8FE0 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-color: rgba(77, 168, 255, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(77, 168, 255, 0.2) 0%, rgba(77, 168, 255, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(77, 168, 255, 0.3) 0%, rgba(77, 168, 255, 0.15) 100%);
}

.service-icon svg {
    color: #4DA8FF;
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon svg {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: #4DA8FF;
}

.service-card p {
    color: #9ca3af;
    line-height: 1.75;
    font-size: 1.0625rem;
}

.section-cta {
    text-align: center;
    margin-top: 4rem;
}

/* Portfolio Grid - Enhanced */
.portfolio-preview {
    padding: 8rem 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 640px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

.portfolio-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover {
    transform: scale(1.02);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay h3 {
    transform: translateY(0);
}

.portfolio-overlay p {
    color: #d1d5db;
    font-size: 0.9375rem;
    transform: translateY(10px);
    transition: transform 0.4s ease 0.1s;
}

.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
}

/* Page Header - Enhanced */
.page-header {
    position: relative;
    padding: 180px 0 100px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .page-header {
        padding: 200px 0 120px;
    }
}

.header-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0D1B2A 0%, #050505 60%, #050505 100%);
}

.orb-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(77, 168, 255, 0.3) 0%, transparent 70%);
    filter: blur(120px);
    animation: pulse-slow 8s ease-in-out infinite;
}

.header-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 840px;
    margin: 0 auto;
    padding: 0 1rem;
    animation: fadeInUp 0.8s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-content h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    margin: 0 auto 1.5rem;
    line-height: 1.15;
    text-align: center;
    width: 100%;
}

@media (min-width: 768px) {
    .header-content h1 {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    .header-content h1 {
        font-size: 4.5rem;
    }
}

.header-content p {
    font-size: 1.125rem;
    color: #d1d5db;
    line-height: 1.75;
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

@media (min-width: 768px) {
    .header-content p {
        font-size: 1.25rem;
    }
}

/* Filter Section - Enhanced */
.filter-section {
    padding: 3rem 0 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
}

.filter-btn:hover {
    background-color: rgba(77, 168, 255, 0.1);
    color: #ffffff;
    border-color: rgba(77, 168, 255, 0.3);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #4DA8FF 0%, #3B8FE0 100%);
    color: #ffffff;
    border-color: #4DA8FF;
    box-shadow: 0 4px 12px rgba(77, 168, 255, 0.3);
}

/* Portfolio Full Grid */
.portfolio-section {
    padding: 5rem 0 8rem;
}

.portfolio-full-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .portfolio-full-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .portfolio-full-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

.portfolio-full-item {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-full-item.hidden {
    display: none;
}

.portfolio-full-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.portfolio-full-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-full-item:hover img {
    transform: scale(1.12);
}

.portfolio-full-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0.9;
    transition: opacity 0.4s ease;
}

.portfolio-full-item:hover .portfolio-full-overlay {
    opacity: 0.95;
}

.portfolio-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(77, 168, 255, 0.2);
    border: 1px solid #4DA8FF;
    color: #4DA8FF;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    width: fit-content;
    font-weight: 600;
}

.portfolio-full-overlay h3 {
    font-size: 1.75rem;
    margin-bottom: 0.625rem;
    transition: color 0.3s ease;
    font-weight: 700;
    line-height: 1.3;
}

.portfolio-full-item:hover h3 {
    color: #4DA8FF;
}

.portfolio-full-overlay p {
    color: #d1d5db;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.portfolio-year {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Services Full Section */
.services-full-section {
    padding: 5rem 0 8rem;
}

.services-full-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .services-full-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .services-full-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-full-card {
    padding: 3rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-full-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4DA8FF 0%, #3B8FE0 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-full-card:hover::before {
    transform: scaleX(1);
}

.service-full-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-color: rgba(77, 168, 255, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.service-full-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(77, 168, 255, 0.2) 0%, rgba(77, 168, 255, 0.1) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: all 0.4s ease;
}

.service-full-card:hover .service-full-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(77, 168, 255, 0.3) 0%, rgba(77, 168, 255, 0.15) 100%);
}

.service-full-icon svg {
    color: #4DA8FF;
}

.service-full-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.service-full-card:hover h3 {
    color: #4DA8FF;
}

.service-full-card > p {
    color: #9ca3af;
    line-height: 1.75;
    margin-bottom: 2rem;
    font-size: 1.0625rem;
}

.service-full-card ul {
    list-style: none;
}

.service-full-card ul li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #d1d5db;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.service-full-card ul li::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #4DA8FF;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Process Section */
.process-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.3) 0%, rgba(5, 5, 5, 0) 100%);
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.process-step {
    position: relative;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.4s ease;
}

.process-step:hover {
    transform: translateY(-4px);
    border-color: rgba(77, 168, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.process-number {
    font-size: 3.5rem;
    color: rgba(77, 168, 255, 0.25);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.process-step h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.process-step p {
    color: #9ca3af;
    font-size: 0.9375rem;
    line-height: 1.75;
}

/* CTA Section */
.cta-section {
    padding: 8rem 0;
}

.cta-box {
    max-width: 840px;
    margin: 0 auto;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, rgba(77, 168, 255, 0.15) 0%, rgba(30, 58, 138, 0.15) 100%);
    border: 1px solid rgba(77, 168, 255, 0.3);
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(77, 168, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-box > * {
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .cta-box h2 {
        font-size: 2.75rem;
    }
}

.cta-box p {
    color: #d1d5db;
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    line-height: 1.75;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0 8rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 2fr;
        gap: 4rem;
    }
}

.contact-card {
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-bottom: 2rem;
}

.contact-card h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(77, 168, 255, 0.2) 0%, rgba(77, 168, 255, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    color: #4DA8FF;
}

.contact-label {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-item a {
    color: #ffffff;
    transition: color 0.3s ease;
    font-size: 1.125rem;
    font-weight: 600;
}

.contact-item a:hover {
    color: #4DA8FF;
}

.contact-hours {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(77, 168, 255, 0.15) 0%, rgba(30, 58, 138, 0.15) 100%);
    border: 1px solid rgba(77, 168, 255, 0.3);
    border-radius: 16px;
}

.contact-hours h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-hours p {
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1.75;
}

/* Contact Form */
.contact-form-wrapper {
    padding: 3rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.contact-form-wrapper h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #d1d5db;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4DA8FF;
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(77, 168, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6b7280;
}

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

/* Footer - Enhanced */
footer {
    background: linear-gradient(180deg, #0D1B2A 0%, #050505 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 4rem;
    }
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-brand img {
    height: 40px;
    width: 40px;
    filter: brightness(0) invert(1);
    animation: logoFlip 10s ease-in-out infinite;
    transform-style: preserve-3d;
}

.footer-brand span {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.footer-col p {
    color: #9ca3af;
    font-size: 0.9375rem;
    line-height: 1.75;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a,
.footer-col ul li {
    color: #9ca3af;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: #4DA8FF;
    transform: translateX(4px);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    background: linear-gradient(135deg, rgba(77, 168, 255, 0.2) 0%, rgba(77, 168, 255, 0.1) 100%);
    border-color: #4DA8FF;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(77, 168, 255, 0.2);
}

.social-link svg {
    color: #9ca3af;
    transition: color 0.3s ease;
}

.social-link:hover svg {
    color: #4DA8FF;
}

.footer-bottom {
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom p {
    color: #6b7280;
    font-size: 0.9375rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #6b7280;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4DA8FF;
}

/* Tablet Specific Adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero {
        padding: 160px 0 100px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-card {
        padding: 2rem;
    }
}

/* Mobile Specific Adjustments */
@media (max-width: 767px) {
    section {
        padding: 4rem 0;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-logo img {
        height: 100px;
        width: 100px;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .btn {
        width: 100%;
        padding: 1rem 2rem;
    }
    
    .service-card,
    .service-full-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .cta-box {
        padding: 2.5rem 2rem;
    }
    
    .cta-box h2 {
        font-size: 1.875rem;
    }
}
/* --- BREAKPOINT PARA MENU HAMBURGUESA (1920/2 = 960px) --- */
@media (max-width: 960px) {

    /* Oculta el menú normal */
    #navMenu {
        display: none;
        flex-direction: column;
        gap: 20px;
        background: rgba(5,5,5,0.98);
        position: absolute;
        top: 80px;
        right: 20px;
        padding: 20px 30px;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.5);
        z-index: 999;
    }

    /* Cuando está activo, se muestra */
    #navMenu.active {
        display: flex;
    }

    /* Mostrar el menú hamburguesa */
    #menuToggle {
        display: block;
        cursor: pointer;
        z-index: 1000;
    }

    /* Oculta el menú de navegación horizontal */
    nav .nav-links {
        display: none;
    }
}
/* ============================
   ESTILOS DEL MENÚ RESPONSIVO
   ============================ */

/* Ocultar menú en móvil */
@media (max-width: 960px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;         /* debajo del navbar */
        right: 20px;
        width: 200px;
        background: rgba(20, 20, 20, 0.96);
        backdrop-filter: blur(8px);
        padding: 15px;
        border-radius: 12px;
        gap: 12px;
        z-index: 999;
    }

    /* Mostrar menú cuando esté activo */
    .nav-menu.active {
        display: flex;
    }

    /* El botón hamburguesa aparece en móvil */
    .menu-toggle {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }

    /* Ocultar menú normal cuando es móvil */
    nav .nav-menu a {
        color: #fff;
        font-size: 16px;
        padding: 8px 0;
    }
}

/* Mostrar menú normal en computadoras */
@media (min-width: 961px) {
    .nav-menu {
        display: flex !important;
        position: static;
        background: none;
        padding: 0;
        flex-direction: row;
    }

    .menu-toggle {
        display: none;
    }
}

/* Animación del logo */
.rotate {
    animation: rotateLogo 1s ease;
}

@keyframes rotateLogo {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
