* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #f5f5f5;
  overflow-x: hidden;
}

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

/* ---------- HEADER ---------- */

.video-hero-container {
  width: 100%;
  background-color: #000000;
}

.hero-header {
  background-color: #000000;
  padding: 35px 5vw 35px;
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.hero-header-inner {
  display: flex;
}

/* Logo_2Q26_N_ENG.png is a large canvas with the "Sabadell / 2Q26 Results
   presentation" lockup drawn in white near its left edge; everything else
   is transparent. Crop to just that lockup instead of shipping a huge box. */
.hero-logo-full {
  width: 400px;
  height: 64px;
  overflow: hidden;
  position: relative;
}

.hero-logo-full img {
  position: absolute;
  left: -51px;
  top: -145px;
  width: 505px;
  height: 357px;
  max-width: none;
}

/* ---------- VIDEO HERO ---------- */

.video-hero {
  position: relative;
  width: 100%;
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
  background-color: #000000;
}

/* Static "not live" state: img.video-hero-media (cartela_investors.jpg) is a
   self-contained, already-designed slate, so it just flows at its own
   aspect ratio - no cropping, no decorative overlay on top of it. */
.video-hero-media {
  display: block;
  width: 100%;
  height: auto;
}

/* Live state: fixed aspect-ratio box so the Vimeo iframe and the
   "Webcast." branding overlay can both fill it absolutely. */
.video-hero--live {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-hero--live .embed-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-hero--live .embed-container iframe,
.video-hero--live .embed-container video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background-color: #000000;
}

.video-hero--live .embed-container video {
  object-fit: contain;
}

.video-hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  padding: 4vw 5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.video-hero-title {
  font-family: "Libre Franklin", sans-serif;
  font-size: clamp(48px, 8vw, 110px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.video-hero-controls {
  display: flex;
  align-items: center;
  gap: 3vw;
  margin-top: 2vw;
  flex-wrap: wrap;
}

.video-hero-play {
  flex: 0 0 auto;
  width: clamp(48px, 5vw, 72px);
  height: clamp(48px, 5vw, 72px);
  border-radius: 14px;
  background-color: #006dff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.video-hero-play svg {
  width: 38%;
  height: 38%;
  margin-left: 4%;
}

.video-hero-info {
  font-family: "Libre Franklin", sans-serif;
  color: #ffffff;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 600;
  color: #ff3b30;
  margin-bottom: 6px;
}

.live-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ff3b30;
  flex: 0 0 auto;
}

.live-date {
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 600;
  line-height: 1.4;
}

/* ---------- TABS ---------- */

#contenido {
  position: relative;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  margin-top: 0px;
  z-index: 10;
}

.nav-tabs-custom {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: #f5f5f500;
  overflow-x: auto;
}

.nav-tabs-custom > li {
  flex: 0 0 auto;
  background-color: #000000;
  margin-right: 1px;
}

.nav-tabs-custom > li > a {
  display: block;
  padding: 5px 22px;
  white-space: nowrap;
  font-family: "Libre Franklin", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #ffffff;
  border-bottom: none;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-tabs-custom > li > a:focus,
.nav-tabs-custom > li > a:active {
  outline: none;
}

.tabs-mobile-select {
  display: none;
}

.tabs-mobile-select select {
  display: block;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background-color: #000000;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='1.6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  color: #ffffff;
  font-family: "Libre Franklin", sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 40px 12px 16px;
  cursor: pointer;
}

.tabs-mobile-select select:focus {
  outline: none;
  border-color: #006dff;
}

.nav-tabs-custom > li.active > a {
  color: #000000;
  background-color: #f5f5f5;
}

.tab-content-custom {
  background-color: #f5f5f5;
  padding: 50px;
}

.active {
  background-color: #f5f5f5;
  color: #000000 !important;
}

/* ---- Webcast description pane ---- */

.desc-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 60px;
}

.desc-title h2 {
  font-family: "Libre Franklin", sans-serif;
  font-size: 34px;
  font-weight: 500;
  color: #000000;
  line-height: 1.25;
  margin: 0;
}

.desc-label {
  display: block;
  font-family: "Libre Franklin", sans-serif;
  font-size: 14px;
  color: #000000;
  margin-bottom: 6px;
}

.desc-value {
  font-family: "Libre Franklin", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #000000;
}

.desc-meta {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.speaker-list {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.speaker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.speaker-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.speaker-name {
  font-family: "Libre Franklin", sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #000000;
  line-height: 1.25;
}

.speaker-role {
  font-family: "Libre Franklin", sans-serif;
  font-size: 12px;
  color: #000000;
  margin-top: 8px;
}

/* ---- Documents pane ---- */

.documents-pane {
  display: flex;
  gap: 20px;
}

.documents-pane a {
  display: block;
}

.documents-pane img {
  display: block;
  width: 108px;
  height: auto;
}

.documents-label {
  font-family: "Libre Franklin", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.1;
  color: #000000;
}

/* ---- Notepad / Ask IR panes ---- */

.archivo {
  font-family: "Libre Franklin", sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #000000;
  margin: 0 0 16px;
  max-width: 350px;
}

#archivo,
#pregunta {
  width: 100%;
  max-width: 640px;
  height: 140px;
  resize: none;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  background-color: #ffffff;
  padding: 14px 16px;
  font-family: "Libre Franklin", sans-serif;
  font-size: 14px;
  color: #000000;
}

.pill-btn {
  display: inline-block;
  margin-top: 16px;
  margin-right: 14px;
  font-family: "Libre Franklin", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background-color: #006dff;
  border: none;
  border-radius: 24px;
  padding: 5px 30px;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}

.pill-btn:hover {
  background-color: #123f92;
  color: #ffffff;
  text-decoration: none;
}

.pill-btn.pill-btn-outline {
  background-color: transparent;
  color: #000000;
  border: 1px solid #000000;
}

.pill-btn.pill-btn-outline:hover {
  background-color: #000000;
  color: #ffffff;
  text-decoration: none;
}

#botdownload,
#botdelete,
#botenviar {
  display: inline-block;
}

.ask-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 60px;
}

