/* ===== VARIABLES CSS PREMIUM 3D OPTIMIZED ===== */
:root {
  /* Colores principales vibrantes */
  --primary-color: #0066ff;
  --primary-dark: #0052cc;
  --primary-light: #3d85ff;
  --secondary-color: #8b5cf6;
  --secondary-dark: #7c3aed;
  --secondary-light: #a78bfa;
  
  /* Configuraciones de rendimiento */
  --reduced-motion: 0; /* Se establecerá en 1 si el usuario prefiere movimiento reducido */
  
  /* Colores vibrantes adicionales */
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-orange: #f97316;
  --accent-pink: #ec4899;
  --accent-yellow: #fbbf24;
  --accent-gold: #ffcc00;
  --accent-mint: #3eb489;
  
  /* Colores de texto */
  --title-color: #0f172a;
  --text-color: #334155;
  --text-light: #241e79;
  --white-color: #ffffff;
  --text-muted: #e4dbdb;
  --text-dark: #111111;
  
  /* Colores de fondo vibrantes */
  --body-color: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --container-color: rgba(255, 255, 255, 0.95);
  --section-bg: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --section-bg-alt: linear-gradient(135deg, #124c7e 0%, #91752a 100%);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.3);
  
  /* Gradientes premium animados */
  --gradient-primary: linear-gradient(135deg, #49577a 10%, #998412 40%, #ece8dd 100%);
  --gradient-secondary: linear-gradient(135deg, #f97316 0%, #ec4899 50%, #8b5cf6 100%);
  --gradient-hero: linear-gradient(135deg, #d2e2e9e0 0%, #54338ec5 50%, #c57f1b 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.1) 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
  
  /* Gradientes animados para fondos */
  --animated-bg-1: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  --animated-bg-2: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c);
  --animated-bg-3: linear-gradient(-45deg, #4facfe, #00f2fe, #43e97b, #38f9d7);
  
  /* Tipografía */
  --body-font: 'Inter', sans-serif;
  --biggest-font-size: 3rem;
  --h1-font-size: 2.25rem;
  --h2-font-size: 1.875rem;
  --h3-font-size: 1.5rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.75rem;
  
  /* Peso de fuente */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;
  
  /* Espaciado */
  --margin-0-5: 0.5rem;
  --margin-1: 1rem;
  --margin-1-5: 1.5rem;
  --margin-2: 2rem;
  --margin-2-5: 2.5rem;
  --margin-3: 3rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  
  /* Z-index */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
  
  /* Sombras 3D premium */
  --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-large: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);
  --shadow-3d: 0 20px 60px rgba(0, 102, 255, 0.3), 0 10px 30px rgba(139, 92, 246, 0.2);
  --shadow-glass: 0 8px 32px rgba(31, 38, 135, 0.37);
  --shadow-neon: 0 0 20px rgba(0, 102, 255, 0.6), 0 0 40px rgba(139, 92, 246, 0.4);
  --shadow-card-3d: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  
  /* Border radius premium */
  --border-radius-sm: 0.5rem;
  --border-radius-md: 0.75rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
  --border-radius-3d: 2rem;
  --radius-lg: 1rem;
  --radius-2xl: 1.25rem;
  --radius-full: 50%;
  
  /* Transiciones premium */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-elastic: 0.8s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  
  /* Perspectiva 3D */
  --perspective: 1000px;
  --perspective-origin: center center;
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media screen and (max-width: 992px) {
  :root {
    --biggest-font-size: 2.5rem;
    --h1-font-size: 2rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 0.938rem;
    --small-font-size: 0.813rem;
    --smaller-font-size: 0.75rem;
  }
}

/* === Responsive: General === */
html {
    box-sizing: border-box;
    font-size: 16px;
}
@media (max-width: 1200px) {
    html { font-size: 15px; }
}
@media (max-width: 900px) {
    html { font-size: 14px; }
}
@media (max-width: 700px) {
    html { font-size: 13px; }
}
@media (max-width: 500px) {
    html { font-size: 12px; }
}
@media (max-width: 400px) {
    html { font-size: 11px; }
}
@media (max-width: 350px) {
    html { font-size: 10px; }
}

body {
    min-width: 320px;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* ===== BASE ===== */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background: var(--animated-bg-1);
  background-size: 400% 400%;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Fondo simplificado - sin animaciones pesadas por defecto */
body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-size: 100% 100%;
  background-attachment: fixed;
}

/* Animación de gradiente opcional solo para dispositivos de gama alta */
@media (min-width: 1200px) and (prefers-reduced-motion: no-preference) {
  body:not(.reduced-motion) {
    background-size: 300% 300%;
    animation: gradientAnimation 30s ease infinite;
  }
}

/* Animación de fondo gradiente optimizada */
@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Partículas optimizadas solo para desktop */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
      radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.15) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%);
    animation: particleFloat 40s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
    will-change: transform;
  }
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  line-height: 1.2;
}

