/* ==========================================================
   DOCUMENTACI?N MANUAL WEB CRECER
   Archivo: assets/css/style.css
   Uso: hoja principal del sitio. Los comentarios marcados como EDITABLE
   indican valores que se pueden ajustar manualmente con precauci?n.
   No cambiar selectores usados por HTML o JavaScript sin buscar referencias.
   ========================================================== */

/* ==========================================================
   SECCI?N: VARIABLES Y ESTILOS GLOBALES
   HTML relacionado: :root, body, a, h1-h6
   Descripci?n: Variables CSS, tipograf?as, enlaces y base visual del sitio.
   ========================================================== */
/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
/* Variables principales. EDITABLE: cambiar valores solo si se desea ajustar tama?os, colores o espaciados globales. */
:root{
  --cor-principal: #ff0000;
  --color-primary: #d90000;
  --color-primary-dark: #a90000;
  --color-heading: #1f2933;
  --color-body: #444444;
  --color-muted: #ffffff;
  --color-surface: #ffffff;
  --color-soft: #f7f8fa;
  --container-max: 1220px;
  --section-space: 88px;
  --section-space-tablet: 72px;
  --section-space-mobile: 56px;
  --grid-gap: 28px;
  --card-radius: 8px;
  --button-radius: 999px;
  --button-height: 44px;
  --shadow-card: 0 14px 34px rgba(31, 41, 51, 0.10);
  --shadow-card-hover: 0 18px 44px rgba(31, 41, 51, 0.16);
  --header-height: 82px;
  --header-height-scrolled: 74px;
  --text-base: 15px;
  --text-small: 14px;
  --title-section: 32px;
  --title-card: 18px;
}

/* FIX base del navegador: evita márgenes raros y scroll lateral */
html, body{
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--color-body);
  background: #fff;
  font-size: var(--text-base);
  line-height: 1.65;
}

a {
  color: #ffffff;
  text-decoration: none;
}

a:hover {
  color: #ffffff;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(217, 0, 0, 0.28);
  outline-offset: 3px;
}

li {
  list-style-type: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Raleway", sans-serif;
}

/* ==========================================================
   SECCI?N: BOT?N VOLVER ARRIBA
   HTML relacionado: .back-to-top
   Descripci?n: Bot?n fijo que aparece al hacer scroll.
   ========================================================== */
/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--cor-principal);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 28px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #ac0000;
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/* ==========================================================
   SECCI?N: ENCABEZADO
   HTML relacionado: #header
   Descripci?n: Barra superior fija, estados transparent/scrolled y logo.
   ========================================================== */
/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
/* Contenedor fijo del encabezado. EDITABLE: height/padding afectan logo y navegaci?n. */
#header {
  z-index: 997;
  transition: height 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  height: var(--header-height);
  background: rgba(25, 28, 31, 0.82);
  padding: 0 32px;
}

#header.header-transparent {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0));
  box-shadow: none;
}

#header.header-scrolled {
  height: var(--header-height-scrolled);
  background: rgb(255, 255, 255);
  box-shadow: 0 8px 26px rgba(31, 41, 51, 0.10);
}

/* ==========================================================
   SECCI?N: NAVEGACI?N PRINCIPAL
   HTML relacionado: #navbar, .navbar, .navbar-mobile
   Descripci?n: Men? de escritorio, dropdowns y men? m?vil.
   ========================================================== */
/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/**
* Navigation
*/
.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

/* Base (cuando NO es hero transparente, ejemplo: header blanco al scrollear) */
.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 12px;
  color: rgb(0, 0, 0);
  white-space: nowrap;
  transition: 0.3s;
  font-size: 12px;
  font-family: "Raleway", sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0;
}

/* Sobre el HERO (video): solo los enlaces principales son blancos.
   Los enlaces de los desplegables conservan su color oscuro. */
#header.header-transparent .navbar:not(.navbar-mobile) > ul > li > a,
#header.header-transparent .navbar:not(.navbar-mobile) > ul > li > a:focus {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

/* Cuando se hace scroll (header blanco): solo los enlaces principales son negros */
#header.header-scrolled .navbar:not(.navbar-mobile) > ul > li > a,
#header.header-scrolled .navbar:not(.navbar-mobile) > ul > li > a:focus {
  color: #000000;
}

.navbar a i,
.navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover>a {
  color: var(--cor-principal);
}

.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 14px;
  top: calc(100% + 30px);
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: 0.3s;
  border-radius: var(--card-radius);
}

.navbar .dropdown ul li {
  min-width: 200px;
}

.navbar .dropdown ul a {
  padding: 10px 20px;
  font-size: 14px;
  text-transform: none;
  font-weight: 400;
  color: #3b434a;
  letter-spacing: 0;
}

.navbar .dropdown ul a i {
  font-size: 12px;
}

.navbar .dropdown ul a:hover,
.navbar .dropdown ul .active:hover,
.navbar .dropdown ul li:hover>a {
  color: var(--cor-principal);
}

.navbar .dropdown:hover>ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.navbar .dropdown .dropdown ul {
  top: 0;
  left: calc(100% - 30px);
  visibility: hidden;
}

