/*
 Theme Name:   CyP Publicidad Child
 Theme URI:    https://cypublicidad.com
 Description:  Child theme de Astra para C&P Publicidad
 Author:       C&P Publicidad
 Author URI:   https://cypublicidad.com
 Template:     astra
 Version:      1.0.1
 Text Domain:  cyp-child
*/

/* ============================================================
   VARIABLES GLOBALES — Paleta del logo C&P Publicidad
   ============================================================ */
:root {
  --color-amarillo:   #FFE000;
  --color-rojo:       #E03030;
  --color-cyan:       #1BAAD4;
  --color-cyan-dark:  #127A9B;
  --color-navy:       #0D3B52;
  --color-blanco:     #FFFFFF;
  --color-gris-claro: #F5F5F5;
  --color-gris:       #888888;
  --color-texto:      #1A1A1A;

  --fuente-titulo: 'Montserrat', sans-serif;
  --fuente-cuerpo: 'Open Sans', sans-serif;

  --radius:       8px;
  --radius-lg:    16px;
  --sombra:       0 4px 20px rgba(0, 0, 0, 0.10);
  --sombra-hover: 0 8px 32px rgba(27, 170, 212, 0.25);
  --transicion:   all 0.3s ease;
}

/* ============================================================
   RESET Y BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--fuente-cuerpo);
  color: var(--color-texto);
  background-color: var(--color-blanco);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transicion);
}

ul {
  list-style: none;
}

/* ============================================================
   TIPOGRAFÍA
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--fuente-titulo);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }

p {
  font-size: 1rem;
  color: var(--color-texto);
  margin-bottom: 1rem;
}

.texto-cyan   { color: var(--color-cyan); }
.texto-rojo   { color: var(--color-rojo); }
.texto-amarillo { color: var(--color-amarillo); }
.texto-blanco { color: var(--color-blanco); }

/* ============================================================
   LAYOUT — CONTENEDOR
   ============================================================ */
.cyp-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.cyp-section {
  padding: 80px 0;
}

.cyp-section--gris {
  background-color: var(--color-gris-claro);
}

.cyp-section--oscuro {
  background-color: var(--color-navy);
  color: var(--color-blanco);
}

.cyp-section__header {
  text-align: center;
  margin-bottom: 56px;
}

.cyp-section__header h2 {
  margin-bottom: 12px;
}

.cyp-section__header p {
  font-size: 1.1rem;
  color: var(--color-gris);
  max-width: 600px;
  margin: 0 auto;
}

.cyp-section__linea {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-amarillo), var(--color-cyan));
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ============================================================
   BOTONES
   ============================================================ */
.cyp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--fuente-titulo);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transicion);
  white-space: nowrap;
}

.cyp-btn--primario {
  background-color: var(--color-cyan);
  color: var(--color-blanco);
  border-color: var(--color-cyan);
}

.cyp-btn--primario:hover {
  background-color: var(--color-cyan-dark);
  border-color: var(--color-cyan-dark);
  transform: translateY(-2px);
  box-shadow: var(--sombra-hover);
}

.cyp-btn--secundario {
  background-color: transparent;
  color: var(--color-blanco);
  border-color: var(--color-blanco);
}

.cyp-btn--secundario:hover {
  background-color: var(--color-blanco);
  color: var(--color-cyan);
  transform: translateY(-2px);
}

.cyp-btn--amarillo {
  background-color: var(--color-amarillo);
  color: var(--color-navy);
  border-color: var(--color-amarillo);
}

.cyp-btn--amarillo:hover {
  background-color: #e6c800;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 224, 0, 0.4);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.cyp-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  transition: var(--transicion);
}

.cyp-navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
}

.cyp-navbar__logo img {
  height: 55px;
  width: auto;
}

.cyp-navbar__menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cyp-navbar__menu a {
  font-family: var(--fuente-titulo);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-navy);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: var(--transicion);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cyp-navbar__menu a:hover,
.cyp-navbar__menu a.activo {
  color: var(--color-cyan);
  background-color: rgba(27, 170, 212, 0.08);
}

.cyp-navbar__cta {
  margin-left: 12px;
}

/* Navbar scrolled */
.cyp-navbar.scrolled {
  height: 65px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.cyp-navbar.scrolled .cyp-navbar__inner {
  height: 65px;
}

/* Hamburguesa móvil */
.cyp-navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.cyp-navbar__toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-navy);
  border-radius: 2px;
  transition: var(--transicion);
}