ul {
  list-style: none;
}

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

img {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

/* ===== REUSABLE CSS CLASSES ===== */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--margin-1);
  padding-right: var(--margin-1);
}

.grid {
  display: grid;
  gap: var(--margin-2);
}

.section {
  padding: 6rem 0 4rem;
}

.section__header {
  text-align: center;
  margin-bottom: var(--margin-3);
}

.section__title {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin-bottom: var(--margin-1);
  position: relative;
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-sm);
}

.section__subtitle {
  font-size: 1.4rem;
  color: white;
  max-width: 600px;
  margin: 0 auto;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== BUTTONS 3D PREMIUM ===== */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-xl);
  font-weight: var(--font-semi-bold);
  font-size: var(--normal-font-size);
  transition: var(--transition-medium);
  text-align: center;
  cursor: pointer;
  border: none;
  position: relative;
  transform-style: preserve-3d;
  perspective: var(--perspective);
  overflow: hidden;
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: var(--transition-medium);
}

.button:hover::before {
  left: 100%;
}

.button-primary {
  background: var(--gradient-primary);
  color: var(--white-color);
  box-shadow: var(--shadow-3d);
  border: 0px solid rgba(255,255,255,0.2);
}

.button-primary:hover {
  transform: translateY(-5px) rotateX(10deg);
  box-shadow: var(--shadow-neon), var(--shadow-3d);
  animation: buttonPulse 0.6s ease-in-out;
}

.button-primary:active {
  transform: translateY(-2px) rotateX(5deg);
}

.button-secondary {
  background: var(--gradient-glass);
  backdrop-filter: blur(20px);
  color: var(--white-color);
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: var(--shadow-glass);
}

.button-secondary:hover {
  background: var(--gradient-secondary);
  transform: translateY(-5px) rotateX(10deg);
  box-shadow: var(--shadow-neon);
}

@keyframes buttonPulse {
  0% { transform: translateY(-5px) rotateX(10deg) scale(1); }
  50% { transform: translateY(-7px) rotateX(15deg) scale(1.05); }
  100% { transform: translateY(-5px) rotateX(10deg) scale(1); }
}

