:root {
    --primary-color: #2f56f2;
    --primary-dark: #3a5ce5;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gradient-1: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, rgba(9, 9, 121, 1) 35%, rgb(0, 98, 255) 100%);
    --gradient-2: linear-gradient(135deg, #4a6cf7 0%, #6a11cb 100%);
    --gradient-3: linear-gradient(135deg, #00eeff, #0400ff, #00eeff);
    --gradient-4: linear-gradient(135deg, #0a0a14 0%, #1a1a2e 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --transition: all 0.3s ease;
    --transition-smooth: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: "Raleway", sans-serif;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.0rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
p { font-size: 0.9rem; }
body { font-size: 14px; }

h2 {  
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

h2:after {
    content: "";
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

p {
    margin-bottom: 1.5rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* =======================================
   Header y Navegación
========================================= */
header {
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.header-scrolled {
    background: var(--dark-color);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-family: "Raleway", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo span { 
    color: var(--light-color); 
}

#nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

#nav-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

#nav-links a:hover { 
    color: var(--primary-color); 
}

#nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), #848cfc);
    transition: width 0.3s ease;
}

#nav-links a:hover::after { 
    width: 100%; 
}

#mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
}

#mobile-menu-btn i {
    font-size: 1.5rem;
    color: #ffffff;
    transition: var(--transition);
}

#mobile-menu-btn:hover i { 
    color: #fdfdfd; 
}

/* =======================================
   Hero Section
========================================= */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--gradient-4);
    padding: 80px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.text-column {
    flex: 1;
    min-width: 300px;
    position: relative;
    z-index: 3;
}

.visual-column {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.hero-carousel {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 30% 100%);
    z-index: 1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.8);
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-text-container {
    position: relative;
    min-height: 320px;
    margin-bottom: 30px;
}

.carousel-text-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    pointer-events: none;
}

.carousel-text-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    background: linear-gradient(to right, #ffffff, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(0, 38, 255, 0.3);
    font-family: 'Poppins', sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.slide-description {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.6;
    margin-bottom: 30px;
    color: #ccccdd;
    max-width: 90%;
    font-weight: 300;
    font-family: 'Raleway', sans-serif;
}

/* =======================================
   Indicadores del Carrusel
========================================= */
.carousel-indicators {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.carousel-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(43, 29, 247, 0.699);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

.carousel-indicator::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 157, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-indicator.active {
    background-color: #00ff9d;
    box-shadow: 0 0 15px #00ff9d, 0 0 25px rgba(0, 255, 157, 0.5);
    transform: scale(1.4);
    border-color: #ffffff;
}

.carousel-indicator.active::before {
    opacity: 1;
}

.carousel-indicator:hover {
    background-color: #0066ff;
    box-shadow: 0 0 15px #0044ff, 0 0 25px rgba(0, 255, 242, 0.5);
    transform: scale(1.2);
}

/* =======================================
   Botones del Hero
========================================= */
.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-page {
    padding: 16px 38px;
    border-radius: 50px;
    font-weight: 600;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    min-width: 160px;
    border: none;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Botón Principal */
.btn-primary {
    background: var(--gradient-2);
    color: white;
    border: 2px solid transparent;
    animation: pulseGlow 2s infinite alternate;
}

.btn-primary::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6a11cb 0%, #4a6cf7 100%);
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(106, 17, 203, 0.4), 0 0 30px rgba(74, 108, 247, 0.3);
    letter-spacing: 1px;
}

.btn-primary:active {
    transform: translateY(-2px) scale(1.02);
    transition: all 0.1s ease;
}

/* Botón Secundario */
.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    padding: 2px;
    background: var(--gradient-3);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    opacity: 0.8;
    transition: all 0.4s ease;
}

.btn-outline::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(0, 238, 255, 0.8) 0%, rgba(4, 0, 255, 0.8) 50%, rgba(0, 238, 255, 0.8) 100%);
    border-radius: 50px;
    z-index: -2;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.4s ease;
    animation: borderGlow 3s infinite linear;
    background-size: 200% 100%;
}