.navbar .dropdown .dropdown:hover>ul {
  opacity: 1;
  top: 0;
  left: 100%;
  visibility: visible;
}

/* ===== LOGO (100px -> 70px al scrollear) =====
   CORRECCIÓN IMPORTANTE:
   Tu HTML real es: <img class="navbar__logo" ...>
   Entonces NO existe ".navbar__logo img".
*/
/* Logo del Colegio en el header. EDITABLE: width controla el tama?o normal del logo. */
.navbar__logo{
  height: 72px;
  width: auto;
  display: block;
  flex: 0 0 auto;
  transition: height 0.3s ease;
}

/* Al scrollear: baja el logo a 70px */
#header.header-scrolled .navbar__logo{
  height: 52px;
  width: auto;
}

/* Mobile: un poquito más chico */
/* ==========================================================
   RESPONSIVE: TABLETS Y MEN? M?VIL
   Rango: hasta 991px
   Cambios: muestra bot?n hamburguesa, ajusta header/logo y navegaci?n m?vil.
   ========================================================== */
@media (max-width: 991px) {
  .navbar__logo{
    height: 64px;
    width: auto;
    margin: 0;
  }

  #header.header-scrolled .navbar__logo{
    height: 52px;
    width: auto;
  }

  #header {
    height: 76px;
    padding: 0 20px;
  }

  #header.header-scrolled {
    height: 68px;
  }
}

/* ==========================================================
   RESPONSIVE: PANTALLAS MEDIANAS
   Rango: hasta 1366px
   Cambios: reposiciona dropdowns profundos para que no salgan del viewport.
   ========================================================== */
@media (max-width: 1366px) {
  .navbar .dropdown .dropdown ul {
    left: -90%;
  }

  .navbar .dropdown .dropdown:hover>ul {
    left: -100%;
  }
}

/**
* Mobile Navigation 
*/
.mobile-nav-toggle {
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* En header blanco (scrolled), el icono hamburguesa debe verse */
#header.header-scrolled .mobile-nav-toggle{
  color: #000;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: inline-flex;
  }

  .navbar ul {
    display: none;
  }
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(36, 41, 46, 0.9);
  transition: 0.3s;
  z-index: 999;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
}

.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 64px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
  border-radius: 10px;
  background-color: #fff;
  overflow-y: auto;
  transition: 0.3s;
}

.navbar-mobile a,
.navbar-mobile a:focus {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 14px;
  color: #3b434a;
  text-shadow: none;
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover>a {
  color: var(--cor-principal);
}

.navbar-mobile .getstarted,
.navbar-mobile .getstarted:focus {
  margin: 15px;
}

.navbar-mobile .dropdown ul {
  position: static;
  display: none;
  margin: 10px 20px;
  padding: 10px 0;
  z-index: 99;
  opacity: 1;
  visibility: visible;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
}

.navbar-mobile .dropdown ul li {
  min-width: 200px;
}

.navbar-mobile .dropdown ul a {
  padding: 10px 20px;
}

.navbar-mobile .dropdown ul a i {
  font-size: 12px;
}

.navbar-mobile .dropdown ul a:hover,
.navbar-mobile .dropdown ul .active:hover,
.navbar-mobile .dropdown ul li:hover>a {
  color: var(--cor-principal);
}

.navbar-mobile .dropdown>.dropdown-active {
  display: block;
}

/* ==========================================================
   SECCI?N: HERO PRINCIPAL
   HTML relacionado: #hero, .hero-video-wrap, #heroVideo
   Descripci?n: Contenedor del video, fondo decorativo, overlay y textos.
   ========================================================== */
/*--------------------------------------------------------------
# Hero Section (VIDEO)
--------------------------------------------------------------*/
/* Contenedor exterior del Hero. EDITABLE: background y estructura; no cambiar overflow sin revisar video/texto. */
#hero{
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  position: relative;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

/* El contenedor del video ocupa SOLO el hero */
/* Caja del video principal. EDITABLE: aspect-ratio, width o max-width permiten cambiar el tama?o visible del video. */
#hero .hero-video-wrap{
  position: relative;
  flex: none;
  min-height: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;   /* no bloquea clicks */
  display: grid;
  place-items: center;
  isolation: isolate;
  background: #fff;
}

/* Fondo decorativo desenfocado del Hero. Puede recortarse porque no es el video real. */
#hero .hero-video-wrap::before{
  content: "";
  position: absolute;
  inset: -24px;
  background: #111 url("../img/video-frame.jpg") center center / cover no-repeat;
  filter: blur(18px);
  transform: scale(1.05);
  opacity: 0.58;
  z-index: 0;
}

#hero .hero-video-wrap::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  z-index: 1;
}

/* El video se ajusta y no “sale” */
/* Video real del Hero. IMPORTANTE: object-fit: contain muestra el cuadro completo; cover recorta. */
#hero .hero-video-wrap > video{
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

/* overlay oscuro */
#hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.02) 45%, rgba(0,0,0,.22));
  z-index: 1;
  pointer-events: none;
}