@media (max-width: 768px) {
  .cyp-navbar__toggle { display: flex; }

  .cyp-navbar__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-blanco);
    flex-direction: column;
    padding: 16px 24px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    gap: 4px;
  }

  .cyp-navbar__menu.abierto {
    display: flex;
  }

  .cyp-navbar__menu a {
    width: 100%;
    padding: 12px 16px;
  }

  .cyp-navbar__cta {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
  }

  .cyp-navbar__cta .cyp-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.cyp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 75px;
}

.cyp-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 224, 0, 0.22) 0, rgba(255, 224, 0, 0) 34%),
    radial-gradient(circle at 92% 16%, rgba(224, 48, 48, 0.2) 0, rgba(224, 48, 48, 0) 38%),
    linear-gradient(130deg, #082739 0%, #0d3b52 42%, #127a9b 100%);
}

.cyp-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 31, 44, 0.5) 0%, rgba(10, 31, 44, 0.1) 65%, rgba(255, 255, 255, 0.08) 100%);
}

.cyp-hero__orb {
  position: absolute;
  z-index: 1;
  filter: blur(8px);
  border-radius: 999px;
  pointer-events: none;
}

.cyp-hero__orb--amarillo {
  width: clamp(220px, 26vw, 380px);
  height: clamp(220px, 26vw, 380px);
  left: -90px;
  top: 14%;
  background: radial-gradient(circle at center, rgba(255, 224, 0, 0.62) 0%, rgba(255, 224, 0, 0) 72%);
}

.cyp-hero__orb--rojo {
  width: clamp(230px, 24vw, 360px);
  height: clamp(230px, 24vw, 360px);
  right: -70px;
  bottom: 8%;
  background: radial-gradient(circle at center, rgba(224, 48, 48, 0.58) 0%, rgba(224, 48, 48, 0) 74%);
}

.cyp-hero__layout {
  position: relative;
  z-index: 2;
  width: 100%;
  --hero-texto-max: 640px;
  --hero-art-ratio: 1.15;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.cyp-hero__content {
  position: relative;
  z-index: 3;
  max-width: var(--hero-texto-max);
  padding: 0;
  text-align: left;
  color: var(--color-blanco);
}

.cyp-hero__badge {
  display: inline-block;
  background: rgba(255, 224, 0, 0.20);
  border: 1px solid var(--color-amarillo);
  color: var(--color-amarillo);
  font-family: var(--fuente-titulo);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.cyp-hero__content h1 {
  color: var(--color-blanco);
  margin-bottom: 20px;
}

.cyp-hero__content h1 span {
  color: var(--color-amarillo);
}

.cyp-hero__content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 36px;
  max-width: 560px;
}

.cyp-hero__botones {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.cyp-hero__art {
  margin: 0;
  position: relative;
  z-index: 3;
}

.cyp-hero__art img {
  width: min(100%, calc(var(--hero-texto-max) * var(--hero-art-ratio)));
  margin-left: auto;
  filter: drop-shadow(0 22px 40px rgba(5, 20, 30, 0.35));
}

.cyp-hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounceDown 2s infinite;
}

.cyp-hero__scroll span {
  display: block;
  width: 28px;
  height: 28px;
  border-right: 2px solid var(--color-blanco);
  border-bottom: 2px solid var(--color-blanco);
  transform: rotate(45deg);
  opacity: 0.7;
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

@media (max-width: 980px) {
  .cyp-hero {
    min-height: auto;
    padding: 124px 0 88px;
  }

  .cyp-hero__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cyp-hero__content {
    max-width: 100%;
    text-align: center;
  }

  .cyp-hero__botones {
    justify-content: center;
  }

  .cyp-hero__content p {
    margin-left: auto;
    margin-right: auto;
  }

  .cyp-hero__art img {
    width: min(90vw, 680px);
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .cyp-hero {
    padding: 110px 0 78px;
  }

  .cyp-hero__badge {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    padding: 6px 14px;
  }

  .cyp-hero__content p {
    font-size: 1.02rem;
  }

  .cyp-hero__botones {
    gap: 10px;
  }

  .cyp-hero__botones .cyp-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   ANIMACIONES DE SCROLL
   ============================================================ */
.cyp-animate {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.cyp-animate--fade-up    { transform: translateY(40px); }
.cyp-animate--fade-left  { transform: translateX(-40px); }
.cyp-animate--fade-right { transform: translateX(40px); }
.cyp-animate--zoom-in    { transform: scale(0.92); }

.cyp-animate.visible {
  opacity: 1;
  transform: none;
}

.cyp-animate--delay-1 { transition-delay: 0.1s; }
.cyp-animate--delay-2 { transition-delay: 0.2s; }
.cyp-animate--delay-3 { transition-delay: 0.3s; }
.cyp-animate--delay-4 { transition-delay: 0.4s; }
.cyp-animate--delay-5 { transition-delay: 0.5s; }

/* ============================================================
   FOOTER
   ============================================================ */
.cyp-footer {
  background-color: var(--color-navy);
  color: var(--color-blanco);
  padding: 48px 0 24px;
}

.cyp-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cyp-footer__logo img {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
}

.cyp-footer__redes {
  display: flex;
  gap: 16px;
}

.cyp-footer__redes a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  color: var(--color-blanco);
  font-size: 1.1rem;
  transition: var(--transicion);
}

.cyp-footer__redes a:hover {
  background-color: var(--color-cyan);
  border-color: var(--color-cyan);
  transform: translateY(-3px);
}

.cyp-footer__copy {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

.cyp-footer__copy a {
  color: var(--color-cyan);
}

.cyp-footer__divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.cyp-footer__separator {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  margin: 0 16px;
}

.cyp-footer__logo-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}

.cyp-footer__loro {
  height: 40px;
  width: auto;
}

.cyp-footer__legend {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  text-align: center;
}

.cyp-footer__legend a {
  color: var(--color-cyan);
  transition: var(--transicion);
}

.cyp-footer__legend a:hover {
  color: var(--color-amarillo);
}

/* ============================================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================================ */
.cyp-whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 58px;
  height: 58px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: var(--transicion);
  animation: pulsoWA 2.5s infinite;
}

.cyp-whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.65);
  animation: none;
}

.cyp-whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: white;
}

