/*!
 * ============================================================================
 * Iglesia Alianza Cristiana y Misionera Los Olivos
 * Version: 7.0.0
 * Build Date: 2025-09-20
 * Last Modified: 2026-01-30
 * ============================================================================
 * 
 * FEATURES INCLUDED:
 * • Dark/Light mode toggle system
 * • Portfolio gallery with modal viewer
 * • Interactive map with custom popups
 * • Responsive navigation (mobile/desktop)
 * • Swiper.js carousel integration
 * • Devotional section with typing effect
 * • WhatsApp integration with QR code
 * • Image masonry gallery
 * • CSS-only animations & transitions

 * KEY BREAKPOINTS:
 * • 1500px: Desktop/Laptop threshold
 * • 990px: Tablet landscape
 * • 768px: Tablet portrait
 * • 480px: Mobile devices
 * • 320px: Small mobile devices

 * DEPENDENCIES:
 * • Leaflet.js (for maps)
 * • Swiper.js (for carousels)
 * • Google Fonts (via CSS imports)
 * • Font Awesome icons (CDN)
 * 

 * 
 * ============================================================================
 * COPYRIGHT & LICENSE
 * Copyright (c) 2026 Iglesia Alianza Cristiana y Misionera Los Olivos. All rights reserved.
 * ============================================================================
 */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@500;600;700&display=swap");

:root {
  --font-heading: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-accent: "Georgia", "Times New Roman", Times, serif;
  --font-title: var(--font-heading);
  --font-subtitle: var(--font-heading);
  --font-paragraph: var(--font-body);
  --font-footer: var(--font-body);
  --font-button: var(--font-heading);
  --font-quote: var(--font-accent);
  --font-size-body: clamp(1rem, 2.2vw, 1.15rem);
  --font-size-h1: clamp(2.2rem, 5vw, 3rem);
  --font-size-h2: clamp(1.8rem, 4vw, 2.5rem);
  --font-size-h3: clamp(1.4rem, 3vw, 2rem);
  --font-size-small: clamp(0.875rem, 1vw, 1rem);
  --font-size-subtitle: clamp(1.1rem, 2vw, 1.3rem);
  --font-size-nano: clamp(0.5rem, 1vw, 1rem);

  --bg-body: linear-gradient(to right, #f5f5f5, #e6f2ff);
  --blockquote-bg: rgba(226, 230, 243, 0.75);
  --bg-pastor: rgba(229, 240, 250, 0.496);
  --bg-profile-wrapper: #fff;
  --bg-profile-data: rgba(209, 230, 247, 0.496);
  --bg-welcome-section: #fdfdfd;
  --bg-welcome-section-a: #e2eafbe4;
  --bg-portfolio-project: #222;
  --bg-progress-container: #ddd;
  --bg-progress-bar: #2378d3;
  --bg-navbar-container-phone-to: #fffffff5;
  --bg-navbar-container-pc-to: #fffffff8;
  --bg-devotional: #ffffff;
  --bg-progress-ba-port: #1623da;
  --bg-portfolio-gradient: linear-gradient(
    to bottom,
    var(--main-color-nets),
    #0a1a33
  );
  --bg-valores-gradient: linear-gradient(139deg, #1b5fbee1, #044ab9);

  --text-body: rgb(46, 95, 141);
  --text-title: #111111;
  --text-paragraph: #495057;
  --text-date: #666;
  --text-accent: #0b577be9;
  --text-white: #fff;
  --text-open-nav-button: #48e;
  --text-section-title: #1e293b;
  --text-section-text: #475569;
  --text-events-title: #1e293b;
  --text-events-paragraph: #4b5563;
  --text-events-border: #07379e;
  --text-color: #0c0a43;

  --primary-color-rgb: 0, 122, 255;
  --secondary-color-rgb: 255, 149, 0;

  --font-titles: var(--font-title);
  --font-text: var(--font-body);
  --color-main: #076efee1;
  --color-main-hover: #0b63d1;
  --text-paragraph-comu: #495057;
  --text-date-comu: #666;
  --color-white: #fff;
  --border-radius-comu: 12px;
  --shadow: 0 6px 20px rgba(2, 16, 45, 0.08);
  --modal-bg: rgba(0, 0, 0, 0.75);
  --input-border: #e2e8f0;

  --main-color-nets: #076efee1;
  --face-color-button: #2576d8b6;
  --face-color-button-hover: #398ff8;
  --color-secondary: #6395f2be;
  --background-soft: #f5f5f5;
  --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --bg-soft: #f0f2f5;
  --accent: #2c3e50;
  --accent-dark: #1a252f;
  --text-main: #222;
  --popup-bg: #fff;
  --secondary-bg: #0a84ff;
  --secondary-text: #ffffff;
  --border-color: #e5e5e5;
  --bg-principal-text: #e0e0e0;
  --brightness: 1;

  --animation-main: fadeInUp 1s ease-out forwards;
  --animation-timeline: view();
  --animation-range: cover 20% contain 30%;
  --animation-range-faster: cover 5% contain 10%;

  --map-popup-bg-primary: #ffffff;
  --map-popup-bg-secondary: #fdfdfd;
  --map-popup-border-light: #eeeeee;
  --map-popup-text-primary: #2d3436;
  --map-popup-text-secondary: #636e72;
  --map-popup-text-light: #b2bec3;
  --map-popup-accent-subtle: #0984e3;
  --map-popup-accent-light: #dfe6e9;
  --map-shadow-main: rgba(0, 0, 0, 0.07);
  --map-shadow-avatar: rgba(0, 0, 0, 0.05);
  --map-shadow-prayer: transparent;
  --map-leaflet-brightness: 1;
}

:root.dark {
  --bg-body: #12141c;
  --blockquote-bg: rgba(255, 255, 255, 0.08);

  --bg-pastor: #0e1117;
  --bg-profile-wrapper: #1c1f26;
  --bg-profile-data: #20232a;
  --bg-welcome-section: #1a1d24;
  --bg-welcome-section-a: #212329;
  --bg-portfolio-project: #111;
  --bg-progress-container: #333;
  --bg-progress-bar: #66aaff;
  --bg-navbar-container-phone-to: #000000e2;
  --bg-navbar-container-pc-to: #000000ee;
  --bg-devotional: #2d323d;
  --bg-progress-ba-port: #2f00ff;
  --bg-portfolio-gradient: linear-gradient(to bottom, #0a0f1a, #000000);
  --bg-valores-gradient: linear-gradient(to right, #08349a, #0c2355);

  --text-body: #d6e8ff;
  --text-title: #e0ecff;
  --text-paragraph: #c0c0c0;
  --text-date: #999;
  --text-accent: #7fc8f8;
  --text-white: #fff;
  --text-open-nav-button: rgb(189, 211, 245);
  --text-section-title: #f1f5f9;
  --text-section-text: #cbd5e1;
  --text-events-title: #f8fafc;
  --text-events-paragraph: #d1d5db;
  --text-events-border: #3b82f6;
  --text-color: #e0e6ff;

  --primary-color-rgb: 148, 210, 255;
  --secondary-color-rgb: 255, 199, 0;

  --font-titles: var(--font-title);
  --font-text: var(--font-body);
  --color-main: #076efee1;
  --color-main-hover: #0b63d1;
  --text-paragraph-comu: #495057;
  --text-date-comu: #666;
  --color-white: #fff;
  --border-radius-comu: 12px;
  --shadow: 0 6px 20px rgba(2, 16, 45, 0.08);
  --modal-bg: rgba(0, 0, 0, 0.75);
  --input-border: #e2e8f0;

  --main-color-nets: #115ba5cc;
  --background-soft: #121214de;
  --color-secondary: #dfe4ed;

  --bg-soft: #121212;
  --accent: #bb86fc;
  --accent-dark: #3700b3;
  --text-main: #e0e0e0;
  --popup-bg: #1e1e1e;
  --secondary-bg: #0577e9;
  --secondary-text: #ffffff;
  --border-color: #333;
  --bg-principal-text: #c1bfbf;
  --brightness: 0.3;

  --animation-main: fadeInUp 1s ease-out forwards;
  --animation-timeline: view();
  --animation-range: cover 20% contain 30%;

  --map-popup-bg-primary: #1e1e1e;
  --map-popup-bg-secondary: #2c2c2c;
  --map-popup-border-light: #3a3a3a;
  --map-popup-text-primary: #f0f0f0;
  --map-popup-text-secondary: #b0b0b0;
  --map-popup-text-light: #707070;
  --map-popup-accent-subtle: #4a90e2;
  --map-popup-accent-light: #2c3a4a;
  --map-shadow-main: rgba(0, 0, 0, 0.5);
  --map-shadow-avatar: rgba(0, 0, 0, 0.15);
  --map-shadow-prayer: rgba(0, 0, 0, 0.2);
  --map-leaflet-brightness: 0.8;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background: var(--bg-body);
  color: var(--text-body);
  font-family: var(--font-body);
}

body,
a,
div,
footer,
header,
label,
li,
nav,
ul {
  margin: 0;
  padding: 0;
}

/*-----------------------------------------*/
/*----Header Fragment----------------------*/
/*-----------------------------------------*/
.header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 6000;
}

#menu-toggle,
#toggle {
  display: none;
}

.header__logo {
  border-radius: 5px;
  margin: 10px 13px;
  max-width: 100%;
  user-select: none;
  width: 150px;
}

.header__nav-item {
  align-self: center;
  list-style: none;
}

.header__nav-item a:hover {
  color: #2189ff;
}

.header__open-nav-button {
  color: var(--text-open-nav-button);
  font-size: 2rem;
  font-weight: 600;
  position: absolute;
  right: 15px;
  user-select: none;
  z-index: 3000;
}

/*dark/light mode*/
.display {
  align-items: center;
  background: transparent;
  display: flex;
  height: auto;
  justify-content: center;
  transition: none;
  width: auto;
}

.switch {
  background: #f3f3f3;
  border-radius: 999px;
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.05) inset;
  cursor: pointer;
  display: inline-block;
  height: 35px;
  max-width: 100%;
  position: relative;
  right: 37px;
  top: 1px;
  width: 69px;
}

.circle {
  align-items: center;
  background: white;
  border-radius: 99px;
  box-shadow:
    10px 10px 20px rgba(0, 0, 0, 0.05),
    -10px -10px 30px rgba(0, 0, 0, 0.05) inset;
  display: flex;
  height: 30px;
  justify-content: center;
  left: 0%;
  overflow: hidden;
  position: absolute;
  top: 50%;
  transform: translate(10%, -50%);
  transition: 0.5s;
  width: 30px;
}

.sv {
  position: absolute;
  transition: 0.5s;
  width: 25px;
}

.sun {
  color: #ffd600;
  margin-top: 0%;
  opacity: 1;
}

.moon {
  color: white;
  margin-top: -150%;
  opacity: 0;
}

input[type="checkbox"]:checked + .display {
  background: #2c2c2f00;
}

input[type="checkbox"]:checked + .display label {
  background: #1f1f21;
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.5) inset;
}