/* contenido encima del video */
/* Banda de texto del Hero. EDITABLE: padding y background cambian separaci?n y contraste. */
#hero .hero-container{
  position: relative;
  display:flex;
  justify-content:center;
  align-items:center;
  flex-direction:column;
  flex: 0 0 auto;
  padding: 10px 16px 12px;
  background: #fff;
  z-index: 2;
}

/* IMPORTANTE: el main va por encima para que el video no “pise” */
#main{
  position: relative;
  z-index: 5;
  background: #fff;
}

/* Contenedor general Bootstrap personalizado. EDITABLE: max-width/padding ajustan ancho del sitio. */
.container {
  max-width: var(--container-max);
  padding-left: 32px;
  padding-right: 32px;
}

/* Asegura que el HERO no reciba padding global de section */
section#hero{
  padding: 0;
}

#portfolio {
  padding-top: 64px;
}


@-webkit-keyframes up-down {
  0% { transform: translateY(5px); }
  100% { transform: translateY(-5px); }
}

@keyframes up-down {
  0% { transform: translateY(5px); }
  100% { transform: translateY(-5px); }
}

/* ==========================================================
   SECCI?N: SECCIONES GENERALES
   HTML relacionado: section, .section-title, .container
   Descripci?n: Espaciados comunes, t?tulos y contenedores.
   ========================================================== */
/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: var(--section-space) 0;
  scroll-margin-top: calc(var(--header-height-scrolled) + 20px);
}

/* CORRECCIÓN CLAVE:
   El hero NO debe heredar padding de "section" */
section#hero{
  padding: 0;
}

/* CORRECCIÓN CLAVE 2:
   El contenido principal debe estar por encima del hero
   para evitar que el video “invada” visualmente otras secciones */
#main{
  position: relative;
  z-index: 5;
  background: #fff;
}

.section-bg {
  background-color: white;
}

.section-title {
  text-align: center;
  padding: 0 0 36px;
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}

.section-title h2 {
  font-size: var(--title-section);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 12px;
  color: var(--color-heading);
  position: relative;
  z-index: 2;
  line-height: 1.2;
}

.section-title h3 {
  font-size: var(--title-section);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 12px;
  color: #ffffff;
  position: relative;
  z-index: 2;
  line-height: 1.2;
}

.section-title h2::after,
.section-title h3::after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: var(--color-primary);
}

.section-title span {
  position: absolute;
  top: -18px;
  color: #eef0f2;
  left: 0;
  right: 0;
  z-index: 1;
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  text-transform: uppercase;
  line-height: 0;
  letter-spacing: 0;
}

/* Imagen/icono superior de tarjetas. EDITABLE: width/height cambian tama?o; object-fit: contain evita recortes. */
.img__card{
  width: 92px;
  height: 92px;
  object-fit: contain;
  margin: 0 auto 18px;
}

.section-title p {
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.75;
}

/* ==========================================================
   RESPONSIVE: TEL?FONOS
   Rango: hasta 575px
   Cambios: una tarjeta por fila, botones/formulario al ancho disponible y textos compactos.
   ========================================================== */
@media (max-width: 575px) {
  .section-title h2 {
    font-size: 26px;
    margin-bottom: 10px;
  }

  .section-title span {
    font-size: 30px;
    top: -8px;
  }
}

/*--------------------------------------------------------------
# Breadcrumbs
--------------------------------------------------------------*/
.breadcrumbs {
  padding: 20px 0;
  background-color: #f4f5f6;
  min-height: 40px;
  margin-top: 78px;
}

@media (max-width: 992px) {
  .breadcrumbs {
    margin-top: 60px;
  }
}

.breadcrumbs h2 {
  font-size: 24px;
  font-weight: 300;
  margin: 0;
}