/* ===== HEADER & NAVIGATION PREMIUM ===== */
.header {
  width: 100%;
  background: var(--gradient-glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  box-shadow: var(--shadow-glass);
  transition: var(--transition-medium);
  transform-style: preserve-3d;
}

.nav {
  height: 4.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    z-index: 1003;
}

.nav__logo-icon {
    color: #00dbde;
    font-size: 1.7rem;
    filter: drop-shadow(0 2px 8px #00dbde55);
    background: #fff1;
    border-radius: 8px;
    padding: 0.2rem 0.4rem;
    box-shadow: 0 2px 8px #00dbde22;
    animation: logoSpinY 2.5s linear infinite;
    /* Efecto 3D */
    transform-style: preserve-3d;
    perspective: 600px;
}

@keyframes logoSpinY {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* VARIANTES DE GRADIENTE PARA EL LOGO DEL HEADER */
/* Variante 1: Azul-Celeste (actual)
background: linear-gradient(90deg, #00dbde 0%, #fc00ff 100%); */

/* Variante 2: Dorado elegante */
/* background: linear-gradient(90deg, #f6d365 0%, #fda085 100%); */

/* Variante 3: Azul premium */
/* background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); */

/* Variante 4: Naranja-Rosa vibrante */
/* background: linear-gradient(90deg, #f7971e 0%, #ffd200 40%, #f44369 100%); */

.nav__logo-text-gradient {
    background: none !important;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    text-fill-color: unset;
    color: unset;
    font-weight: 900;
    letter-spacing: 0.02em;
    font-size: 1.5rem;
    transition: filter 0.3s;
    display: flex;
    gap: 0;
}

.logo-black {
    color: #181c22;
}
.logo-white {
    color: #ffffff;
}
.logo-blue {
    color: #2196f3;
    font-weight: 900;
}
.logo-orange {
    color: #e08a1e;
    font-weight: 900;
}

.nav__list {
  display: flex;
  gap: var(--margin-2);
}

.nav__link {
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  transition: var(--transition-medium);
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-lg);
  transform-style: preserve-3d;
}

.nav__link:hover,
.nav__link.active-link {
  color: var(--white-color);
  background: var(--gradient-glass);
  backdrop-filter: blur(10px);
  transform: translateY(-2px) rotateX(10deg);
  box-shadow: var(--shadow-medium);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  transition: var(--transition-medium);
  border-radius: var(--border-radius-sm);
}

.nav__link:hover::after,
.nav__link.active-link::after {
  width: 80%;
  box-shadow: 0 0 10px rgba(0, 102, 255, 0.8);
}

.nav__toggle,
.nav__close {
  display: none;
  font-size: 1.5rem;
  color: var(--title-color);
  cursor: pointer;
}

/* === Hamburguesa y menú responsive === */
.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    margin-left: auto;
}
.nav__toggle-bar {
    width: 28px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(.4,2,.6,1);
}

@media (max-width: 900px) {
    .nav__toggle {
        display: flex;
    }
    .nav__list {
        position: fixed;
        top: 0;
        right: -100vw;
        width: 70vw;
        max-width: 320px;
        height: 100vh;
        background: rgba(30,34,60,0.98);
        box-shadow: -8px 0 32px #0002;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.35s cubic-bezier(.4,2,.6,1);
        z-index: 1001;
    }
    .nav__list.nav__list--open {
        right: 0;
    }
    .nav__link {
        font-size: 1.2rem;
        width: 100%;
        padding: 0.7rem 0;
    }
    .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
        opacity: 0;
    }
    .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    .nav__logo {
        z-index: 1003;
    }
}

@media (max-width: 600px) {
    .nav__list {
        width: 90vw;
        max-width: 100vw;
        padding: 4rem 1rem 1rem 1rem;
    }
}

/* ===== HERO SECTION PREMIUM ===== */
.hero {
  padding-top: 8rem;
  background: var(--gradient-hero);
  background-size: 400% 400%;
  animation: gradientAnimation 20s ease infinite;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
  animation: particleMove 30s linear infinite;
  pointer-events: none;
}

@keyframes particleMove {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(-100px) translateY(-100px); }
}

.hero__container {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--margin-3);
}

.hero__data {
  text-align: left;
}

.hero__title {
  font-size: var(--biggest-font-size);
  font-weight: var(--font-bold);
  margin-bottom: var(--margin-1-5);
  line-height: 1.1;
}

.hero__description {
  font-size: var(--normal-font-size);
  color: aquamarine;
  margin-bottom: var(--margin-2-5);
  max-width: 500px;
}