input[type="checkbox"]:checked + .display label .circle {
  background: #2c2c2f;
  box-shadow:
    10px 10px 20px rgba(0, 0, 0, 0.5),
    -10px -10px 30px rgba(0, 0, 0, 0.5) inset;
  left: 100%;
  transform: translate(-110%, -50%);
}

input[type="checkbox"]:checked + .display label .circle .sun {
  margin-top: 150%;
  opacity: 0;
}

input[type="checkbox"]:checked + .display label .circle .moon {
  margin-top: 0%;
  opacity: 1;
}

label:active .circle {
  width: 35px;
}

/*-----------------------------------------*/
/*--Profile Fragment--(bg-live-fcontent)---*/
/*-----------------------------------------*/

/* Contenedor del video live*/
.video-container {
  animation: scale-up-bottom 0.7s ease-in-out;
  aspect-ratio: 16/9;
  border-radius: 0;
  left: 50%;
  max-height: 700px;
  max-width: 1200px;
  min-width: 290px;
  opacity: 0.9;
  position: absolute;
  top: 10rem;
  transform: translateX(-50%);
  transition: opacity 0.3s ease;
  width: 60%;
  z-index: 2;
}

.video-container iframe {
  border-radius: 10px;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.video-container:hover {
  opacity: 1;
}

/* Profile */
.profile__wrapper {
  background-color: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Contenedor de la imagen */
.profile__img-container {
  align-self: center;
  border-radius: 0 0 10px 10px;
  max-height: 1090px;
  overflow: hidden;
  position: absolute;
  top: 0;
}

/* Imagen principal */
.profile__img {
  display: block;
  filter: brightness(0.8);
  height: auto;
  max-width: 100%;
  min-height: 300px;
  width: 1960px;
}

.separator {
  background-color: transparent;
  height: 100vh;
  margin: 0 auto;
  max-height: 1000px;
  max-width: 1900px;
  min-height: 900px;
  position: relative;
  top: 0;
  width: 100%;
}

/* botón posicionado sobre el video */
.mute-btn {
  background: rgba(143, 143, 143, 0.6);
  border: none;
  border-radius: 999px;
  bottom: 3rem;
  cursor: pointer;
  display: flex;
  opacity: 0.6;
  padding: 0.7rem;
  pointer-events: auto;
  position: absolute;
  right: 0px;
  transform: translateX(-50%);
  transition:
    transform 0.15s ease,
    background 0.15s ease;
  z-index: 9999;
}

.mute-btn:hover {
  background: rgba(79, 78, 78, 0.75);
  opacity: 1;
  transform: translateX(-50%) scale(1.08);
}

.mute-btn.active {
  background: rgb(35, 110, 239);
}

.mute-btn svg {
  display: block;
}

/* Contenedor principal */
.profile__data-container {
  margin-top: 0;
  padding: 12px;
}

/* ===== Sección de bienvenida ===== */
.welcome__section,
.welcome__section_1 {
  margin-top: 50px;
  max-width: 900px;
  padding: 45px;
  text-align: center;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}
.welcome__section p strong,
.welcome__section_1 p strong {
  color: var(--color-secondary);
}

.welcome__section h1,
.welcome__section p,
.welcome__section_1 h2,
.welcome__section_1 p,
.pastor-quote,
.author_name {
  animation: var(--animation-main);
  animation-range: var(--animation-range);
  animation-timeline: var(--animation-timeline);
  opacity: 0;
  transform: translateY(30px);
}

.welcome__section_1 {
  text-align: left;
}

.welcome__section h1,
.welcome__section_1 h2 {
  color: var(--text-title);
  font-size: var(--font-size-h1);
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.25;
  margin-bottom: 15px;
  user-select: none;
}

.first__txt {
  color: var(--text-paragraph);
  font-size: var(--font-size-body);
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 1rem;
  text-align: justify;
}

/* Negritas más destacadas */
.profile__description strong {
  color: var(--text-accent);
  font-weight: 700;
}

/* Cita del pastor con estilo */
.profile__data-container .pastor-quote {
  border-left: 4px solid var(--text-accent);
  color: var(--text-paragraph);
  font-family: var(--font-quote);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-style: italic;
  padding-left: 15px;
  margin: 20px 0;
  line-height: 1.6;
}

.profile__data-container .pastor-quote .author_name {
  font-weight: 500;
  margin-top: 1rem;
  text-align: right;
  font-size: var(--font-size-nano);
  color: var(--text-date);
  display: flex;
  justify-content: flex-end;
}

/* ===== Devocional ===== */

.devotional-slide {
  align-items: center;
  background: var(--bg-body);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  display: flex;
  justify-content: center;
  margin-bottom: -50px;
  overflow: hidden;
  padding: 80px 5%;
  position: relative;
}

.devotional-slide::before {
  background: linear-gradient(
    to bottom right,
    rgba(var(--primary-color-rgb), 0.05),
    rgba(var(--secondary-color-rgb), 0.05)
  );
  content: "";
  height: 100%;
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 0;
}

.devotional-card {
  backdrop-filter: blur(12px);
  background: var(--devotional-bg);
  border: 1px solid var(--devotional-border-color);
  border-radius: 24px;
  box-shadow: var(--devotional-shadow);
  display: flex;
  flex-direction: column;
  max-width: 900px;
  position: relative;
  width: 100%;
  z-index: 1;
  -webkit-backdrop-filter: blur(12px);
}

.devotional-content-wrapper {
  padding: 40px;
  text-align: center;
}

.devotional-tag {
  color: var(--color-secondary);
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.devotional-title {
  border-right: 0.15em solid var(--primary-color);
  color: var(--text-title);
  display: inline-block;
  font-size: var(--font-size-h3);
  font-weight: 800;
  margin-bottom: 30px;
  min-width: 5px;
  opacity: 0;
  overflow: hidden;
  padding-right: 5px;
  width: 0;
}

.devotional-title.typing-effect {
  animation: blink-caret 0.75s step-end infinite;
  opacity: 1;
  width: auto;
}

.devotional-quote {
  color: var(--devotional-quote-color);
  font-family: var(--font-body), sans-serif;
  font-size: var(--font-size-body);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 30px;
  padding: 0 5%;
}

.devotional-divider {
  background-color: var(--map-popup-border-light);
  border: none;
  height: 1px;
  margin: 30px auto 20px;
  opacity: 0.7;
  width: 60px;
}

.devotional-date {
  color: var(--text-date);
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: capitalize;
}

/*-----------------------------------------*/
/*--Statements Fragment(Mision,vi,va,obj)--*/
/*-----------------------------------------*/
/*just in @madia screen*/
.statements {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  text-align: center;
}

.statements__container {
  max-width: 2000px;
  width: 100%;
}

.statements__content {
  color: #d8cbcb;
  font-family: var(--font-paragraph);
  font-size: var(--font-size-body);
  letter-spacing: 0.5px;
  line-height: 1.6;
}

.statements__content h2 {
  font-size: var(--font-size-subtitle);
}

.second_row {
  background: var(--bg-valores-gradient);
  display: flex;
  justify-content: space-around;
  margin: 0;
  max-width: 2000px;
  padding: 5rem;
  position: relative;
}

.content__text,
.text-block {
  align-items: center;
  display: flex;
  margin: 0 auto;
  max-width: 800px;
}

.statements_txt-1 {
  background-position: center;
  clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 100%);
  overflow: hidden;
  padding: 10rem;
  position: relative;
  z-index: 1;
}

.statements_txt-1::before {
  background-image: url("../../MEDIA/PICTURES/Home_section/statements_txt-1_background.jpg");
  background-position: center;
  background-size: cover;
  content: "";
  filter: brightness(0.5) blur(0px);
  inset: 0;
  position: absolute;
  transition: 1s;
  z-index: -1;
}

.statements_txt-1:hover::before,
.statements_txt-4:hover::before {
  filter: brightness(0.5) blur(5px);
  transition: 1.5s;
}

.statements_txt-2 p,
.statements_txt-3 p {
  max-width: 500px;
}

.statements_txt-4 {
  background-position: center;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
  overflow: hidden;
  padding: 6rem 9rem;
  padding-bottom: 13rem;
  position: relative;
  z-index: 1;
}

.statements_txt-4::before {
  background-image: url("../../MEDIA/PICTURES/HOME_section/statements_txt-4_background.jpg");
  background-position: top;
  background-size: cover;
  content: "";
  filter: brightness(0.5) blur(0px);
  inset: 0;
  position: absolute;
  z-index: -1;
}

/*-----------------------------------------*/
/*--Pastors Fragment(cards)----------------*/
/*-----------------------------------------*/

/* Estilos para el título y subtítulo */
.section-header h2,
.section-header p {
  animation: var(--animation-main);
  animation-range: var(--animation-range);
  animation-timeline: var(--animation-timeline);
  opacity: 0;
  text-align: center;
  transform: translateY(30px);
}

.section-header h2 {
  color: var(--text-section-title);
  font-size: 3rem;
  font-weight: 700;
}

.section-header p {
  animation-delay: 0.2s;
  color: var(--text-section-text);
  font-size: var(--font-size-body);
  margin-top: 10px;
}

/* Contenedor de tarjetas */
.pastores-container {
  align-items: center;
  display: flex;
  display: flex;
  flex-wrap: wrap;
  font-family: var(--font-body);
  gap: 20px;
  justify-content: center;
  justify-content: center;
  margin: 0 auto;
  max-width: 1900px;
  padding: 40px;
}

/* Tarjeta */
.pastor-card {
  border-radius: 15px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  height: 450px;
  overflow: hidden;
  position: relative;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  width: 300px;
}

/* Imagen ocupa toda la tarjeta */
.pastor-card img {
  height: 100%;
  object-fit: cover;
  transition: filter 0.4s ease;
  width: 100%;
}

/* Hover: imagen se oscurece */
.pastor-card:hover img {
  filter: brightness(40%);
}

/* Info oculta por defecto */
.pastor-card .info {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  bottom: 0;
  color: var(--text-white);
  opacity: 0;
  padding: 20px;
  position: absolute;
  transform: translateY(100%);
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
  width: 100%;
}

/* Hover: muestra información */
.pastor-card:hover .info {
  opacity: 1;
  transform: translateY(0);
}

/* Nombre del pastor */
.pastor-card h3 {
  font-size: 20px;
  margin-bottom: 5px;
  text-transform: uppercase;
}

/* Cargo */
.pastor-card p {
  font-size: 14px;
  margin-bottom: 10px;
  opacity: 0.8;
}

/* Extra info (se muestra en hover) */
.pastor-card .extra {
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Hover: Muestra más detalles */
.pastor-card:hover .extra {
  opacity: 1;
}

/* Efecto 3D al hacer hover */
.pastor-card:hover {
  box-shadow: 0px 10px 30px rgba(1, 6, 88, 0.384);
  transform: scale(1.05);
}

/*-----------------------------------------*/
/*---Portfolio Fragment(grid_video_imgs)---*/
/*-----------------------------------------*/
.portfolio {
  background: var(--bg-portfolio-gradient);
  clip-path: polygon(0 4%, 100% 0, 100% 97%, 0 100%);
  color: var(--text-white);
  display: flex;
  flex-direction: column;
  height: 80vh;
  justify-content: space-around;
  margin: 0 auto;
  max-width: 2000px;
  min-height: 850px;
  overflow-x: hidden;
  padding-bottom: 30px;
  position: relative;
  text-align: center;
}

.portfolio__title {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 700;
  position: relative;
  top: 2.5rem;
  user-select: none;
}

.portfolio__parag {
  color: #dbd4d1;
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  margin-top: 2rem;
  user-select: none;
}

.portfolio__header h2,
.portfolio__header p {
  animation: var(--animation-main);
  animation-range: var(--animation-range);
  animation-timeline: var(--animation-timeline);
  opacity: 0;
  text-align: center;
  transform: translateY(30px);
}

.portfolio__project-container {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  height: 450px;
  justify-content: center;
  margin: 0 auto;
  max-width: 1800px;
  overflow: visible;
  padding: 2rem 3rem;
  position: relative;
  scroll-behavior: smooth;
  width: 100%;
}

.portfolio__project {
  background-color: var(--bg-portfolio-project);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  filter: brightness(0.7) saturate(0.8);
  flex: 0 0 auto;
  height: 100%;
  overflow: hidden;
  position: relative;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center;
  width: 185px;
}

.portfolio__project[style*="background-image"] {
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

.project-content {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  bottom: 0;
  color: white;
  left: 0;
  padding: 2rem 1rem 1rem;
  position: absolute;
  right: 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.portfolio__project:hover .project-content {
  transform: translateY(0);
}

.project-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-description {
  font-family: var(--font-body);
  font-size: 0.9rem;
  opacity: 0.9;
}

.portfolio__project.active-project {
  filter: brightness(1) saturate(1.1);
  max-width: 600px;
  min-width: 350px;
  transform: scale(1.02);
  width: 35vw;
  z-index: 10;
}

.portfolio__project:hover {
  filter: brightness(1) saturate(1.1);
  transform: scale(1.02);
  width: 35vw;
  z-index: 10;
}

.portfolio__nav {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 1rem;
}

.portfolio__btn {
  background: linear-gradient(135deg, var(--bg-progress-bar), #0056b3);
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 12px 20px;
  transition: all 0.3s ease;
}

.portfolio__btn:hover {
  background: linear-gradient(135deg, var(--text-accent), #0073e6);
  transform: translateY(-2px);
}

.progress__container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  bottom: 25px;
  height: 6px;
  left: 50%;
  overflow: hidden;
  position: absolute;
  transform: translateX(-50%);
  width: 40%;
}

.progress__bar {
  background: linear-gradient(
    90deg,
    var(--bg-progress-bar),
    var(--text-accent)
  );
  border-radius: 10px;
  height: 100%;
  transition: width 0.4s ease-in-out;
  width: 0;
}

.modal {
  align-items: center;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  height: 100vh;
  justify-content: center;
  left: 0;
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: 7000;
}

.modal__content {
  align-items: center;
  background: #000;
  border-radius: 16px;
  display: flex;
  height: 95vh;
  justify-content: center;
  max-height: 800px;
  max-width: 1200px;
  overflow: hidden;
  position: relative;
  width: 90vw;
}

.content-container {
  align-items: center;
  background: #000;
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.video-container-portfolio {
  align-items: center;
  background: #000;
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.video-container-portfolio video {
  height: auto;
  max-height: 100%;
  max-width: 100%;
  width: auto;
}

.image-container {
  align-items: center;
  background: #000;
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.image-container img {
  height: auto;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.modal__close {
  align-items: center;
  background: rgba(255, 0, 0, 0.8);
  border: none;
  border-radius: 20%;
  color: white;
  cursor: pointer;
  display: flex;
  font-size: 1.2rem;
  height: 45px;
  justify-content: center;
  position: absolute;
  right: 0;
  top: 0;
  transition: all 0.3s ease;
  width: 45px;
  z-index: 2100;
}

.modal__close:hover {
  background: rgba(255, 0, 0, 1);
  transform: scale(1.1);
}

.modal__prev,
.modal__next {
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  font-size: 1.2rem;
  height: 50px;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  width: 50px;
  z-index: 2100;
}

.modal__prev:hover,
.modal__next:hover {
  background: rgba(46, 46, 46, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.modal__prev {
  left: 20px;
}

.modal__next {
  right: 20px;
}

.modal-counter {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 20px;
  bottom: 20px;
  color: white;
  font-size: 1rem;
  left: 50%;
  padding: 8px 16px;
  position: absolute;
  transform: translateX(-50%);
  z-index: 1000;
}

.cargando {
  color: white;
  font-size: 1.2rem;
  padding: 2rem;
  text-align: center;
}

.error {
  color: #ff6b6b;
  font-size: 1.2rem;
  padding: 2rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 1500px) {
  .portfolio {
    clip-path: none;
    height: auto;
    justify-content: flex-start;
    min-height: auto;
    padding: 1rem 0 2rem 0;
  }

  .portfolio__project-container {
    align-items: center;
    flex-direction: column;
    gap: 0.8rem;
    height: auto;
    overflow: visible;
    padding: 0.5rem 1rem;
  }

  /* ESTADO NORMAL - PEQUEÑO Y COMPACTO */
  .portfolio__project {
    filter: brightness(0.7) saturate(0.8);
    height: 200px !important;
    margin: 0 auto;
    min-width: auto !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 60% !important;
  }

  /* ESTADO HOVER - SE AGRANDA Y MUESTRA CONTENIDO */
  .portfolio__project.active-project,
  .portfolio__project:hover {
    box-shadow:
      0 15px 30px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(131, 131, 131, 0.1),
      0 0 20px var(--text-accent);
    filter: brightness(1) saturate(1.1);
    height: 220px !important;
    transform: scale(1.02);
    width: 65% !important;
    z-index: 10;
  }

  /* Contenido oculto en estado normal */
  .project-content {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease 0.1s;
  }

  /* Contenido visible en hover */
  .portfolio__project.active-project .project-content,
  .portfolio__project:hover .project-content {
    opacity: 1;
    transform: translateY(0);
  }

  /* Indicador visual de que se puede expandir */
  .portfolio__project::before {
    color: white;
    content: "⬆️ Toca para expandir";
    font-size: 0.7rem;
    left: 50%;
    opacity: 0.8;
    position: absolute;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    top: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    z-index: 5;
  }

  .portfolio__project.active-project::before,
  .portfolio__project:hover::before {
    opacity: 0;
  }

  .portfolio__title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    top: 0;
  }

  .portfolio__parag {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    padding: 2rem 2rem;
  }

  /* Ocultar elementos de navegación horizontal */
  .portfolio__nav,
  .progress__container {
    display: none;
  }

  /* Asegurar que los proyectos no expandidos sean muy compactos */
  .portfolio__project:not(.active-project):not(:hover) {
    margin: 2px auto;
  }
}

@media (max-width: 780px) {
  .portfolio {
    clip-path: none;
    height: auto;
    justify-content: flex-start;
    min-height: auto;
    padding: 1rem 0 2rem 0;
  }

  .portfolio__project-container {
    align-items: center;
    flex-direction: column;
    gap: 0.8rem;
    height: auto;
    overflow: visible;
    padding: 0.5rem 1rem;
  }

  /* ESTADO NORMAL - PEQUEÑO Y COMPACTO */
  .portfolio__project {
    filter: brightness(0.7) saturate(0.8);
    height: 80px !important;
    margin: 0 auto;
    min-width: auto !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 85% !important;
  }

  /* ESTADO HOVER - SE AGRANDA Y MUESTRA CONTENIDO */
  .portfolio__project.active-project,
  .portfolio__project:hover {
    box-shadow:
      0 15px 30px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      0 0 20px var(--text-accent);
    filter: brightness(1) saturate(1.1);
    height: 200px !important;
    transform: scale(1.02);
    width: 90% !important;
    z-index: 10;
  }

  /* Contenido oculto en estado normal */
  .project-content {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease 0.1s;
  }

  /* Contenido visible en hover */
  .portfolio__project.active-project .project-content,
  .portfolio__project:hover .project-content {
    opacity: 1;
    transform: translateY(0);
  }

  /* Indicador visual de que se puede expandir */
  .portfolio__project::before {
    color: white;
    content: "⬆️ Toca para expandir";
    font-size: 0.7rem;
    left: 50%;
    opacity: 0.8;
    position: absolute;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    top: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    z-index: 5;
  }

  .portfolio__project.active-project::before,
  .portfolio__project:hover::before {
    opacity: 0;
  }

  .portfolio__title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    top: 0;
  }

  .portfolio__parag {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    padding: 2rem 2rem;
  }

  /* Ocultar elementos de navegación horizontal */
  .portfolio__nav,
  .progress__container {
    display: none;
  }

  /* Asegurar que los proyectos no expandidos sean muy compactos */
  .portfolio__project:not(.active-project):not(:hover) {
    margin: 2px auto;
  }
}

/*-----------------------------------------*/
/*----Calendar Fragment(iframe-for-now)----*/
/*-----------------------------------------*/
/* calendar */
.events-section {
  align-items: center;
  animation: fadeInUp 2s ease-out forwards;
  animation-range: cover 45px contain 50px;
  animation-timeline: view();
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  margin: 25px auto;
  max-width: 1900px;
  padding: 60px 2rem;
  transition: all 0.3s ease-in-out;
  width: 100%;
}

/* Texto */
.events-text {
  flex: 1;
  max-width: 700px;
}

.events-text h2 {
  border-left: 5px solid var(--text-events-border);
  color: var(--text-events-title);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  padding-left: 20px;
  text-transform: capitalize;
}

.events-text h2,
.events-text p {
  animation: var(--animation-main);
  animation-range: var(--animation-range);
  animation-timeline: var(--animation-timeline);
  opacity: 0;
  transform: translateY(30px);
}

.events-text p {
  animation-delay: 0.2s;
  color: var(--text-events-paragraph);
  font-size: var(--font-size-body);
  line-height: 1.6;
}

/* Calendario */
.events-calendar {
  display: flex;
  flex: 1.5;
  justify-content: center;
}

.events-calendar iframe {
  background: white;
  border: none;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  height: 500px;
  max-width: 990px;
  width: 100%;
}

.events-calendar iframe:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  transform: scale(1.01);
}

/*-----------------------------------------*/
/*----AI Fragment(Circle)------------------*/
/*-----------------------------------------*/

/* ======== CONTENEDOR PRINCIPAL ======== */
.container_full {
  backdrop-filter: blur(10px);
  background: linear-gradient(
    to center,
    rgba(85, 71, 193, 0.047),
    rgba(255, 255, 255, 0.67)
  );
  margin: 0 auto;
  width: 100%;
}

.container {
  align-items: center;
  animation: backgroundAnimation 15s infinite alternate ease-in-out;
  display: flex;
  height: 400px;
  justify-content: space-around;
  margin: 0 auto;
  max-width: 1900px;
  padding: 10px;
}

/* ======== SECCIÓN DEL ARO ANIMADO ======== */
.ai-section {
  align-items: center;
  display: flex;
  height: 400px;
  justify-content: center;
  position: relative;
  width: 400px;
}

.ai-ring {
  animation: glow 1s infinite alternate ease-in-out;
  background: linear-gradient(rgba(0, 140, 255, 0.221), rgba(2, 37, 65, 0.211));
  border: 8px solid rgba(0, 140, 255, 0.7);
  border-radius: 50%;
  box-shadow:
    0 0 20px rgba(0, 140, 255, 0.376),
    inset 0 0 10px rgba(0, 140, 255, 0.3);
  height: 180px;
  position: relative;
  width: 180px;
}

/* ======== MENSAJES ORBITANDO ======== */
.message-container {
  height: 100%;
  position: absolute;
  width: 100%;
}

.message {
  backdrop-filter: blur(10px);
  background: rgba(165, 147, 147, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--text-white);
  font-size: 17px;
  opacity: 0;
  padding: 6px 12px;
  position: absolute;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

/* Efecto al pasar el cursor */
.message:hover {
  background: rgba(165, 147, 147, 0.146);
}

/* ======== SECCIÓN DEL MENSAJE FINAL ===== */
.farewell-section {
  backdrop-filter: blur(12px);
  background: linear-gradient(
    135deg,
    var(--bg-body),
    rgba(255, 255, 255, 0.669)
  );
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  color: var(--text-body);
  padding: 30px;
  text-align: LEFT;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
  width: 550px;
  animation: fadeIn 1.2s ease-in-out;
}

.farewell-section .title {
  color: var(--text-title);
  font-size: 1.7rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.farewell-section .subtitle {
  color: var(--text-paragraph);
  font-size: var(--font-size-nano);
}

.farewell-section .btn {
  background: rgba(1, 5, 33, 0.169);
  border-radius: 8px;
  color: var(--text-white);
  display: inline-block;
  font-weight: 400;
  margin-top: 15px;
  padding: 15px 20px;
  text-decoration: none;
  transition: 0.3s;
}

.farewell-section .btn:hover {
  background: rgba(88, 185, 241, 0.9);
}

.message img.icon {
  height: 20px;
  margin-right: 5px;
  vertical-align: middle;
  width: 20px;
}

/*-----------------------------------------*/
/*----Map Fragment(iframe-always)----------*/
/*-----------------------------------------*/
.maps__container {
  height: auto;
  margin-bottom: -7px;
  width: 100%;
}

.maps {
  max-height: 350px;
  width: 100%;
}

/*-----------------------------------------*/
/*----FOOTER Fragment----------------------*/
/*-----------------------------------------*/
.footer {
  background: #02103b;
  color: #e8eaed;
  font-family: var(--font-footer, "Lucida Sans", sans-serif);
  padding-top: 30px;
}

/* Distribución principal */
.footer__main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin: auto;
  max-width: 1700px;
  padding: 2rem 20px;
}

/* Izquierda */
.footer__left {
  flex: 1 1 400px;
}

.footer__brand {
  align-items: center;
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.footer__logo {
  border-radius: 10px;
  height: auto;
  width: 90px;
}

.footer__slogan {
  color: #a0aec0;
  font-size: 14px;
  font-weight: 300;
}

.footer__hashtags h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hashtags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hashtags__list span {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  color: #a0aec0;
  cursor: pointer;
  font-size: 13px;
  padding: 5px 12px;
  transition: all 0.3s ease;
}

.hashtags__list span:hover {
  background-color: rgba(96, 165, 250, 0.2);
  border-color: rgba(96, 165, 250, 0.5);
  color: #60a5fa;
}

/* Derecha: Menús y suscripción */
.footer__right {
  display: flex;
  flex: 1 1 400px;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: flex-end;
}

.footer__menu h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.footer__menu a {
  color: #a0aec0;
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  text-decoration: none;
}

.footer__menu a:hover {
  color: #60a5fa;
}

.footer__subscribe h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.footer__subscribe form {
  display: flex;
  gap: 6px;
}

.footer__subscribe input {
  border: none;
  border-radius: 4px;
  font-size: 13px;
  padding: 6px 10px;
}

.footer__subscribe button {
  background: #60a5fa;
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  padding: 6px 12px;
  transition: background 0.3s ease;
}

.footer__subscribe button:hover {
  background: #3b82f6;
}

/* Parte inferior */
.footer__bottom {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1700px;
  padding: 15px 20px;
}

.footer__links-bottom a {
  color: #a0aec0;
  font-size: 13px;
  margin-right: 15px;
  text-decoration: none;
}

.footer__links-bottom a:hover {
  color: #60a5fa;
}

/* Redes */
.footer__social a img {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  height: 28px;
  margin-left: 10px;
  padding: 4px;
  transition:
    background 0.3s,
    transform 0.3s;
  width: 28px;
}

.footer__social a:hover img {
  background-color: rgba(96, 165, 250, 0.2);
  transform: scale(1.1);
}

/*-----------------------------------------*/
/*----Keyframes Fragment(animations)-------*/
/*-----------------------------------------*/

@keyframes scale-up-bottom {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.3);
    transform-origin: center center;
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    transform-origin: center center;
  }
}

@keyframes header-movement {
  from {
    color: var(--text-white);
  }

  to {
    background-color: var(--bg-navbar-container-pc-to);
    color: var(--text-color);
    padding: 5px 0;
  }
}

@keyframes header-movement-short {
  from {
    background-color: var(--bg-navbar-container-phone-to);
  }

  to {
    background-color: var(--bg-navbar-container-phone-to);
    padding: 5px 0;
  }
}

@keyframes header-movement-short-plus {
  from {
    color: var(--text-white);
  }

  to {
    background-color: var(--bg-navbar-container-pc-to);
    color: var(--text-color);
    padding: 5px 0;
  }
}

@keyframes blink {
  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: black;
  }
}

/* == ANIMACIÓN DEL FONDO === */
@keyframes backgroundAnimation {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

/* Brillo del aro */
@keyframes glow {
  0% {
    box-shadow:
      0 0 20px rgba(0, 140, 255, 0.5),
      inset 0 0 10px rgba(0, 140, 255, 0.3);
  }

  100% {
    box-shadow:
      0 0 30px rgba(0, 140, 255, 0.9),
      inset 0 0 15px rgba(0, 140, 255, 0.5);
  }
}

/* Animación de entrada */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animación de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animación de devocional */

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: var(--primary-color);
  }
}

/*-----------------------------------------*/
/*---media_screen Fragment(responsive)-----*/
/*-----------------------------------------*/

/* Hacer el menú desplazable en modo horizontal*/
@media screen and (max-width: 990px) and (orientation: landscape) {
  .close-menu {
    margin-top: 3.5%;
  }

  .header__nav {
    height: auto;
    max-height: 107%;
    overflow-y: auto;
  }

  .header__nav-list a {
    padding-bottom: 35px;
  }
}

@media screen and (min-width: 1500px) {
  .close-menu,
  .menu-logo {
    display: none;
  }

  .menu-overlay {
    display: none;
  }

  /**/
  /* ----- Header ----- */
  .header {
    animation: header-movement both;
    animation-range: 5px 20px;
    animation-timeline: scroll();
    font-family: var(--font-button);
    position: sticky;
    top: 0;
    z-index: 3000;
  }

  .header__nav-list {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 20px;
    height: auto;
    justify-content: center;
    width: 100%;
  }

  /* ----- Enlaces de navegación ----- */
  .header__nav-item a {
    color: inherit;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
  }

  /* ----- Subrayado animado ----- */
  .header__nav-item a::after {
    background-color: currentColor;
    bottom: -10px;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease-in-out;
    width: 100%;
  }

  .header__nav-item a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  /* ----- Animación de los items de la barra ----- */
  .header__nav-item {
    animation: nav-item-fade-in 0.5s ease-in-out forwards;
    opacity: 0;
    transform: translateY(-10px);
  }

  /* Delay en la animación de cada item */
  .header__nav-item:nth-child(1) {
    animation-delay: 0.1s;
  }

  .header__nav-item:nth-child(2) {
    animation-delay: 0.2s;
  }

  .header__nav-item:nth-child(3) {
    animation-delay: 0.3s;
  }

  .header__nav-item:nth-child(4) {
    animation-delay: 0.4s;
  }

  /* ----- Botón de menú (oculto) ----- */
  .header__open-nav-button {
    display: none;
  }

  /* Animación de los items */
  @keyframes nav-item-fade-in {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .information__container {
    align-items: center;
    flex-direction: row;
    text-align: center;
  }

  .contact-item {
    align-items: center;
    display: flex;
  }

  .information__container {
    display: flex;
    gap: 20px;
    justify-content: center;
  }

  .profile__img-container {
    max-height: 1050px !important;
  }

  #youtube-frame {
    max-height: 850px;
    max-width: 1900px;
  }

  .welcome__section,
  .welcome__section_1 {
    height: 45%;
    margin-bottom: 20px;
    max-width: 920px;
    position: relative;
    width: 60%;
  }

  .first__txt {
    padding: 20px;
  }

  .profile__data-container iframe,
  .intro,
  .intro-2 {
    border-radius: 10px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    height: 371px;
    margin: 20px;
    max-width: 670px;
    min-height: 37px;
    opacity: 0;
    transform: translateX(-100px);
    transition:
      opacity 0.9s ease-out,
      transform 0.9s ease-out;
    width: 660px;
  }

  .profile__data-container iframe.show,
  .intro.show {
    opacity: 1;
    transform: translateX(0);
  }

  .profile__description,
  .profile__description_1 {
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin: 0 auto;
    max-width: 2000px;
  }

  .profile__description_1 {
    flex-direction: row-reverse;
  }

  .portfolio {
    max-height: 1000px;
  }

  .footer__hashtags {
    max-width: 700px;
  }
}

@media screen and (max-width: 1500px) {
  /* Botón hamburguesa moderno */
  .header__open-nav-button {
    align-items: center;
    backdrop-filter: blur(20px);
    border: 1.5px solid rgba(217, 216, 216, 0.2);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 50px;
    justify-content: center;
    position: fixed;
    right: 25px;
    top: 20px;
    transition: all 0.3s ease;
    width: 50px;
    z-index: 6000;
  }

  .header__open-nav-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
  }

  .header__open-nav-button span {
    background: var(--text-white);
    border-radius: 1px;
    display: block;
    height: 1.5px;
    transition: all 0.3s ease;
    width: 18px;
  }

  .menu-toggle:checked ~ .header__open-nav-button {
    opacity: 0;
    transform: scale(0.9) rotate(90deg);
  }

  /* Menú lateral RESPETANDO LA ANIMACIÓN DEL HEADER ORIGINAL */
  .header {
    animation: header-movement-short both;
    animation-range: 2% 8.5%;
    animation-timeline: scroll();
    font-family: var(--font-button);
  }

  .header__nav {
    backdrop-filter: blur(30px);
    background: rgba(18, 20, 28, 0.97);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    height: 100dvh;
    padding: 0;
    position: fixed;
    right: -500%;
    top: 0;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 340px;
    z-index: 6000;
  }

  /* Solución CSS-only (menos precisa) */
  .menu-toggle:checked ~ .header__nav {
    right: 0;
  }

  /* Oscurecer y bloquear el contenido de fondo */
  .menu-toggle:checked ~ .header__nav::before {
    background: rgb(0, 0, 0);
    content: "";
    height: auto;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: -1;
  }

  /* Prevenir scroll en el body cuando el menú está abierto */
  body:has(.menu-toggle:checked) {
    overflow: hidden;
  }

  /* Header del menú con espaciado correcto */
  .menu-header {
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    min-height: 80px;
    padding: 30px 25px 20px;
    position: relative;
  }

  /* Botón cerrar con espaciado correcto */
  .close-menu {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    font-size: 17px;
    height: 38px;
    justify-content: center;
    margin: 5px;
    padding: 2px;
    transition: all 0.3s ease;
    width: 38px;
  }

  .close-menu:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
  }

  /* Balance del espacio */
  .menu-header::before {
    content: "";
    height: 38px;
    visibility: hidden;
    width: 38px;
  }

  /* Navegación con hover elegante y translúcido */
  .header__nav-list {
    flex: 1;
    list-style: none;
    margin: 0;
    padding: 20px 0;
  }

  .header__nav-item {
    margin: 2px 0;
    opacity: 0;
    transform: translateX(25px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .menu-toggle:checked ~ .header__nav .header__nav-item {
    opacity: 1;
    transform: translateX(0);
  }

  .menu-toggle:checked ~ .header__nav .header__nav-item:nth-child(1) {
    transition-delay: 0.08s;
  }

  .menu-toggle:checked ~ .header__nav .header__nav-item:nth-child(2) {
    transition-delay: 0.12s;
  }

  .menu-toggle:checked ~ .header__nav .header__nav-item:nth-child(3) {
    transition-delay: 0.16s;
  }

  .menu-toggle:checked ~ .header__nav .header__nav-item:nth-child(4) {
    transition-delay: 0.2s;
  }

  .menu-toggle:checked ~ .header__nav .header__nav-item:nth-child(5) {
    transition-delay: 0.24s;
  }

  .header__nav-item a {
    align-items: center;
    color: var(--text-white);
    display: flex;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.4px;
    padding: 15px 30px;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  /* HOVER ELEGANTE - claro y translúcido */
  .header__nav-item a:hover {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
    padding-left: 32px;
  }

  /* Indicador sutil translúcido */
  .header__nav-item a::before {
    background: rgba(255, 255, 255, 0.6);
    content: "";
    height: 0;
    left: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: height 0.3s ease;
    width: 2px;
  }

  .header__nav-item a:hover::before {
    height: 18px;
  }

  /* Footer */
  .menu-footer {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    letter-spacing: 0.6px;
    padding: 20px 25px;
    text-align: center;
  }

  /* Overlay */
  .menu-toggle:checked ~ .menu-overlay {
    animation: overlayFadeIn 0.3s ease;
    backdrop-filter: blur(1px);
    background: rgba(0, 0, 0, 0.15);
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 5999;
  }

  @keyframes overlayFadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  /*Short-screen-resolution-toggle-end----------------*/

  .display {
    background: transparent !important;
    bottom: 25px !important;
    height: auto !important;
    right: 25px !important;
    position: fixed !important;
    width: auto !important;
    z-index: 1000 !important;
  }

  .circle {
    align-items: center !important;
    background: transparent !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    display: flex !important;
    height: 100% !important;
    justify-content: center !important;
    left: auto !important;
    overflow: hidden !important;
    position: static !important;
    top: auto !important;
    transform: none !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
  }

  .moon {
    color: #2c2c2f !important;
    margin-top: 0% !important;
    opacity: 0 !important;
  }

  .sun {
    color: #ffd600 !important;
    margin-top: 0% !important;
    opacity: 1 !important;
  }

  .sv {
    position: absolute !important;
    transition: all 0.3s ease !important;
    width: 24px !important;
  }

  .switch {
    align-items: center !important;
    background: #f3f3f3 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    cursor: pointer !important;
    display: flex !important;
    height: 56px !important;
    justify-content: center !important;
    position: relative !important;
    right: 0 !important;
    top: 0 !important;
    transition: all 0.3s ease !important;
    width: 56px !important;
  }

  /* Reset de todos los estados del checkbox original que afectan posición */
  input[type="checkbox"]:checked + .display {
    background: transparent !important;
  }

  input[type="checkbox"]:checked + .display label {
    background: #1f1f21 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
  }

  /* IMPORTANTE: Reset total de la posición del círculo */
  input[type="checkbox"]:checked + .display label .circle {
    background: transparent !important;
    box-shadow: none !important;
    left: auto !important;
    transform: none !important;
  }

  input[type="checkbox"]:checked + .display label .circle .sun {
    margin-top: 0% !important;
    opacity: 0 !important;
  }

  input[type="checkbox"]:checked + .display label .circle .moon {
    color: #ffd600 !important;
    margin-top: 0% !important;
    opacity: 1 !important;
  }

  /* Efectos de interacción mejorados */
  .switch:active {
    transform: scale(0.95) !important;
  }

  .switch:active .circle {
    width: 100% !important;
  }

  /* Efecto hover opcional */
  .switch .sv:hover {
    transform: scale(1.2) !important;
  }

  .mail__section {
    margin-bottom: 10px;
  }

  /*principal backgropund-video settings*/
  .separator {
    display: none;
  }

  .mute-btn svg {
    height: 15px;
    width: 15px;
  }

  /* Contenedor de la imagen */
  .profile__img-container {
    max-height: auto !important;
    position: relative;
  }

  .profile__data-container {
    margin-top: 0;
    padding: 12px;
    padding-top: 0;
  }

  .welcome__section h1 {
    animation-range: var(--animation-range-faster);
  }

  .welcome__section,
  .welcome__section_1 {
    margin: 0 auto;
  }

  .pastor-quote {
    font-size: 12px;
    margin: 0 auto;
    max-width: 800px;
    padding-top: 1rem;
    text-align: left;
    width: 80vw;
  }

  .author_name {
    font-size: 8px;
    font-weight: bold;
    margin-right: 0;
    margin-top: 1rem;
    text-align: right;
  }

  .profile__description,
  .profile__description_1 {
    max-width: 1900px;
    text-align: center;
    width: 100%;
  }

  .video-container {
    border-radius: 10px;
    padding-bottom: 45%;
    top: 8rem;
    width: 80%;
  }

  .profile__data-container iframe,
  .intro,
  .intro-2 {
    background-color: black;
    border-radius: 20px;
    box-shadow: 5px 5px 15px #00000033;
    height: 20vh;
    margin-bottom: 1rem;
    margin-top: 1em;
    max-height: 320px;
    max-width: 444px;
    opacity: 0;
    transform: translateX(-30px);
    transition:
      opacity 0.9s ease-out,
      transform 0.9s ease-out;
    width: 90vw;
  }

  .profile__data-container iframe.show,
  .intro.show {
    min-height: 250px;
    opacity: 1;
    transform: translateX(0);
  }

  .statements_txt-1,
  .statements_txt-4 {
    padding: 7rem 2rem;
    padding-bottom: 10rem;
  }

  .second_row {
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1rem;
  }

  .content__text {
    margin-bottom: 1rem;
    width: 100%;
  }

  .events-section h2 {
    align-items: center;
    flex-direction: column;
    padding: 2rem 1rem;
    text-align: center;
  }

  .events-section p {
    align-items: center;
    flex-direction: column;
    padding: 2rem 1rem;
    text-align: left;
  }

  .events-section {
    align-items: center;
    flex-direction: column;
    padding: 2rem 1rem;
    text-align: center;
  }

  .events-text {
    max-width: 100%;
  }

  .events-calendar {
    width: 100%;
  }

  .events-calendar iframe {
    height: 600px;
    max-width: 100%;
  }

  .container,
  .container_full {
    display: flex;
    flex-direction: column;
    height: 620px;
    margin: 0 auto;
    max-height: 700px;
    max-width: 100%;
    padding: 0 10px;
    width: 100%;
  }

  .farewell-section {
    margin: 2rem;
    max-width: 70%;
  }

  .ai-section,
  .message-container {
    margin-top: 20px;
    max-width: 100%;
  }

  .subtitle,
  .title {
    text-align: center;
    margin: 20px;
  }

  .farewell-section .btn {
    display: block;
    margin: 0 auto;
    width: fit-content;
  }
}

@media (max-width: 500px) {
  .switch {
    right: 13vw;
    top: 0.1vh;
  }

  .video-container {
    left: 50%;
    padding-bottom: 50.25%;
    transform: translateX(-50%);
    width: 80%;
  }

  .devotional-date {
    font-size: var(--font-size-nano);
  }

  .devotional-title {
    line-height: 1.4;
    overflow: visible;
    text-align: center;
    white-space: normal;
  }

  .devotional-quote {
    font-size: var(--font-size-subtitle);
  }
}

/* Ajuste para móviles en modo vertical */
@media screen and (max-width: 480px) and (orientation: portrait) {
  .modal__content {
    height: 70vh;
    width: 95vw;
  }
}

/* Ajuste para móviles en modo horizontal */
@media screen and (max-width: 768px) and (orientation: landscape) {
  .modal__content {
    height: 75vh;
    width: 90vw;
  }
}

/* Ajuste para móviles en modo horizontal */
@media screen and (max-width: 950px) and (orientation: landscape) {
  .header__nav {
    border-radius: 0 0 10px 10px;
    height: 100%;
    margin: auto;
    width: 100%;
  }

  .header__nav-item {
    margin-bottom: 25px;
  }

  .header__nav-list {
    margin-top: 45px;
  }
}

/*footer*/
@media (max-width: 1500px) {
  .footer__main {
    gap: 30px 20px;
    justify-content: space-between;
    max-width: 1200px;
    padding: 2rem 30px;
  }

  .footer__left,
  .footer__right {
    flex: 1 1 100%;
    justify-content: space-around;
  }

  .footer__brand {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .footer__main {
    flex-direction: column;
    gap: 40px;
    padding: 2rem 20px;
    text-align: center;
  }

  .footer__left,
  .footer__right {
    align-items: center;
    flex-direction: column;
    gap: 30px;
  }

  .footer__col {
    min-width: 100%;
    width: 100%;
  }

  .footer__brand {
    align-items: center;
    flex-direction: column;
    gap: 10px;
  }

  .footer__logo {
    margin-bottom: 5px;
  }

  .footer__menu {
    align-items: center;
  }

  .footer__menu a {
    margin-bottom: 5px;
  }

  .footer__subscribe form,
  .hashtags__list {
    justify-content: center;
    margin: 0 auto;
    max-width: 400px;
  }

  .footer__subscribe form {
    flex-direction: column;
    gap: 10px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    text-align: center;
  }

  .footer__social {
    order: 1;
  }

  .footer__bottom p {
    flex-basis: 100%;
    order: 3;
  }

  .footer__links-bottom {
    justify-content: center;
    order: 2;
  }

  .footer__links-bottom a {
    margin-right: 0;
    padding: 0 8px;
  }
}

@media (max-width: 320px) {
  .main-wrapper {
    overflow-x: auto;
  }

  body {
    min-width: 320px;
    overflow-x: auto;
  }
}