@media (max-width: 992px) {
  .breadcrumbs h2 {
    margin: 0 0 10px 0;
  }
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.breadcrumbs ol li+li {
  padding-left: 10px;
}

.breadcrumbs ol li+li::before {
  display: inline-block;
  padding-right: 10px;
  color: #6c757d;
  content: "/";
}

@media (max-width: 768px) {
  .breadcrumbs .d-flex {
    display: block !important;
  }

  .breadcrumbs ol {
    display: block;
  }

  .breadcrumbs ol li {
    display: inline-block;
  }
}

/* ==========================================================
   SECCI?N: SOBRE NOSOTROS Y ESTAD?STICAS
   HTML relacionado: #about, .about
   Descripci?n: Texto institucional, imagen lateral y contadores.
   ========================================================== */
/*--------------------------------------------------------------
# About Me
--------------------------------------------------------------*/
.about .content h3 {
  font-weight: 700;
  font-size: 26px;
  color: #3b434a;
  text-transform: uppercase;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.about .content ul strong {
  margin-right: 10px;
}

.about .content ul i {
  font-size: 16px;
  margin-right: 5px;
  color: var(--cor-principal);
  line-height: 0;
}

.about .content p:last-child {
  margin-bottom: 0;
}

.about .content p {
  line-height: 1.75;
  color: var(--color-body);
}

.about .content .count-box {
  width: 100%;
  min-height: 120px;
  padding: 20px 0;
}

.about .content .count-box i {
  display: block;
  font-size: 36px;
  color: var(--cor-principal);
  float: left;
  line-height: 0;
}

.about .content .count-box span {
  font-size: 36px;
  line-height: 30px;
  display: block;
  font-weight: 700;
  color: #3b434a;
  margin-left: 50px;
}

.about .content .count-box p {
  padding: 15px 0 0 0;
  margin: 0 0 0 50px;
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  color: #5d6a75;
}

.about .content .count-box a {
  font-weight: 600;
  display: block;
  margin-top: 20px;
  color: #5d6a75;
  font-size: 15px;
  font-family: "Satisfy", serif;
  transition: ease-in-out 0.3s;
}

.about .content .count-box a:hover {
  color: #82909c;
}

.about .image {
  background: url("/assets/img/me.jpeg") center center no-repeat;
  background-size: cover;
  border-radius: 10px;
  min-height: 500px;
}

.about .skills-content {
  margin-top: 30px;
}

.about .skills-content .progress {
  height: 60px;
  display: block;
  background: none;
  border-radius: 0;
}

.about .skills-content .progress .skill {
  padding: 10px 0;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  display: block;
  font-weight: 700;
  font-family: "Raleway", sans-serif;
  color: #3b434a;
}

.about .skills-content .progress .skill .val {
  float: right;
  font-style: normal;
}

.about .skills-content .progress-bar-wrap {
  background: #e6e8eb;
}

.about .skills-content .progress-bar {
  width: 1px;
  height: 10px;
  transition: 0.9s;
  background-color: var(--cor-principal);
}

/* ==========================================================
   SECCI?N: QU? OFRECEMOS Y TARJETAS
   HTML relacionado: #services, #servicios-complementarios, .services
   Descripci?n: Tarjetas educativas, iconos, botones, grilla y descripciones.
   ========================================================== */
/*--------------------------------------------------------------
# My Services
--------------------------------------------------------------*/
/* Tarjeta individual. EDITABLE: padding, border-radius y box-shadow cambian apariencia de tarjetas. */
.services .icon-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-align: center;
  border: 1px solid rgba(31, 41, 51, 0.08);
  border-radius: var(--card-radius);
  margin: 0;
}

.services .icon {
  margin: 0 auto 20px auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50%;
  width: 72px;
  height: 72px;
  background: var(--color-soft);
}

.services .icon i {
  font-size: 36px;
  line-height: 1;
  color: var(--cor-principal);
}

.services .title {
  font-weight: 700;
  margin: 0 0 14px;
  font-size: var(--title-card);
  line-height: 1.28;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services .title a {
  color: #111;
  transition: 0.3s;
}

.services .description {
  flex: 1 1 auto;
  font-size: 15px;
  line-height: 1.72;
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
}

.services .description2 {
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
  text-align: left;
  padding-left: 0;
}

.services .description3 {
  display: block;
  width: 100%;
  min-width: 0;
  margin-bottom: 10px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  overflow-wrap: normal;
  word-break: normal;
}

.services .description3:has(> img.check) {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  column-gap: 8px;
  text-align: left;
}

.services .check{
  width: 15px;
  margin: 8px 10px 0px 0px;
}

.services .icon-box:hover {
  border-color: var(--cor-principal);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.services .icon-box:hover .title a {
  color: var(--cor-principal);
}

/* Grid general de tarjetas. EDITABLE: gap cambia separaci?n entre tarjetas. */
.services .row {
  row-gap: var(--grid-gap);
}

/* Columnas de tarjetas. No cambiar si se quiere conservar la grilla Bootstrap actual. */
.services .row > [class*="col-"] {
  margin-bottom: 0 !important;
}

.services .row + .row {
  margin-top: var(--grid-gap);
}

/* Distribucion controlada solo para las tarjetas de estas dos secciones. */
#services .row.g-4,
#servicios-complementarios .row.g-4 {
  row-gap: var(--bs-gutter-y);
}

#services .row.g-4 > [class*="col-"],
#servicios-complementarios .row.g-4 > [class*="col-"] {
  display: flex;
}

#services .row.g-4 .icon-box,
#servicios-complementarios .row.g-4 .icon-box {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#services .row.g-4 .description,
#services .row.g-4 .description2,
#servicios-complementarios .row.g-4 .description,
#servicios-complementarios .row.g-4 .description2 {
  flex: 1 1 auto;
}

#services .row.g-4 .btn-btn,
#servicios-complementarios .row.g-4 .btn-btn {
  margin-top: auto;
}