.hero__buttons {
  display: flex;
  gap: var(--margin-1);
  margin-bottom: var(--margin-3);
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: var(--margin-2);
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat__number {
  display: block;
  font-size: var(--h3-font-size);
  font-weight: var(--font-bold);
  color: var(--primary-color);
}

.stat__text {
  font-size: var(--small-font-size);
  color: aquamarine;
}

.hero__img {
  text-align: center;
}

.hero__image {
  width: 100%;
  max-width: 500px;
  border-radius: var(--border-radius-3d);
  box-shadow: var(--shadow-3d);
  transition: var(--transition-slow);
  transform-style: preserve-3d;
  perspective: var(--perspective);
  border: 3px solid rgba(255,255,255,0.3);
}

.hero__image:hover {
  transform: scale(1.05) rotateY(10deg) rotateX(5deg);
  box-shadow: var(--shadow-neon), var(--shadow-3d);
  filter: brightness(1.1) contrast(1.1);
}

/* ===== SERVICES SECTION OPTIMIZED ===== */
.services {
  background: var(--section-bg-alt);
  position: relative;
}

/* Simplified background pattern - no heavy animations */
.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.services__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== SERVICE CARDS WITH ADVANCED 3D EFFECTS ===== */
.service__card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    max-width: 340px;
    margin: 0 auto;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.service__card:hover::before {
    left: 100%;
}

.service__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.service__icon i {
    font-size: 1.5rem;
    color: white;
}

.service__title {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
    text-align: center;
}

.service__description {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 1rem;
    text-align: center;
}

.service__features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.service__features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.service__features li i {
    color: #4f46e5;
    font-size: 1rem;
}

.service__price {
    text-align: center;
    margin-bottom: 1.5rem;
}

.price__amount {
    font-size: 2rem;
    font-weight: 700;
    color: #4f46e5;
}

.price__currency {
    font-size: 0.9rem;
    color: #6b7280;
    margin-left: 0.25rem;
}

.service__button {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.95rem;
    margin-top: auto;
}

.service__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ff9800;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Hover effects */
.service__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    position: relative;
    padding: 6rem 0;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: url('images/pattern-grid.png') repeat;
    opacity: 0.05;
    pointer-events: none;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial__card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.testimonial__quote {
    margin-bottom: 1.5rem;
}

.testimonial__text {
    color: #fff;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.testimonial__rating {
    color: #ffd700;
    margin-bottom: 1rem;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.testimonial__info {
    flex-grow: 1;
}

.testimonial__name {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
}

.testimonial__position {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* Portfolio Section */
.portfolio {
    background: var(--section-bg-alt);
    position: relative;
    padding: 6rem 0;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    pointer-events: none;
}

.portfolio__filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 3rem;
    flex-wrap: wrap;
}

.portfolio__filter {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.portfolio__filter:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.portfolio__filter.active {
    background: #FFA500;
    color: #fff;
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.3);
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio__item {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.portfolio__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.portfolio__image-container {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.portfolio__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio__item:hover .portfolio__image {
    transform: scale(1.1);
}

.portfolio__item:hover .portfolio__overlay {
    opacity: 1;
}

.portfolio__info {
    padding: 1.5rem;
    background: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.portfolio__category {
    color: #FFA500;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: inline-block;
    padding: 0.25rem 1rem;
    background: rgba(255, 165, 0, 0.1);
    border-radius: 15px;
    align-self: flex-start;
}

.portfolio__title {
    font-size: 1.25rem;
    color: #2d3748;
    margin: 0;
    font-weight: 600;
}

.portfolio__description {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0.5rem 0;
}

.portfolio__features {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.portfolio__feature {
    display: flex;
    align-items: center;
    gap: 0.5em;
    color: #fff;
    background: none;
    padding: 0;
    border-radius: 0;
    margin-bottom: 0.5em;
    font-size: 1em;
}

.portfolio__feature i {
    color: #FFA500;
    font-size: 0.8rem;
}

/* Animation classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .portfolio__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio__grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio__filters {
        gap: 0.5rem;
    }
    
    .portfolio__filter {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 700px) {
  .portfolio__filters {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #FFA500 #222;
    padding-bottom: 0.5rem;
  }
  .portfolio__filter {
    min-width: 170px;
    max-width: none;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: visible;
    font-size: 1.05rem;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
}
@media (max-width: 500px) {
  .portfolio__filter {
    min-width: 140px;
    font-size: 1rem;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }
}

/* Contact Section */
.contact {
    position: relative;
    overflow: hidden;
    background: #702e2e93;
    padding: var(--section-padding);
    color: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-glass);
    margin: var(--space-16) auto;
    max-width: 1200px;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(var(--accent-gold-rgb), 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 20%, rgba(var(--accent-mint-rgb), 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.contact__header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-8);
    position: relative;
    z-index: 1;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2xl);
}

.contact__info {
    padding: var(--space-10);
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.contact__info-header {
    margin-bottom: var(--space-8);
}

.contact__title {
    font-size: var(--font-size-2xl);
    color: var(--text-light);
    margin-bottom: var(--space-4);
}

.contact__description {
    color: var(--text-muted);
    line-height: 1.6;
}

.contact__methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.contact__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    transition: background-color var(--transition-base);
}

.contact__item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.contact__icon {
    width: 40px;
    height: 40px;
    background: var(--accent-gold);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    color: var(--text-dark);
    transition: transform var(--transition-base);
}

.contact__item:hover .contact__icon {
    transform: scale(1.1) rotate(10deg);
}

.contact__content {
    flex: 1;
}

.contact__method {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    margin-bottom: var(--space-1);
}

.contact__value {
    display: block;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-2);
}

.contact__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--accent-gold);
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: gap var(--transition-base);
}

.contact__link:hover {
    gap: var(--space-3);
}

.contact__link i {
    font-size: var(--font-size-xs);
    transition: transform var(--transition-base);
}

.contact__link:hover i {
    transform: translateX(2px);
}

.contact__social {
    margin-top: auto;
    padding-top: var(--space-6);
    border-top: 1px solid var(--glass-border);
}

.contact__social-text {
    display: block;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-4);
}

.contact__social-icons {
    display: flex;
    gap: var(--space-4);
}

.contact__social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all var(--transition-base);
}

.contact__social-icon:hover {
    background: var(--accent-gold);
    color: var(--text-dark);
    transform: translateY(-3px);
}

/* Form Styling */
.contact__form {
    padding: var(--space-10);
}

.contact__form-title {
    font-size: var(--font-size-2xl);
    color: var(--text-light);
    margin-bottom: var(--space-8);
}

.form {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.form__row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form__label {
    color: var(--text-light);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.form__input-group {
    position: relative;
}

.form__input-icon {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: var(--font-size-lg);
    pointer-events: none;
    transition: color var(--transition-base);
}

.form__input {
    width: 100%;
    padding: var(--space-4) var(--space-4) var(--space-4) var(--space-12);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--text-light);
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
}

.form__input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--accent-gold-rgb), 0.2);
}