.btn-outline:hover::before {
    opacity: 1;
    padding: 3px;
    background: linear-gradient(135deg, #00eeff, #0400ff, #00eeff, #00eeff);
    animation: borderRotate 3s linear infinite;
}

.btn-outline:hover::after {
    opacity: 0.6;
}

.btn-outline:hover {
    transform: translateY(-5px) scale(1.05);
    color: #00eeff;
    text-shadow: 0 0 10px rgba(0, 238, 255, 0.7);
    letter-spacing: 1px;
}

.btn-page i {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.btn-page:hover i {
    transform: translateX(5px) rotate(10deg);
}

.btn-page:hover::after {
    content: '✦';
    position: absolute;
    color: rgba(255, 255, 255, 0.6);
    font-size: 8px;
    animation: floatUp 1s ease-out forwards;
}

/* =======================================
   Scroll Indicator
========================================= */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    z-index: 10;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-icon {
    width: 32px;
    height: 52px;
    border: 2px solid #001aff;
    border-radius: 20px;
    margin-bottom: 12px;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 81, 255, 0.5);
}

.scroll-icon::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 12px;
    background-color: #0051ff;
    border-radius: 2px;
    animation: scroll 2s infinite ease-in-out;
    box-shadow: 0 0 5px #3700ff;
}

/* =======================================
   Animaciones
========================================= */
@keyframes scroll {
    0% { top: 10px; opacity: 1; }
    70% { top: 30px; opacity: 0; }
    100% { top: 10px; opacity: 1; }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 10px 30px rgba(106, 17, 203, 0.3), 0 0 20px rgba(74, 108, 247, 0.2);
    }
    100% {
        box-shadow: 0 10px 35px rgba(106, 17, 203, 0.5), 0 0 25px rgba(74, 108, 247, 0.4);
    }
}

@keyframes borderRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-30px) rotate(180deg); opacity: 0; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4), 0 0 0 0 rgba(74, 108, 247, 0.4);
    }
    100% {
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0), 0 0 0 40px rgba(74, 108, 247, 0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-page:active {
    animation: ripple 0.6s ease-out;
}

/* Estado loading */
.btn-page.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-page.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    right: 20px;
}

/* =======================================
   Responsive Design
========================================= */