@media (min-width: 1200px) {
  .services .row > .col-lg-3 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

@media (max-width: 1199px) and (min-width: 576px) {
  .services .row > .col-lg-3,
  .services .row > .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 575px) {
  .services .row > .col-lg-3,
  .services .row > .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.title2 {
  margin: 30px 0px 5px 0px;
  color: var(--cor-principal);
  font-size: larger;
  font-weight: 800;
}

/*--------------------------------------------------------------
# Video
--------------------------------------------------------------*/
.pasta-video{
  position: relative;
}

.pasta-video > iframe{
  width: 100%;
  height: 300px;
}

/* ==========================================================
   SECCI?N: TESTIMONIOS
   HTML relacionado: #testimonials, .testimonials
   Descripci?n: Carrusel de testimonios y fondo de secci?n.
   ========================================================== */
/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonials {
  padding: 80px 0;
  background: url("../img/testimonials-bg.jpg") no-repeat;
  background-position: center center;
  background-size: cover;
  position: relative;
}

.testimonials::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(14, 16, 17, 0.7);
}

.capacidadesdiferentes {
  margin-top: -50PX;
  padding: 100px 0;
  background: url("../img/capacidadesdiferentes.jpg") no-repeat;
  background-position: center center;
  background-size: cover;
  position: relative;
  color: #fff;
}

.capatidadesdiferentes__titulo{
  color: #fff;
}

.capacidadesdiferentes::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(4, 66, 166, 0.79);
}

.testimonials .section-header {
  margin-bottom: 40px;
}

.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.testimonials .testimonial-item {
  text-align: center;
  color: #fff;
}

.testimonials .testimonial-item .testimonial-img {
  width: 100px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.15);
  margin: 0 auto;
}

.testimonials .testimonial-item h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 10px 0 5px 0;
  color: #fff;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: #ddd;
  margin: 0 0 15px 0;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: rgba(255, 255, 255, 0.4);
  font-size: 26px;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 auto 15px auto;
  color: #eee;
}

.testimonials .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.4);
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--cor-principal);
}

@media (min-width: 992px) {
  .testimonials .testimonial-item p {
    width: 80%;
  }
}

/* ==========================================================
   SECCI?N: GALER?A Y ACTIVIDADES
   HTML relacionado: #portfolio, #actividades, .portfolio
   Descripci?n: Grillas de im?genes institucionales y hover de galer?a.
   ========================================================== */
/*--------------------------------------------------------------
# My Portfolio
--------------------------------------------------------------*/
.portfolio #portfolio-flters {
  list-style: none;
  margin-bottom: 20px;
}

.portfolio #portfolio-flters li {
  cursor: pointer;
  display: inline-block;
  margin: 0 10px 10px 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 7px 10px;
  text-transform: uppercase;
  color: #444444;
  transition: all 0.3s ease-in-out;
  border: 2px solid #fff;
}

.portfolio #portfolio-flters li:hover,
.portfolio #portfolio-flters li.filter-active {
  color: var(--cor-principal);
  border-color: var(--cor-principal);
}

.portfolio .portfolio-item {
  margin-bottom: var(--grid-gap);
}

/* Contenedor de imagen de galer?a.
   El marco controla el espacio visual; la fotograf?a no define la altura de la secci?n.
   EDITABLE: aspect-ratio y max-height cambian el formato del marco sin recortar la imagen. */
.portfolio-item .portfolio-img {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--card-radius);
  background: linear-gradient(135deg, #f7f8fa, #eceff3);
  box-shadow: 0 10px 26px rgba(31, 41, 51, 0.08);
  aspect-ratio: 4 / 3;
  max-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Marco para fotograf?as panor?micas.
   Usar en im?genes horizontales amplias; mantiene altura controlada. */
.portfolio-item .photo-frame--wide {
  aspect-ratio: 16 / 9;
  max-height: 360px;
}

/* Marco para fotograf?as horizontales est?ndar.
   Adecuado para fotograf?as 4:3 o 3:2. */
.portfolio-item .photo-frame--standard {
  aspect-ratio: 4 / 3;
  max-height: 420px;
}

/* Marco para fotograf?as verticales.
   Evita que una imagen 2:3 ocupe una altura excesiva. */
.portfolio-item .photo-frame--portrait {
  aspect-ratio: 4 / 5;
  max-height: 500px;
}

/* Marco cuadrado solo para fotograf?as realmente cuadradas. */
.portfolio-item .photo-frame--square {
  aspect-ratio: 1 / 1;
  max-height: 420px;
}

/* Imagen de galer?a.
   IMPORTANTE: contain muestra la fotograf?a completa y evita cortar cabezas/rostros. */
.portfolio-item .portfolio-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
  transition: filter 0.25s ease;
}

.portfolio .portfolio-item .portfolio-info {
  opacity: 0;
  position: absolute;
  left: 15px;
  bottom: 0;
  z-index: 3;
  right: 15px;
  transition: all ease-in-out 0.3s;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 15px;
}

.portfolio .portfolio-item .portfolio-info h4 {
  font-size: 18px;
  color: #fff;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0px;
}

.portfolio .portfolio-item .portfolio-info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin-bottom: 0;
}

.portfolio .portfolio-item .portfolio-info .preview-link,
.portfolio .portfolio-item .portfolio-info .details-link {
  position: absolute;
  right: 40px;
  font-size: 24px;
  top: calc(50% - 18px);
  color: #fff;
  transition: 0.3s;
}