.form__input:focus + .form__input-icon {
    color: var(--accent-gold);
}

.form__input::placeholder {
    color: var(--text-muted);
}

.form__textarea {
    min-height: 120px;
    resize: vertical;
}

.form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    background-size: var(--space-6);
    padding-right: var(--space-12);
}

.form__submit {
    margin-top: var(--space-4);
    width: 100%;
    justify-content: center;
    background: linear-gradient(135deg,#897529, var(--accent-orange));
    border: none;
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-lg);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all var(--transition-base);
}

.form__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(var(--accent-gold-rgb), 0.4);
}

.form__submit:active {
    transform: translateY(0);
}

/* ===== HEADER SERVICES ===== */
.services__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

.services__header .section__title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.services__header .section__subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: white;
    margin-bottom: 2rem;
}

.services__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.divider__line {
    height: 2px;
    width: 60px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.divider__icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== HEADER TESTIMONIALS ===== */
.testimonials__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 2rem 2.5rem;
    background: rgba(30, 34, 60, 0.85); /* Más opaco y oscuro */
    border-radius: 1.5rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
    border: 1.5px solid rgba(255,255,255,0.12);
}

.testimonials__header .section__title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 12px #0008, 0 1px 0 #fff4;
    font-weight: 900;
}

.testimonials__header .section__title .text-gradient {
    background: linear-gradient(90deg, #ffe259 0%, #ffa751 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px #ffe25955);
}

.testimonials__header .section__subtitle {
    font-size: 1.18rem;
    line-height: 1.7;
    color: #e4e4e4;
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px #0006;
    font-weight: 500;
}

.testimonials__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonials__divider .divider__line {
    height: 2px;
    width: 60px;
    background: linear-gradient(90deg, transparent, white, transparent);
}

.testimonials__divider .divider__icon {
    color: rgb(241, 241, 241);
    font-size: 1.3rem;
    animation: pulse 2s infinite;
}

/* ===== HEADER PORTFOLIO ===== */
.portfolio__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.10);
}