/* Tablet (769px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .hero-carousel {
        width: 45%;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%);
    }
    
    .carousel-indicators {
        right: 30px;
    }
    
    .hero-container {
        width: 90%;
    }
}

/* Móvil (max-width: 768px) */
@media (max-width: 768px) {
    /* Header móvil */
    #mobile-menu-btn {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    #nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(17, 49, 125, 0.9);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 0.5rem;
        gap: 0.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        max-height: 0;
        overflow: hidden;
    }
    
    #nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    #nav-links li {
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(15px);
        transition: all 0.3s ease;
    }
    
    #nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    #nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    #nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
    #nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
    #nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
    #nav-links.active li:nth-child(5) { transition-delay: 0.3s; }
    #nav-links.active li:nth-child(6) { transition-delay: 0.35s; }
    #nav-links.active li:nth-child(7) { transition-delay: 0.4s; }
    
    #nav-links a {
        display: block;
        padding: 0.75rem;
        font-size: 1rem;
        color: #e2e8f0;
        border-radius: 6px;
        transition: var(--transition);
        background: rgba(168, 85, 247, 0.1);
    }
    
    #nav-links a:hover {
        background: rgba(168, 85, 247, 0.2);
        color: #f8fafc;
        transform: translateX(5px);
    }
    
    #nav-links a::after {
        display: none;
    }
    
    header .logo {
        font-size: 1.3rem;
        z-index: 1002;
        display: block;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }
    
    body.menu-open {
        overflow: hidden;
    }

    /* Hero section móvil */
    .hero {
        min-height: 50vh;
        height: 90vh;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-container {
        width: calc(100% - 30px);
        max-width: 600px;
        padding: 20px 0;
        flex-direction: column;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 30px;
        width: 100%;
    }
    
    .hero-carousel {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        clip-path: none;
    }
    
    .carousel-slide {
        filter: brightness(0.5);
    }
    
    .text-column, .visual-column {
        width: 100%;
        min-width: 100%;
        text-align: center;
    }
    
    .carousel-text-container {
        min-height: auto;
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .slide-title {
        text-align: center;
        font-size: clamp(1.7rem, 6vw, 2.2rem);
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    }
    
    .slide-description {
        text-align: center;
        max-width: 100%;
        font-size: clamp(0.95rem, 3vw, 1.1rem);
        color: #e0e0ff;
        background: rgba(0, 0, 0, 0.2);
        padding: 15px;
        border-radius: 8px;
        backdrop-filter: blur(5px);
        margin: 0 auto;
    }
    
    .carousel-text-slide {
        background: rgba(10, 10, 20, 0.048);
        backdrop-filter: blur(8px);
        border-radius: 15px;
        padding: 25px 20px;
        margin: 0 auto;
        border: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        max-width: 600px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .text-column {
        margin-bottom: 50%;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-page {
        width: 100%;
        max-width: 280px;
        padding: 12px 24px;
    }
    
    .carousel-indicators {
        position: sticky;
        right: 10px;
    }
    
    .carousel-indicator {
        width: 12px;
        height: 12px;
        background-color: rgba(255, 255, 255, 0.3);
        border: 2px solid transparent;
    }
    
    .carousel-indicator.active {
        background-color: #00ff9d;
        box-shadow: 0 0 10px #00ff9d, 0 0 15px rgba(0, 255, 157, 0.5);
        transform: scale(1.3);
        border-color: #ffffff;
    }
    
    .carousel-indicator:hover {
        background-color: #0066ff;
        transform: scale(1.2);
    }
}

/* Móvil Pequeño (max-width: 480px) */
@media (max-width: 480px) {
    .hero {
        min-height: 40vh;
        height: 100vh;
        padding: 0;
    }
    
    .hero-container {
        width: calc(100% - 30px);
        margin: 0 15px;
        padding: 15px 0;
    }
    
    .carousel-text-slide {
        padding: 20px 15px;
    }
    
    .slide-title {
        font-size: clamp(1.5rem, 5vw, 1.9rem);
        margin-bottom: 12px;
    }
    
    .slide-description {
        padding: 12px;
        font-size: clamp(0.9rem, 3vw, 1rem);
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .text-column {
        margin-bottom: 50%;
    }
    
    .btn-page {
        max-width: 260px;
        padding: 11px 22px;
    }

    .scroll-indicator {
      display: none;
    }
}


/*=============================================
  Secciones comunes 
============================================= */

.section-title {
  margin-bottom: 3rem;
  color: var(--accent-color);
}

/* Sección "Qué hacemos" */
.what-we-do {
  background-color: var(--light-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: white;
  border-radius: 20px 0 20px 0;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* =================================
  Sección "Por qué elegirnos" 
==================================*/

.why-choose-us .features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature {
  text-align: center;
  padding: 20px;
}

.feature-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}


/* ============================================
   GALERÍA MEJORADA - IMÁGENES ADAPTADAS
============================================ */

.projects-gallery {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.gallery-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 15px auto 0;
  color: #64748b;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* CONTENEDOR PRINCIPAL */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ITEM DE GALERÍA CON MEJOR ASPECT RATIO */
.gallery-item {
  position: relative;
  height: 350px; /* Aumentado ligeramente para mejor visualización */
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
}

/* CONTENEDOR DE IMAGEN MEJORADO */
.project-image {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* IMAGEN OPTIMIZADA */
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center; /* Centrado para mejor visualización */
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform; /* Optimización de performance */
  backface-visibility: hidden; /* Elimina flickering en transformaciones */
}

/* OVERLAY MEJORADO */
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(10, 11, 94, 0.1) 0%,
    rgba(10, 11, 94, 0.7) 50%,
    rgba(19, 19, 19, 0.95) 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: flex-end;
  padding: 30px;
}

.project-info {
  transform: translateY(30px);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
  color: white;
  width: 100%;
}

/* CATEGORÍA */
.project-category {
  display: inline-block;
  background: rgba(255, 255, 255, 0.95);
  color: rgb(22, 9, 139);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* TÍTULO Y DESCRIPCIÓN */
.project-title {
  font-size: 1.6rem;
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.project-description {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 20px;
  line-height: 1.5;
  max-height: 4.5em; /* Limita a 3 líneas */
  overflow: hidden;
}

/* TECNOLOGÍAS */
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tech span {
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 15px;
  font-size: 0.8rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

/* EFECTOS HOVER MEJORADOS */
.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover .project-image img {
  transform: scale(1.1) rotate(0.5deg); /* Pequeño efecto de "perspectiva" */
}

.gallery-item:hover .project-overlay {
  opacity: 1;
}

.gallery-item:hover .project-info {
  transform: translateY(0);
}

.gallery-item:hover .project-tech span {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE DESIGN
============================================ */

/* LAPTOPS PEQUEÑOS */
@media (max-width: 1200px) {
  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
  }
  
  .gallery-item {
    height: 320px;
  }
}

/* TABLETS */
@media (max-width: 992px) {
  .projects-gallery {
    padding: 60px 20px;
  }
  
  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 700px;
  }
  
  .gallery-item {
    height: 300px;
  }
  
  .project-overlay {
    padding: 25px;
  }
  
  .project-title {
    font-size: 1.4rem;
  }
}

/* TABLETS PEQUEÑAS Y MÓVILES GRANDES */
@media (max-width: 768px) {
  .gallery-container {
    grid-template-columns: 1fr; /* UNA COLUMNA VERTICAL */
    max-width: 500px;
    gap: 20px;
  }
  
  .gallery-item {
    height: 350px; /* Altura adecuada para móviles */
  }
  
  .section-subtitle {
    font-size: 1rem;
    padding: 0 15px;
  }
  
  /* En móviles, el overlay es visible por defecto */
  .project-overlay {
    opacity: 1;
    background: linear-gradient(
      to bottom,
      rgba(10, 11, 94, 0.3) 0%,
      rgba(10, 11, 94, 0.8) 60%,
      rgba(19, 19, 19, 0.95) 100%
    );
  }
  
  .project-info {
    transform: translateY(0);
  }
  
  /* Efectos hover desactivados en móviles */
  .gallery-item:hover .project-image img {
    transform: none;
  }
  
  .gallery-item:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  }
}

/* MÓVILES PEQUEÑOS */
@media (max-width: 576px) {
  .projects-gallery {
    padding: 50px 15px;
  }
  
  .gallery-container {
    padding: 0 10px;
  }
  
  .gallery-item {
    height: 300px;
    border-radius: 16px;
  }
  
  .project-overlay {
    padding: 20px;
  }
  
  .project-title {
    font-size: 1.3rem;
  }
  
  .project-description {
    font-size: 0.9rem;
  }
  
  .project-category {
    padding: 5px 15px;
    font-size: 0.8rem;
  }
}

/* MÓVILES MUY PEQUEÑOS */
@media (max-width: 400px) {
  .gallery-item {
    height: 280px;
  }
  
  .project-overlay {
    padding: 15px;
  }
  
  .project-title {
    font-size: 1.2rem;
  }
  
  .project-tech {
    gap: 6px;
  }
  
  .project-tech span {
    padding: 4px 10px;
    font-size: 0.75rem;
  }
}

/* ============================================
   MEJORAS ESPECÍFICAS PARA IMÁGENES
============================================ */

/* Ajustes específicos por tipo de imagen */
.project-image {
  position: relative;
}

/* Efecto de carga progresiva */
.project-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    #f0f0f0 0%, 
    #e0e0e0 50%, 
    #f0f0f0 100%
  );
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.project-image.loaded::before {
  opacity: 0;
}

.project-image img {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-image.loaded img {
  opacity: 1;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Mejorar la visualización de imágenes específicas */
.project-image img[alt*="portal"] {
  object-position: center top;
}

.project-image img[alt*="dashboard"] {
  object-position: center center;
}

.project-image img[alt*="interfaz"] {
  object-position: left center;
}

/* ============================================
   ANIMACIONES ADICIONALES
============================================ */

.gallery-item {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Retrasos escalonados */
.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }

/* ============================================
   ACCESIBILIDAD Y MEJORAS UX
============================================ */

/* Focus styles para navegación por teclado */
.gallery-item:focus {
  outline: 3px solid #3b82f6;
  outline-offset: 3px;
}

/* Mejorar contraste en móviles */
@media (max-width: 768px) {
  .project-category {
    background: rgba(255, 255, 255, 0.95);
  }
  
  .project-tech span {
    background: rgba(255, 255, 255, 0.25);
  }
}

/* Optimización para toques en móviles */
@media (hover: none) and (pointer: coarse) {
  .gallery-item {
    cursor: default;
  }
  
  .project-overlay {
    opacity: 1;
  }
  
  .project-info {
    transform: translateY(0);
  }
}

/* ============================================
    Sección "Tecnologías"
============================================ */

.technologies {
  background-color: var(--light-color);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
}

.tech-item {
  text-align: center;
  padding: 20px;
  background-color: white;
  border-radius: 20px 0 20px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.tech-item:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tech-icon {
  font-size: 2rem;
  margin-bottom: 15px;
}

.tech-html {
  color: #e34f26;
}
.tech-css {
  color: #1572b6;
}
.tech-js {
  color: #f7df1e;
}
.tech-react {
  color: #61dafb;
}
.tech-node {
  color: #339933;
}
.tech-java {
  color: #d12020;
}

/* =================================
 SECCIÓN CONTACTO 
==================================*/

.contact {
  color: var(--dark-color);
  padding: 60px 0;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--light-color);
  min-height: 70vh;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
 
  z-index: 0;
}

.contact .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.contact .section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 15px auto 0;
    color: #0e1116;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* =================================
  LAYOUT DE DOS COLUMNAS CON REFLEJOS
==================================*/

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  perspective: 1000px;
}

.contact-column {
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
}

/* TARJETAS CON EFECTO CRISTAL Y REFLEJO */
.contact-card {
  background: linear-gradient(145deg, var(--light-color) 0%, #f0f2f5 100%);
  border-radius: 20px 0 20px 0;
  padding: 45px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.05),
    -20px -20px 60px var(--light-color),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(155, 155, 155, 0.9);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateZ(0);
}

.contact-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: rotate(45deg);
  transition: transform 0.6s ease;
  opacity: 0;
}

.contact-card:hover {
  transform: translateY(-10px) translateZ(20px);
  box-shadow: 25px 25px 70px rgba(0, 0, 0, 0.08),
    -25px -25px 70px var(--light-color), 0 0 40px rgba(40, 42, 43, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.95);
}

.contact-card:hover::before {
  opacity: 0.3;
  transform: rotate(45deg) translate(0, 0);
  animation: reflectionMove 1.5s ease-in-out;
}

@keyframes reflectionMove {
  0% {
    transform: rotate(45deg) translate(-100%, -100%);
  }
  100% {
    transform: rotate(45deg) translate(100%, 100%);
  }
}

.card-title {
  font-size: 1rem;
  color: var(--dark-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 700;
  position: relative;
}

.card-title i {
  color: var(--accent-color);
  font-size: 1.5rem;
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--primary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(40, 42, 43, 0.2));
}

.card-description {
  color: var(--dark-color);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  opacity: 0.9;
}

/* FORMULARIO CON EFECTOS */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 15px;
}

.form-group {
  margin-bottom: 15px;
  position: relative;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--dark-color);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group label i {
  color: var(--primary-color);
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 4px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  color: var(--dark-color);
  background: var(--light-color);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--dark-color);
  font-size: 0.95rem;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(40, 42, 43, 0.2),
    inset 3px 3px 8px rgba(0, 0, 0, 0.05),
    inset -3px -3px 8px var(--light-color);
  transform: translateY(-2px);
}

.form-input:hover,
.form-textarea:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.form-group:hover label i {
  transform: scale(1.2) rotate(10deg);
  color: var(--accent-color);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background:linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, rgba(9, 9, 121, 1) 35%, rgb(0, 98, 255) 100%);
  color: var(--light-color);
  border: none;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 5px;
  box-shadow: 0 10px 30px rgba(40, 42, 43, 0.3), 0 4px 15px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.7s ease;
}

.submit-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(40, 42, 43, 0.4), 0 6px 20px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  background: linear-gradient(
    135deg,
    var(--secondary-color) 0%,
    var(--primary-color) 100%
  );
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn i {
  font-size: 1.2rem;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.submit-btn:hover i {
  transform: translateX(5px) rotate(15deg);
}

/* OPCIONES DE CONTACTO CON EFECTO FLOTANTE */
.contact-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 35px;
  flex: 1;
}

.contact-option {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--light-color);
  border-radius: 18px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 8px 8px 24px rgba(0, 0, 0, 0.05),
    -8px -8px 24px var(--light-color);
}

.contact-option::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.contact-option:hover {
  transform: translateX(10px) translateY(-5px);
  box-shadow: 15px 15px 35px rgba(0, 0, 0, 0.08),
    -15px -15px 35px var(--light-color), 0 0 30px rgba(40, 42, 43, 0.1);
  border-color: rgba(40, 42, 43, 0.2);
}

.contact-option:hover::after {
  transform: translateX(100%);
}

.option-icon {
  width: 55px;
  height: 55px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.option-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0) 50%
  );
}