@keyframes pulsoWA {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45); }
  50%       { box-shadow: 0 4px 36px rgba(37, 211, 102, 0.75), 0 0 0 8px rgba(37,211,102,0.12); }
}

/* ============================================================
   FORMULARIO DE CONTACTO
   ============================================================ */
.cyp-form {
  max-width: 600px;
  margin: 0 auto;
}

.cyp-form__grupo {
  margin-bottom: 20px;
}

.cyp-form__grupo label {
  display: block;
  font-family: var(--fuente-titulo);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.cyp-form__grupo input,
.cyp-form__grupo textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #E0E0E0;
  border-radius: var(--radius);
  font-family: var(--fuente-cuerpo);
  font-size: 0.95rem;
  color: var(--color-texto);
  background: var(--color-blanco);
  transition: var(--transicion);
  outline: none;
}

.cyp-form__grupo input:focus,
.cyp-form__grupo textarea:focus {
  border-color: var(--color-cyan);
  box-shadow: 0 0 0 4px rgba(27, 170, 212, 0.12);
}

.cyp-form__grupo textarea {
  min-height: 130px;
  resize: vertical;
}

.cyp-form__submit {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 16px;
}

.cyp-form__mensaje {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  margin-top: 16px;
  text-align: center;
}

.cyp-form__mensaje--ok  {
  background: rgba(27, 170, 212, 0.12);
  color: var(--color-cyan-dark);
  border: 1px solid var(--color-cyan);
}

.cyp-form__mensaje--err {
  background: rgba(224, 48, 48, 0.1);
  color: var(--color-rojo);
  border: 1px solid var(--color-rojo);
}

/* ============================================================
   GRIDS DE TARJETAS
   ============================================================ */
.cyp-grid {
  display: grid;
  gap: 28px;
}

.cyp-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cyp-grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 960px) {
  .cyp-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .cyp-grid--3,
  .cyp-grid--2 { grid-template-columns: 1fr; }
  .cyp-section { padding: 56px 0; }
}

.cyp-card {
  background: var(--color-blanco);
  border-radius: var(--radius-lg);
  box-shadow: var(--sombra);
  padding: 32px 28px;
  transition: var(--transicion);
  border-top: 4px solid transparent;
}

.cyp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra-hover);
  border-top-color: var(--color-cyan);
}