.portfolio__header .section__title {
    font-size: 2.3rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.portfolio__header .section__subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color-light);
    margin-bottom: 2rem;
}

.portfolio__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.portfolio__divider .divider__line {
    height: 2px;
    width: 60px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.portfolio__divider .divider__icon {
    color: var(--primary-color);
    font-size: 1.3rem;
    animation: pulse 2s infinite;
}

/* ===== PREMIUM FOOTER STYLES ===== */
.premium-footer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #181c2b 0%, #232946 100%);
    color: #fff;
    padding: 0;
    margin-top: 6rem;
    box-shadow: 0 -8px 32px rgba(31, 38, 135, 0.18);
    animation: footer-fade-in 1.2s cubic-bezier(0.23,1,0.32,1);
}

@keyframes footer-fade-in {
    0% { opacity: 0; transform: translateY(60px); }
    100% { opacity: 1; transform: translateY(0); }
}

.footer__background {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at 70% 30%, rgba(80,120,255,0.10) 0%, transparent 70%),
                radial-gradient(circle at 20% 80%, rgba(120,80,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.footer__main {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 4rem 2rem 2rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255,255,255,0.04);
    border-radius: 1.5rem 1.5rem 0 0;
    box-shadow: 0 4px 32px rgba(0,0,0,0.10);
    backdrop-filter: blur(8px);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.footer__logo-icon {
    background: linear-gradient(280deg, #3a77b4a2 0%, #e07f00b4 100%);
    color: #fff;
    border-radius: 12px;
    padding: 0.5rem 0.7rem;
    font-size: 2.2rem;
    box-shadow: 0 2px 12px rgba(58,141,222,0.15);
    animation: code-glow 2.5s infinite alternate;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes code-glow {
    0% { box-shadow: 0 0 12px #3a8dde55, 0 0 0 #7f53ac00; }
    100% { box-shadow: 0 0 24px #7f53ac99, 0 0 16px #3a8dde44; }
}

.footer__brand-gradient {
    background: linear-gradient(90deg, #3a8dde 0%, #7f53ac 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: 0.02em;
    font-size: 1.2rem;
    transition: all 0.5s ease;
    text-shadow: 0 0 10px rgba(58, 141, 222, 0.5), 0 0 20px rgba(127, 83, 172, 0.3);
    animation: brandGlow 3s ease-in-out infinite alternate;
}

@keyframes brandGlow {
    0% {
        text-shadow: 0 0 10px rgba(58, 141, 222, 0.5), 0 0 20px rgba(127, 83, 172, 0.3);
    }
    100% {
        text-shadow: 0 0 15px rgba(58, 141, 222, 0.8), 0 0 30px rgba(127, 83, 172, 0.6);
    }
}

.footer__brand-gradient:hover {
    background: linear-gradient(90deg, #7f53ac 0%, #3a8dde 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    filter: brightness(1.2) drop-shadow(0 2px 8px #3a8dde55);
    cursor: pointer;
    text-shadow: 0 0 20px rgba(58, 141, 222, 0.9), 0 0 40px rgba(127, 83, 172, 0.8);
    animation: none;
}

.footer__description {
    font-size: 1.15rem;
    margin-bottom: 2.2rem;
    color: #e0e0e0;
    line-height: 1.7;
}

.footer__highlight {
    color: #3a8dde;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.premium-social {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.premium-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,219,222,0.10);
    transition: background 0.3s, color 0.3s, transform 0.2s;
    position: relative;
}
.premium-social-link:hover {
    background: linear-gradient(135deg, #00dbde 0%, #fc00ff 100%);
    color: #fff;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 4px 24px #fc00ff44;
}

.footer__divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00dbde 40%, #fc00ff 60%, transparent);
    margin: 2rem 0 1.5rem 0;
    opacity: 0.7;
}

.footer__bottom {
    text-align: center;
    padding-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.footer__copy {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.6;
}

.footer__slogan {
    color: #7f53ac;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.footer__glow {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 600px;
    height: 120px;
    background: radial-gradient(circle, #ad7d2255 0%, transparent 80%);
    filter: blur(32px);
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
    animation: glow-move 8s ease-in-out infinite alternate;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes glow-move {
    0% { left: 40%; opacity: 0.7; }
    100% { left: 60%; opacity: 1; }
}

@media (max-width: 600px) {
    .footer__main {
        padding: 2.5rem 1rem 1.5rem 1rem;
    }
    .footer__logo, .footer__brand-gradient {
        font-size: 1.4rem;
    }
    .footer__glow {
        width: 300px;
        height: 60px;
    }
}

/* === Responsive: General === */
html {
    box-sizing: border-box;
    font-size: 16px;
}
@media (max-width: 1200px) {
    html { font-size: 15px; }
}
@media (max-width: 900px) {
    html { font-size: 14px; }
}
@media (max-width: 700px) {
    html { font-size: 13px; }
}
@media (max-width: 500px) {
    html { font-size: 12px; }
}
@media (max-width: 400px) {
    html { font-size: 11px; }
}
@media (max-width: 350px) {
    html { font-size: 10px; }
}

body {
    min-width: 320px;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* === Responsive: Secciones === */
.section__title {
    font-size: 2.2rem;
}
.section__subtitle {
    font-size: 1.1rem;
}
@media (max-width: 600px) {
    .section__title { font-size: 1.5rem; }
    .section__subtitle { font-size: 0.98rem; }
}
@media (max-width: 400px) {
    .section__title { font-size: 1.1rem; }
    .section__subtitle { font-size: 0.85rem; }
}

/* === Responsive: Grids y Cards === */
.portfolio__grid, .testimonials__grid, .services__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2rem;
}
@media (max-width: 700px) {
    .portfolio__grid, .testimonials__grid, .services__container {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
}

/* === Responsive: Footer y Header === */
.premium-footer .footer__main {
    padding: 2rem 0.5rem 1.2rem 0.5rem;
    border-radius: 1rem 1rem 0 0;
}
@media (max-width: 600px) {
    .premium-footer .footer__main {
        padding: 1.2rem 0.2rem 0.8rem 0.2rem;
        border-radius: 0.7rem 0.7rem 0 0;
    }
}

.header, .nav__list {
    flex-wrap: wrap;
}
@media (max-width: 600px) {
    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* === Responsive: Formularios === */
.form__row {
    display: flex;
    gap: 1.2rem;
}
@media (max-width: 700px) {
    .form__row {
        flex-direction: column;
        gap: 0.5rem;
    }
}
.form__group, .form__input, .form__textarea, .form__select {
    width: 100%;
    min-width: 0;
}

/* === Responsive: Contacto === */
.contact__container {
    display: flex;
    gap: 2rem;
}
@media (max-width: 900px) {
    .contact__container {
        flex-direction: column;
        gap: 1.2rem;
    }
}

/* === Responsive: Imágenes === */
img, .portfolio__image, .testimonial__avatar {
    max-width: 100%;
    height: auto;
    border-radius: 0.7rem;
}

/* === Extra: Evitar overflow en pantallas antiguas === */
@media (max-width: 350px) {
    .footer__brand-gradient, .footer__logo, .footer__slogan {
        font-size: 1rem !important;
    }
    .footer__description, .footer__copy {
        font-size: 0.8rem !important;
    }
    .premium-social-link {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* Notificación de formulario */
.form-notification {
  display: none;
  background: linear-gradient(90deg, #00dbde 0%, #fc00ff 100%);
  color: #fff;
  font-weight: 600;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 24px #00dbde33;
  margin-bottom: 1.2rem;
  text-align: center;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  z-index: 10;
  animation: fadeInNotif 0.5s;
}
.form-notification.error {
  background: linear-gradient(90deg, #f44336 0%, #ff9800 100%);
}
@keyframes fadeInNotif {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .portfolio__filters {
    flex-direction: column;
    align-items: stretch;
    overflow-x: visible;
    gap: 0.7rem;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
  }
  .portfolio__filter {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-bottom: 0;
    font-size: 1.08rem;
    text-align: left;
    justify-content: flex-start;
    border-radius: 18px;
    white-space: normal;
    overflow: visible;
  }
}