.contact-option:hover .option-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.whatsapp-option .option-icon {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.email-option .option-icon {
  background: linear-gradient(135deg, #4285f4, #34a853);
}

.instagram-option .option-icon {
  background: linear-gradient(
    45deg,
    #405de6,
    #5851db,
    #833ab4,
    #c13584,
    #e1306c,
    #fd1d1d
  );
}

.option-content {
  flex: 1;
}

.option-content h4 {
  color: var(--dark-color);
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.option-content p {
  color: var(--dark-color);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 6px;
  opacity: 0.9;
}

.option-status {
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.option-status::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent-color);
  border-radius: 50%;
  display: inline-block;
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.option-arrow {
  color: var(--primary-color);
  font-size: 1.1rem;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.contact-option:hover .option-arrow {
  opacity: 1;
  transform: translateX(8px) scale(1.2);
  color: var(--accent-color);
}

/* ======================================
  RESPONSIVE DESIGN CON ESTILO
===================================== */

@media (max-width: 992px) {
  .contact {
    padding: 60px 0;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 35px;
    max-width: 700px;
  }

  .contact-card {
    padding: 35px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .contact {
    padding: 50px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-title::after {
    width: 80px;
  }

  .section-subtitle {
    font-size: 1rem;
    padding: 0 15px;
  }

  .card-title {
    font-size: 1.4rem;
  }

  .contact-card {
    padding: 30px;
    border-radius: 20px;
  }

  .contact-option {
    padding: 18px;
    gap: 18px;
  }

  .option-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .form-input,
  .form-textarea {
    padding: 14px 18px;
    border-radius: 14px;
  }

  .submit-btn {
    padding: 12px;
    font-size: 1rem;
    text-decoration: none;
  }
}

@media (max-width: 576px) {
  .contact {
    padding: 40px 0;
  }

  .contact-card {
    padding: 25px;
    border-radius: 18px;
  }

  .contact-option {
    flex-direction: row;
    text-align: center;
    gap: 5px;
    border-radius: 16px;
  }

  .option-content {
    text-align: center;
  }

  .option-arrow {
    display: none;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

/* ANIMACIONES Y EFECTOS ESPECIALES */
@keyframes floatIn {
  0% {
    opacity: 0;
    transform: translateY(30px) rotateX(10deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

@keyframes cardGlow {
  0%,
  100% {
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.05),
      -20px -20px 60px var(--light-color),
      inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  }
  50% {
    box-shadow: 25px 25px 70px rgba(0, 0, 0, 0.08),
      -25px -25px 70px var(--light-color), 0 0 40px rgba(40, 42, 43, 0.1),
      inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  }
}

.contact-column {
  animation: floatIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  opacity: 0;
}

.form-column {
  animation-delay: 0.1s;
}

.info-column {
  animation-delay: 0.2s;
}

/* Efecto de pulso sutil en hover */
.contact-card:hover {
  animation: cardGlow 3s infinite;
}
/* ===========================================
    Footer 
=============================================*/
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: "Raleway", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  display: inline-block;
  text-decoration: none;
}

.footer-links h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #bbb;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--light-color);
  transform: translateY(-5px);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #bbb;
  font-size: 0.9rem;
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.zoom-effect {
  transition: transform 0.5s ease;
}

.zoom-effect:hover {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 992px) {
  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }


  .hero-content {
    text-align: center;
    max-width: 100%;
  }

  .carousel-arrow {
    display: none;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  section {
    padding: 60px 0;
  }

  .tabs {
    flex-direction: column;
    align-items: center;
  }

  .tab-btn {
    width: 100%;
    max-width: 300px;
    margin-bottom: 10px;
    text-align: center;
  }

  .contact-details {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}

/* Estilos del Botón Top */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: blue;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(26, 10, 78, 0.4), 0 0 30px rgba(0, 7, 45, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.2);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  outline: none;
  overflow: hidden;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(26, 10, 78, 0.6), 0 0 40px rgba(0, 7, 45, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #2a1a8a 0%, #001155 50%, #3a3a5a 100%);
}

#back-to-top:active {
  transform: translateY(-2px) scale(0.98);
  transition: all 0.1s ease;
}

#back-to-top::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.7s ease;
}

#back-to-top:hover::before {
  left: 100%;
}

#back-to-top::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: pulseRing 2s infinite;
  opacity: 0;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.top-icon {
  position: relative;
  z-index: 2;
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

#back-to-top:hover .top-icon {
  transform: translateY(-2px);
}

/* Flecha SVG personalizada */
.top-icon svg {
  width: 100%;
  height: 100%;
}

.arrow-path {
  fill: #ffffff;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}