.portfolio .portfolio-item .portfolio-info .preview-link:hover,
.portfolio .portfolio-item .portfolio-info .details-link:hover {
  color: #ffc041;
}

.portfolio .portfolio-item .portfolio-info .details-link {
  right: 10px;
}

.portfolio-item:hover .portfolio-img img {
  filter: saturate(1.04) contrast(1.02);
}

.portfolio .portfolio-item:hover .portfolio-info {
  opacity: 1;
}

/*--------------------------------------------------------------
# Portfolio Details
--------------------------------------------------------------*/
.portfolio-details {
  padding-top: 40px;
}

.portfolio-details .portfolio-details-slider img {
  width: 100%;
}

.portfolio-details .portfolio-details-slider .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #fff;
  opacity: 1;
  border: 1px solid var(--cor-principal);
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--cor-principal);
}

.portfolio-details .portfolio-info {
  padding: 30px;
  box-shadow: 0px 0 30px rgba(59, 67, 74, 0.08);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.portfolio-details .portfolio-info ul li+li {
  margin-top: 10px;
}

.portfolio-details .portfolio-description {
  padding-top: 30px;
}

.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-description p {
  padding: 0;
}

/*--------------------------------------------------------------
# Pricing
--------------------------------------------------------------*/
.pricing .box {
  padding: 20px;
  background: #fff;
  text-align: center;
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.12);
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}

.pricing h3 {
  font-weight: 400;
  margin: -20px -20px 20px -20px;
  padding: 20px 15px;
  font-size: 16px;
  font-weight: 600;
  color: #777777;
  background: #f8f8f8;
}

.pricing h4 {
  font-size: 36px;
  color: var(--cor-principal);
  font-weight: 600;
  font-family: "Open Sans", sans-serif;
  margin-bottom: 20px;
}

.pricing h4 sup {
  font-size: 20px;
  top: -12px;
  left: -3px;
}

.pricing h4 span {
  color: #bababa;
  font-size: 16px;
  font-weight: 300;
}

.pricing ul {
  padding: 0;
  list-style: none;
  color: #444444;
  text-align: center;
  line-height: 20px;
  font-size: 14px;
}

.pricing ul li {
  padding-bottom: 16px;
}

.pricing ul i {
  color: var(--cor-principal);
  font-size: 18px;
  padding-right: 4px;
}

.pricing ul .na {
  color: #ccc;
  text-decoration: line-through;
}

.pricing .btn-wrap {
  margin: 20px -20px -20px -20px;
  padding: 20px 15px;
  background: #f8f8f8;
  text-align: center;
}

.btn-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-width: 138px;
  min-height: var(--button-height);
  margin-top: auto;
  padding: 0 24px;
  background-color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: var(--button-radius);
  color: #fff;
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn-btn a,
.btn-btn a:focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--button-height);
  color: #fff;
  line-height: 1;
}

.btn-btn:hover,
.btn-btn:focus-within {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
}

.pricing .btn-buy {
  background: var(--cor-principal);
  display: inline-block;
  padding: 8px 35px;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  transition: 0.3s;
}

.pricing .btn-buy:hover {
  background: #ac0000;
}

.pricing .featured h3 {
  color: #fff;
  background: var(--cor-principal);
}

.pricing .advanced {
  width: 200px;
  position: absolute;
  top: 18px;
  right: -68px;
  transform: rotate(45deg);
  z-index: 1;
  font-size: 14px;
  padding: 1px 0 3px 0;
  background: var(--cor-principal);
  color: #fff;
}

/* ==========================================================
   SECCI?N: NUESTROS CONTACTOS
   HTML relacionado: #contact, .contact
   Descripci?n: Tarjetas de redes, contactos por sede, email y formulario.
   ========================================================== */
/*--------------------------------------------------------------
# Contact Me
--------------------------------------------------------------*/
.contact .info-box {
  height: auto;
  color: var(--color-body);
  text-align: center;
  box-shadow: var(--shadow-card);
  padding: 26px 22px;
  border: 1px solid rgba(31, 41, 51, 0.08);
  border-radius: var(--card-radius);
}

.contact {
  position: relative;
  overflow: visible;
}

/* Layout principal de contactos. EDITABLE: grid-template-columns y gap controlan columnas y separaci?n. */
.contact > .container > .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.contact > .container > .row > [class*="col-"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  float: none;
}

.contact .info-box i.bx {
  font-size: 24px;
  color: var(--cor-principal);
  border-radius: 50%;
  padding: 15px;
  background: #fff6e4;
}

.contact .info-box h3 {
  font-size: 19px;
  color: var(--color-heading);
  font-weight: 700;
  margin: 12px 0 10px;
  line-height: 1.25;
}

