/* Hoja de estilos CSS para RM Digital - Plantilla de Portafolio Moderna */
@font-face {
  font-family: 'Aquawax';
  src: url('../assets/font/aquawax/Aquawax Light Trial.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Aquawax';
  src: url('../assets/font/aquawax/Aquawax Medium Trial.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Aquawax';
  src: url('../assets/font/aquawax/Aquawax Black Trial.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}

/* Estilos Base y Variables */
:root {
  /* Paleta de Colores Principal */
  --primary: #f59e0b;
  /* Ambar 500 */
  --primary-dark: #d97706;
  /* Ambar 600 */
  --dark: #0f172a;
  /* Azul Marino Profundo */
  --white: #ffffff;
  --gray: #64748b;
  --light-gray: #f1f5f9;

  /* Fondos */
  --bg-soft: #fffbeb;
  --bg-primary: #ffffff;
  --bg-secondary: #fdfaf6;

  /* Bordes y Sombras */
  --shadow-lg: 0 10px 15px -3px rgba(245, 158, 11, 0.1),
    0 4px 6px -2px rgba(245, 158, 11, 0.05);

  /* Transiciones */
  --transition: all 0.3s ease;
  --border-radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Aquawax", "Poppins", "Inter", sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: #f8fafc;
  overflow-x: hidden;
}


/* Animaciones de Scroll Reveal */
.reveal {
  opacity: 0;
  transition: all 1s ease;
}

.reveal-bottom {
  transform: translateY(50px);
}

.reveal-left {
  transform: translateX(-50px);
}

.reveal-right {
  transform: translateX(50px);
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}



h1,
h2,
h3,
h4,
h5 {
  font-family: "Aquawax", "Poppins", sans-serif;
  font-weight: 900;
  line-height: 1.3;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 0;
}

.section-padding {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.section-title p {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background-color: var(--primary);
  color: white;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.2);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: white;
}

.btn-accent {
  background-color: var(--accent);
  color: white;
}

/* Botón de WhatsApp llamativo para Hero */
.btn-whatsapp-hero {
  background: #25d366;
  border: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  animation: pulse-whatsapp 2s infinite;
}

.btn-whatsapp-hero:hover {
  background: #128c7e;
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
  animation: none;
}

.btn-whatsapp-hero i {
  font-size: 1.4rem;
}

@keyframes pulse-whatsapp {
  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);
  }
}

.btn-accent:hover {
  background-color: #e11570;
}

/* Cabecera y Navegación */
header {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1001;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 10px 0;
  border-bottom: none;
}

header.scrolled {
  top: 0;
  padding: 5px 0;
}

/* Configuracion de Temas Dinámicos de Cabecera */
header.header-light-theme .logo-light {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

header.header-light-theme .logo-dark {
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.9);
}

header.header-light-theme .logo-text {
  color: var(--white);
}

header.header-dark-theme .logo-light {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px) scale(0.9);
}

header.header-dark-theme .logo-dark {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

header.header-dark-theme .logo-text {
  color: var(--dark);
}

header.menu-open .header-container {
  backdrop-filter: blur(60px);
  -webkit-backdrop-filter: blur(60px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* El fondo del container cuando está abierto sigue el tema de la sección */
header.menu-open.header-light-theme .header-container {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

header.menu-open.header-dark-theme .header-container {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Forzar botones blancos con texto oscuro al desplegar */
header.menu-open .nav-links a {
  background: var(--white) !important;
  color: var(--dark) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

header.menu-open .nav-links a.active {
  background: var(--primary) !important;
  color: var(--dark) !important;
}

/* Efecto de Fondo Glassmorphism al Scrollear */
header.scrolled .header-container {
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 5px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 100px;
}

header.scrolled.header-light-theme .header-container {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

header.scrolled.header-dark-theme .header-container {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* El span (Digital) siempre es primario */
.logo-text span {
  color: var(--primary) !important;
}

/* Enlaces de navegación en Hero */
.nav-links {
  background: transparent;
  border: none;
}

.nav-links a {
  color: white;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2rem;
  font-weight: 900;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  transition: var(--transition);
  padding: 8px 12px;
  border-radius: 12px;
}



.logo-wrapper {
  position: relative;
  width: 45px;
  height: 45px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-wrapper .logo-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
}

.logo-img {
  width: 40px;
  height: auto;
  flex-shrink: 0;
  border-radius: 8px;
  transition: all 0.8s ease;
}

/* Las transiciones y posiciones base permanecen iguales para el efecto de intercambio suave */
.logo-img {
  width: 40px;
  height: auto;
  flex-shrink: 0;
  border-radius: 8px;
  transition: all 0.8s ease;
}

.logo-text {
  display: flex;
  flex-direction: row;
  /* Diseño extendido */
  align-items: center;
  gap: 6px;
  line-height: 1;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
  font-family: "Aquawax", sans-serif;
  font-weight: 900;
  transition: color 0.4s ease;
  color: var(--white);
}

.logo-text span {
  color: var(--primary);
}



/* Diseño de Navegación Principal - Diseño Horizontal */
/* Diseño de Navegación Principal - Estilo de Pastilla Flotante */
#mainNav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  border-radius: 0;
  backdrop-filter: none;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  /* Hereda el color del tema del header */
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 20px;
  border-radius: 30px;
  transition: color 0.4s ease, background 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
  position: relative;
}

header.header-light-theme .nav-links a {
  color: var(--white);
}

header.header-dark-theme .nav-links a {
  color: var(--dark);
}

.nav-links a:hover {
  color: var(--primary);
  background: rgba(245, 158, 11, 0.1);
}

.nav-links a.active,
header.scrolled .nav-links a.active {
  color: white;
  background: var(--primary);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 8px 15px rgba(245, 158, 11, 0.35);
  font-weight: 700;
  transform: translateY(-1px);
}

.nav-links a:active {
  transform: scale(0.95);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.4rem;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

header.menu-open .mobile-menu-btn {
  color: inherit;
}


.mobile-menu-btn:hover {
  color: var(--primary);
  transform: scale(1.1);
}

/* Sección Hero */
.hero {
  background: var(--dark);
  height: 65vh;
  min-height: 500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
  /* Para que la marca de agua no desborde */
}

.hero-watermark {
  position: absolute;
  right: -5%;
  top: 55%;
  transform: translateY(-50%);
  width: 35%;
  max-width: 450px;
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
}

/* El contenido principal flota sobre la marca de agua */

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-subtitle {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 25px;
  color: var(--white);
  line-height: 1.2;
}

.hero-text h1 span {
  color: var(--primary);
}

.hero-text p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
}

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 0;
}



/* Sección Servicios - Oscuro con Alto Contraste */
.services {
  background-color: #0f172a;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.services::before,
.services::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: url('../assets/img/Recurso 6.png') no-repeat center center/contain;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

.services::before {
  top: -100px;
  left: -150px;
  transform: rotate(-15deg);
}

.services::after {
  bottom: -100px;
  right: -150px;
  transform: rotate(15deg);
}

.services .section-title h2 {
  color: var(--primary);
}

.services .section-title p {
  color: #94a3b8;
}

/* Cuadrícula Visual de Servicios - Alto Impacto */
.services-visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.service-visual-item {
  position: relative;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  background: #1e293b;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.service-visual-img {
  width: 100%;
  height: 100%;
}

.service-visual-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  opacity: 0.6;
}

.service-visual-content {
  position: absolute;
  inset: 0;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
  transition: all 0.4s ease;
}

.service-visual-content i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  transition: all 0.4s ease;
  transform: translateY(20px);
  opacity: 0;
}

.service-visual-content h3 {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 12px;
  transition: all 0.4s ease;
}

.service-visual-content p {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 20px;
  line-height: 1.6;
  transition: all 0.4s ease;
  transform: translateY(20px);
  opacity: 0;
}

.service-visual-content .btn-sm {
  align-self: flex-start;
  padding: 8px 16px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

/* Efectos Hover */
.service-visual-item:hover .service-visual-img img {
  transform: scale(1.1);
  opacity: 0.4;
}

.service-visual-item:hover .service-visual-content {
  background: linear-gradient(to top, rgba(245, 158, 11, 0.2), rgba(15, 23, 42, 0.9));
}

.service-visual-item:hover i {
  transform: translateY(0);
  opacity: 1;
}

.service-visual-item:hover p,
.service-visual-item:hover .btn-sm {
  transform: translateY(0);
  opacity: 1;
}

.service-visual-item:hover h3 {
  color: var(--primary);
}

/* Estilo de Etiqueta Global */
.tag {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(245, 158, 11, 0.1);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 25px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Sección Nosotros */
.alternative-bg {
  background-color: var(--bg-soft);
  background-image: radial-gradient(circle at 0% 0%, rgba(245, 158, 11, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
  position: relative;
  overflow: hidden;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text h2 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 30px;
  color: var(--dark);
}

.about-text h2 span {
  color: var(--primary);
}

.about-text p {
  color: var(--gray);
  margin-bottom: 25px;
  font-size: 1.1rem;
  max-width: 550px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 40px 0;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.feature-info h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--dark);
}

.feature-info p {
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.4;
}



/* Imagen de Nosotros Mejorada */
.about-image-wrapper {
  position: relative;
  padding: 20px;
}

.about-image-wrapper img {
  width: 100%;
  border-radius: 40px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
  transition: transform 0.5s ease;
}

.about-image-wrapper:hover img {
  transform: translateY(-10px);
}

.experience-badge {
  position: absolute;
  bottom: 40px;
  left: -20px;
  background: white;
  padding: 25px;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  z-index: 3;
  animation: float 4s ease-in-out infinite;
}

.badge-content {
  text-align: center;
}

.badge-content .number {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.badge-content .text {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  margin-top: 5px;
  line-height: 1.2;
}

.blob-decorator {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 250px;
  height: 250px;
  background: var(--primary);
  filter: blur(80px);
  opacity: 0.15;
  border-radius: 50%;
  z-index: 1;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

  .about-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .about-features {
    justify-items: center;
  }

  .feature-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .experience-badge {
    left: 20px;
  }
}

/* Sección Portafolio */
.portfolio {
  background-color: #f8fafc;
  position: relative;
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 100px;
  color: var(--gray);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.2);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.portfolio-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  position: relative;
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.3));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(4px);
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

.portfolio-item:hover .portfolio-img img {
  transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-info {
  color: white;
}

.portfolio-info .category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 10px;
}

.portfolio-info h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: white;
}

.view-project {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: white;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.view-project:hover {
  background: white;
  color: var(--primary);
  transform: rotate(45deg);
}

/* Animación de Portafolio para Filtrado */
.portfolio-item.hide {
  display: none;
}

.portfolio-item.show {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Footer - Estilo Oscuro Premium */
footer {
  background-color: #0f172a;
  /* Azul más profundo para más contraste */
  color: var(--white);
  padding: 80px 0 40px;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-about .logo {
  color: white;
  padding: 0;
  margin-bottom: 20px;
  gap: 12px;
}

.footer-about .logo-img {
  width: 38px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.footer-about .logo-text {
  color: #ffffff;
}

.footer-about .logo-text span {
  color: var(--primary);
}

.footer-about p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 25px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary);
  transform: translateY(-5px) rotate(8deg);
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.footer-links h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  line-height: 1.5;
  color: #f3f4f6;
  /* Blanco más claro para el texto (Gris 100) */
  font-size: 0.95rem;
}

.footer-links li i {
  color: var(--primary);
  width: 32px;
  height: 32px;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.footer-links a {
  color: #f3f4f6;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-links li span {
  display: inline-block;
  opacity: 0.9;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Botones Flotantes */
.whatsapp-float {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.15) translateY(-5px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  background: var(--dark);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.whatsapp-tooltip::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 6px solid var(--dark);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  right: 80px;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

/* Estilos Responsivos */
@media (max-width: 992px) {
  .hero-content {
    max-width: 90%;
    gap: 30px;
  }

  .hero-text h1 {
    font-size: 2.8rem;
  }

  .header-container {
    padding: 10px 15px;
  }

  #mainNav {
    margin: 0 10px;
  }

  .nav-links {
    display: none;
    /* Ocultar enlaces de escritorio en tablets/móviles */
  }

  .mobile-menu-btn {
    display: block;
    margin-left: 10px;
    padding: 8px;
    font-size: 1.3rem;
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }

  .portfolio-filters {
    gap: 10px;
  }

  .filter-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
  }



  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    text-align: center;
    gap: 50px 30px;
  }

  .footer-about,
  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-about p {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Phablets y Tablets Pequeñas */
@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  .section-padding {
    padding: 60px 0;
  }

  header {
    padding: 15px 0;
  }

  header.scrolled {
    padding: 10px 0;
  }

  .header-container {
    width: 92%;
    margin: 0 auto;
    flex-direction: row;
    padding: 8px 18px;
    border-radius: 100px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
  }

  /* Fondos Responsivos según el Tema */
  header.header-light-theme .header-container {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  header.header-dark-theme .header-container {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  header.scrolled.header-dark-theme .header-container {
    background: rgba(255, 255, 255, 0.9);
  }

  .header-container::before,
  .header-container::after {
    display: none;
  }

  #mainNav {
    margin: 0 20px;
  }

  #mainNav::before,
  #mainNav::after {
    display: none;
  }

  .logo {
    padding: 8px 12px;
    font-size: 1.6rem;
  }

  .mobile-menu-btn {
    margin-left: 10px;
    padding: 8px;
    display: block;
    font-size: 1.25rem;
    color: inherit;
    /* Hereda el color del tema */
  }

  header.header-light-theme .mobile-menu-btn {
    color: var(--white);
  }

  header.header-dark-theme .mobile-menu-btn {
    color: var(--dark);
  }

  .hero {
    height: auto;
    min-height: 450px;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    gap: 15px;
  }

  .btn-whatsapp-hero,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .nav-links {
    display: flex;
    /* Mostrar como flex cuando está activo/modo desplegable */
    position: fixed;
    top: 85px;
    left: 15px;
    right: 15px;
    width: auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
    flex-direction: column;
    align-items: center;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-150%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    gap: 15px;
    border-radius: 32px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
    visibility: visible;
  }

  .nav-links li {
    margin: 0;
    width: 100%;
    max-width: 320px;
    /* Se mantuvo el existente */
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    margin: 0;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark) !important;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  }

  .nav-links a:hover {
    background: rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
  }

  .nav-links a.active {
    color: var(--dark) !important;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2);
    transform: scale(1.02);
  }

  .nav-links a:active {
    transform: scale(0.96);
  }

  .nav-links a.active::after {
    display: none;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }

  .btn-whatsapp-hero {
    padding: 14px 24px;
    font-size: 0.9rem;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-btns .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .portfolio-info h3 {
    font-size: 1.2rem;
  }
}

/* Smartphones */
@media (max-width: 576px) {
  .hero-text p {
    font-size: 1.1rem;
  }

  .hero {
    background: var(--dark);
    height: auto;
    min-height: 400px;
    padding: 100px 20px 60px;
    overflow: hidden;
  }

  .hero-watermark {
    width: 60%;
    right: -15%;
    bottom: -10%;
    top: auto;
    transform: none;
    opacity: 0.05;
  }

  .services-visual-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-visual-item {
    height: 320px;
  }

  .service-visual-content {
    padding: 25px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.4));
  }

  .service-visual-content i,
  .service-visual-content p,
  .service-visual-content .btn-sm {
    transform: translateY(0);
    opacity: 1;
  }

  .service-visual-img img {
    opacity: 0.4;
  }

  .about-text h2 {
    font-size: 2.2rem;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-image-wrapper {
    padding: 10px;
  }

  .about-image-wrapper img {
    border-radius: 25px;
  }

  .experience-badge {
    padding: 15px;
    border-radius: 20px;
    bottom: 20px;
    left: 0;
  }

  .badge-content .number {
    font-size: 1.6rem;
  }

  .social-links {
    justify-content: center;
  }

  .whatsapp-float {
    bottom: 90px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 26px;
  }

  .whatsapp-tooltip {
    display: none !important;
  }

  .back-to-top {
    bottom: 25px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .services::before,
  .services::after {
    width: 250px;
    height: 250px;
    opacity: 0.02;
  }
}

/* Extra Pequeño (Ejem: iPhone SE) */
@media (max-width: 320px) {
  .header-container {
    width: 94%;
    padding: 6px 12px;
    margin: 0 auto;
  }

  .logo {
    padding: 6px 10px;
    gap: 8px;
  }

  .logo-img {
    width: 35px;
  }

  .logo-text {
    font-size: 1.3rem;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }

  .about-text h2 {
    font-size: 1.8rem;
  }

  .about-features {
    gap: 15px;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .service-visual-item {
    height: 300px;
  }

  .footer-links h4 {
    font-size: 1.1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .whatsapp-float,
  .back-to-top {
    width: 45px;
    height: 45px;
    font-size: 20px;
    bottom: 20px;
    right: 15px;
  }

  .whatsapp-float {
    bottom: 75px;
  }
}