.cyp-card__icono {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-cyan-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: white;
}

.cyp-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.cyp-card p {
  font-size: 0.92rem;
  color: var(--color-gris);
  margin: 0;
}

/* ============================================================
   PERFORMANCE — Optimizaciones de render
   ============================================================ */

/* Evitar layout shifts en imágenes */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Contener capas de animación para no repintar todo el DOM */
.cyp-animate {
  contain: layout style;
}

/* Reducir animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
  .cyp-animate,
  .cyp-animate--fade-up,
  .cyp-animate--fade-left,
  .cyp-animate--fade-right,
  .cyp-animate--zoom-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .cyp-hero__scroll { animation: none; }
  .cyp-whatsapp-btn { animation: none; }
}

/* En móvil: desactivar parallax (background-attachment: fixed es lento en móvil) */
@media (max-width: 768px) {
  .cyp-hero__bg {
    background-attachment: scroll !important;
  }
}

/* ============================================================
   PÁGINAS INTERNAS — Grids responsive
   ============================================================ */
@media (max-width: 860px) {
  /* Nosotros: historia 2 cols → 1 col */
  .cyp-section > .cyp-container > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* Proceso: 4 cols → 2 cols */
  .cyp-section > .cyp-container > div[style*="grid-template-columns:repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 520px) {
  .cyp-section > .cyp-container > div[style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr !important;
  }

  /* Stats en Nosotros */
  div[style*="display:flex;gap:32px"] {
    flex-direction: column !important;
    gap: 16px !important;
  }
}
#servicios, #portafolio, #nosotros, #contacto {
  scroll-margin-top: 80px;
}


/* ================= CAROUSEL PORTAFOLIO ================= */

/* Grid de carruseles: 3 columnas en desktop */
.cyp-portfolio-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 32px;
    margin-top: 40px;
    width: 100%;
}

/* 2 columnas en tablet */
@media (max-width: 900px) {
    .cyp-portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* 1 columna en móvil */
@media (max-width: 580px) {
    .cyp-portfolio-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Grupo de carrusel (título + swiper) */
.cyp-portfolio-grupo {
    margin-bottom: 0;
    min-width: 0;  /* necesario para que el grid no expanda la columna */
    overflow: hidden;
}
.cyp-portfolio-grupo:last-child {
    margin-bottom: 0;
}

/* Título del grupo */
.cyp-portfolio-grupo__titulo {
    font-family: var(--fuente-titulo);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--color-cyan);
    display: inline-block;
}

/* Contenedor del swiper */
.cyp-portfolio-swiper {
    width: 100%;
    min-width: 0;  /* evita que el swiper desborde la columna del grid */
    padding-bottom: 48px !important;
}

/* Slide */
.cyp-portfolio-swiper .swiper-slide {
    height: auto;
}

/* Tarjeta de imagen */
.cyp-portfolio-swiper .portfolio-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--sombra);
    transition: var(--transicion);
}
.cyp-portfolio-swiper .portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-hover);
}

/* Contenedor de imagen */
.cyp-portfolio-swiper .portfolio-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.cyp-portfolio-swiper .portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}
.cyp-portfolio-swiper .portfolio-card:hover .portfolio-img img {
    transform: scale(1.06);
}

/* Botones de navegación en color cyan */
.cyp-portfolio-swiper .swiper-button-next,
.cyp-portfolio-swiper .swiper-button-prev {
    color: var(--color-cyan);
}
.cyp-portfolio-swiper .swiper-button-next::after,
.cyp-portfolio-swiper .swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: 900;
}

/* Paginación */
.cyp-portfolio-swiper .swiper-pagination-bullet-active {
    background: var(--color-cyan);
}

/* Mensaje cuando no hay imágenes (solo visible para admins) */
.cyp-portfolio-vacio {
    color: var(--color-gris);
    font-style: italic;
    padding: 16px 0;
}
.cyp-portfolio-vacio a {
    color: var(--color-cyan);
    text-decoration: underline;
}

/* Estilos legacy — se mantienen para compatibilidad */
.portfolio-swiper-container {
    width: 100%;
    max-width: 1200px;
    margin: 4rem auto 0;
    padding: 0 20px;
}

.swiper-slide {
    height: auto;
    padding-bottom: 50px;
    border-radius: 15px;
}

.portfolio-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-img {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img img {
    transform: scale(1.05);
}