.contact .info-box p {
  padding: 0;
  line-height: 1.6;
  font-size: 14px;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.contact .social-links {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.contact .social-links a {
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #687683;
  line-height: 1;
  margin: 0;
  transition: 0.3s;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #dde1e4;
}

.contact .social-links a:hover {
  color: #fff;
  border-color: var(--cor-principal);
  background: var(--cor-principal);
}

/* Formulario de contacto. Debe permanecer en flujo normal; no usar position absolute/fixed. */
.contact .php-email-form {
  height: auto;
  min-height: 0;
  margin-top: 24px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-card);
  padding: 28px;
  border: 1px solid rgba(31, 41, 51, 0.08);
  border-radius: var(--card-radius);
}

/* Desplegables de sedes. z-index y max-width evitan que se salgan del contenedor. */
.contact details {
  position: relative;
  max-width: 100%;
  z-index: 2;
}

.contact details[open] {
  z-index: 10;
}

.contact details > div {
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* ==========================================================
   Contact Form messages (FIX: ocultar/mostrar correctamente)
   ========================================================== */
.contact .php-email-form .loading,
.contact .php-email-form .error-message,
.contact .php-email-form .sent-message{
  display: none;
}

.contact .php-email-form .loading.d-block,
.contact .php-email-form .error-message.d-block,
.contact .php-email-form .sent-message.d-block{
  display: block;
}

/* Opcional: estilo + spinner del "Cargando" (como BootstrapMade) */
.contact .php-email-form .loading{
  background: #fff;
  text-align: center;
  padding: 15px;
}

.contact .php-email-form .loading:before{
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--cor-principal);
  border-top-color: transparent;
  animation: php-email-form-loading 1s linear infinite;
}

/* Mensaje enviado */
.contact .php-email-form .sent-message{
  background: #18d26e;
  color: #fff;
  text-align: center;
  padding: 15px;
  font-weight: 600;
}

/* Error */
.contact .php-email-form .error-message{
  background: #ed3c0d;
  color: #fff;
  text-align: left;
  padding: 15px;
  font-weight: 600;
}

@keyframes php-email-form-loading{
  0%{ transform: rotate(0deg); }
  100%{ transform: rotate(360deg); }
}


.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: var(--card-radius);
  box-shadow: none;
  font-size: 15px;
  border: 1px solid #d7dde3;
  color: var(--color-heading);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact .php-email-form input {
  min-height: 44px;
  padding: 10px 14px;
}

.contact .php-email-form textarea {
  min-height: 148px;
  padding: 12px 14px;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(217, 0, 0, 0.10);
}

.contact .php-email-form button[type=submit] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: var(--button-height);
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 0 26px;
  color: #fff;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  border-radius: var(--button-radius);
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  line-height: 1;
}

.contact .php-email-form button[type=submit]:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
}

/* ===== Mensajes del formulario (compatibles con validate.js) ===== */
.contact .php-email-form .loading,
.contact .php-email-form .error-message,
.contact .php-email-form .sent-message {
  display: none;
}

.contact .php-email-form .loading.d-block,
.contact .php-email-form .error-message.d-block,
.contact .php-email-form .sent-message.d-block {
  display: block;
}

/* (Opcional, pero recomendado) para que no se vea “negro” el form */
.contact .php-email-form {
  background: #fff;
}

/* (Opcional, pero recomendado) para que las tarjetas no se vean “negras” */
.contact .info-box {
  background: #fff;
}


/* ==========================================================
   SECCI?N: FOOTER
   HTML relacionado: #footer
   Descripci?n: Imagen de fondo, overlay, redes sociales y copyright.
   ========================================================== */
/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
/* Footer institucional. Fondo controlado por background; clear evita superposici?n con contenido anterior. */
#footer {
  background: url("../img/footer26.jpg") top center no-repeat;
  background-size: cover;
  color: #fff;
  font-size: 14px;
  text-align: center;
  padding: 80px 0;
  position: relative;
  clear: both;
  z-index: 1;
}

/* Overlay oscuro del footer para legibilidad sobre la imagen de fondo. */
#footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

#footer .container {
  position: relative;
}

#footer h3 {
  font-size: 36px;
  font-weight: 700;
  font-family: "Satisfy", serif;
  margin-bottom: 15px;
}

#footer p {
  font-style: italic;
  margin-bottom: 40px;
}

#footer .social-links {
  margin-bottom: 40px;
}

#footer .social-links a {
  font-size: 18px;
  display: inline-block;
  background: var(--cor-principal);
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

#footer .social-links a:hover {
  background: #ac0000;
}

#footer .copyright {
  margin-bottom: 5px;
}

#footer .credits {
  font-size: 13px;
}

/* ==========================================================
   FIX: restaurar estilos del texto del HERO + botón scroll
   ========================================================== */

/* Textos del hero (como estaban antes) */
/* T?tulo principal del Hero. EDITABLE: font-size y margin cambian tama?o y separaci?n. */
#hero h1{
  margin: 0 0 6px 0;
  font-size: 46px;
  font-weight: 700;
  font-family: "Montserrat", "Raleway", sans-serif;
  color: #1f2f46;
  text-shadow: none;
  text-align: center;
  line-height: 1.06;
}

/* Subt?tulo del Hero. EDITABLE: font-size/margin cambian lectura en desktop y m?vil. */
#hero h2{
  color: #2f3a45;
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  text-shadow: none;
  text-align: center;
}