/* ---------- FORM MODAL ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  width: 100%;
  max-width: 360px;
  background-color: #ffffff;
  border-radius: 20px;
  padding: 38px 36px 32px;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  transform: translateY(12px);
  transition: transform 0.2s ease;
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background-color: #e8f0fd;
  color: #006dff;
  font-family: "Libre Franklin", sans-serif;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon--success {
  background-color: #e5f7ec;
  color: #1a9e52;
}

.modal-icon--error {
  background-color: #fdeaea;
  color: #d33333;
}

.modal-message {
  font-family: "Libre Franklin", sans-serif;
  font-size: 14px;
  color: #000000;
  line-height: 1.5;
  margin: 0 0 26px;
}

.modal-btn {
  font-family: "Libre Franklin", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background-color: #006dff;
  border: none;
  border-radius: 24px;
  padding: 5px 38px;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}

.modal-btn:hover {
  background-color: #123f92;
}

/* ---- Technical support pane ---- */

.support {
  font-family: "Libre Franklin", sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #000000;
  line-height: 1.6;
  margin: 0;
}

.support-number {
  font-family: "Libre Franklin", sans-serif;
  font-size: 34px;
  font-weight: 500;
  color: #000000;
  line-height: 1.6;
  margin: 0;
}

.ask-support {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 120px;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1500px) {
  .speaker-photo {
    width: 65px;
    height: 65px;
  }
}

@media (max-width: 900px) {
  .speaker-photo {
    width: 90px;
    height: 90px;
  }
  .desc-grid {
    gap: 34px;
  }

  .tab-content-custom {
    padding: 40px 6vw;
  }
}

@media (max-width: 700px) {
  .nav-tabs-custom {
    display: none;
  }

  .tabs-mobile-select {
    display: block;
    padding: 16px 6vw;
    background-color: #000000;
  }

  .hero-header {
    padding: 20px 6vw 16px;
  }

  .hero-logo-full {
    width: 288px;
    height: 46px;
  }

  .hero-logo-full img {
    left: -37px;
    top: -104px;
    width: 363px;
    height: 256px;
  }

  .video-hero-overlay {
    padding: 8vw 6vw;
  }

  .video-hero-controls {
    gap: 20px;
  }

  .desc-grid {
    flex-direction: column;
    gap: 26px;
  }

  .speaker-list {
    gap: 22px;
  }

  .ask-support {
    gap: 20px;
  }

  .ask-container {
    gap: 20px;
  }
}