/* Botón de scroll down (que vuelva a verse y a estar abajo) */
/* Bot?n de scroll del Hero. JavaScript usa clase .scrollto para desplazamiento suave. */
#hero .btn-scroll{
  position: static;
  transform: none;
  margin-top: 2px;
  z-index: 3; /* encima del overlay */
  color: rgba(31, 47, 70, 0.78);
  transition: 0.4s;
  animation: up-down 1s ease-in-out infinite alternate-reverse both;
  display: inline-flex;
}

#hero .btn-scroll i{
  font-size: 48px;
  line-height: 1;
}

#hero .btn-scroll:hover{
  color: var(--cor-principal);
}

/* Responsive como ya tenías */
@media (max-width: 575px){
  #hero h1{ font-size: 30px; }
  #hero h2{ margin-bottom: 6px; }
}

/* ==========================================================
   RESPONSIVE: TABLETS PEQUE?AS Y TEL?FONOS GRANDES
   Rango: hasta 768px
   Cambios: Hero en alto autom?tico, video 16:9 y textos compactos.
   ========================================================== */
@media (max-width: 768px){
  #hero{
    height: auto;
    min-height: 0;
    max-height: none;
    max-width: 100%;
    overflow-x: hidden;
    background: #fff;
  }

  #hero .hero-video-wrap{
    flex: none;
    aspect-ratio: 16 / 9;
    height: auto;
  }

  #hero .hero-video-wrap > video{
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
  }

  #hero .hero-container{
    padding: 12px 14px 16px;
  }

  #hero h1{
    font-size: 32px;
    line-height: 1.1;
  }

  #hero h2{
    font-size: 14px;
    margin-bottom: 6px;
  }

  #hero .btn-scroll{
    margin-top: 0;
  }

  #hero .btn-scroll i{
    font-size: 34px;
  }
}

@media (max-width: 390px){
  #hero h1{
    font-size: 28px;
  }

  #hero h2{
    font-size: 13px;
    margin-bottom: 12px;
  }
}

/* ==========================================================
   RESPONSIVE: NOTEBOOKS Y TABLETS HORIZONTALES
   Rango: hasta 1199px
   Cambios: reduce padding de contenedor y espaciado de secciones.
   ========================================================== */
@media (max-width: 1199px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  section {
    padding: var(--section-space-tablet) 0;
  }

  #hero {
    height: auto;
    min-height: 0;
  }
}

@media (max-width: 991px) {
  .navbar a,
  .navbar a:focus {
    font-size: 13px;
  }

  .services .icon-box {
    padding: 28px 24px;
  }

  .services .description {
    text-align: left;
  }

  .contact > .container > .row > .col-lg-6 + .col-lg-6 {
    margin-top: 0;
  }

  .contact > .container > .row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  #hero {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  section {
    padding: var(--section-space-mobile) 0;
    scroll-margin-top: 84px;
  }

  .section-title {
    padding-bottom: 28px;
  }

  .section-title p {
    font-size: 15px;
    line-height: 1.65;
  }

  .portfolio .portfolio-item {
    margin-bottom: 22px;
  }

  .portfolio-item .portfolio-img {
    max-height: 360px;
  }

  .portfolio-item .photo-frame--portrait {
    max-height: 430px;
  }

  .contact .php-email-form,
  .contact .info-box {
    padding: 24px 20px;
  }

  .contact .row > .col-md-6 + .col-md-6 {
    margin-top: 24px;
  }
}

@media (max-width: 575px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  #header {
    padding: 0 16px;
  }

  #hero {
    height: auto;
    max-height: none;
  }

  #hero h1 {
    font-size: 30px;
  }

  #hero h2 {
    max-width: 290px;
    line-height: 1.45;
    letter-spacing: 0;
  }

  #hero .btn-scroll i {
    font-size: 32px;
  }

  .section-title span {
    display: none;
  }

  .services .icon-box {
    padding: 24px 20px;
  }

  .services .title {
    min-height: 0;
  }

  .services .description,
  .services .description2,
  .services .description3 {
    font-size: 14.5px;
    line-height: 1.65;
    text-align: left;
    hyphens: none;
  }

  .btn-btn {
    width: 100%;
    max-width: 170px;
  }

  .contact .php-email-form button[type=submit] {
    width: 100%;
  }
}

/* ==========================================================
   RESPONSIVE: TEL?FONOS ESTRECHOS
   Rango: hasta 390px
   Cambios: reduce t?tulos del Hero para pantallas angostas.
   ========================================================== */
@media (max-width: 390px) {
  #hero h1 {
    font-size: 28px;
  }

  #hero h2 {
    font-size: 13px;
    margin-bottom: 6px;
  }
}

/* ==========================================================
   ACCESIBILIDAD: REDUCCI?N DE MOVIMIENTO
   Cambios: minimiza animaciones y mantiene el video sin recortes.
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    scroll-behavior: auto;
    transition-duration: 0.01ms;
  }

  #hero .hero-video-wrap > video {
    object-fit: contain;
  }
}
