:root {
  --efa-blue: #0b4da2;
  --efa-blue-dark: #07336d;
  --efa-green: #2d7d32;
  --efa-yellow: #f2c94c;
}

html {
  scroll-behavior: smooth;
}

body {
  color: #333;
}

a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 3px solid rgba(242, 201, 76, 0.65);
  outline-offset: 2px;
}

.topbar .info a,
.topbar .info {
  color: #fff;
}

.topbar .info a:hover,
.topbar .info a:focus {
  color: var(--efa-yellow);
}

.navbar-brand.efa-brand {
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 8px 12px;
  background: #fff;
  border-radius: 0 0 8px 8px;
}

.navbar-brand.efa-brand img.logo {
  width: 250px;
  height: auto;
  max-height: 54px;
  object-fit: contain;
}

nav.navbar.bootsnav ul.nav > li > a {
  font-weight: 600;
}

.efa-services { position: relative; }
.efa-services-toggle i { margin-left: 4px; }
.efa-services-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  min-width: 205px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border-top: 3px solid var(--efa-yellow);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}
.efa-services-menu[hidden] { display: none !important; }
nav.navbar.bootsnav .efa-services-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--efa-blue-dark);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}
nav.navbar.bootsnav .efa-services-menu a:hover,
nav.navbar.bootsnav .efa-services-menu a:focus,
nav.navbar.bootsnav .efa-services-menu a[aria-current="page"] {
  background: var(--efa-blue);
  color: #fff;
}
.efa-admission-image.efa-basico-photo,
.efa-admission-image.efa-perito-photo { height: auto; margin-bottom: 25px; }
.efa-admission-panels { display: flex; flex-wrap: wrap; }
.efa-admission-panels > div { margin-bottom: 25px; }
.efa-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}
.efa-guide-card {
  padding: 20px;
  border: 1px solid #e3e8ee;
  border-radius: 6px;
  background: #fff;
}
.efa-guide-card h3 { color: var(--efa-blue-dark); font-size: 21px; margin-bottom: 20px; }
.efa-guide-card .efa-document { height: auto; max-height: none; }
.efa-guide-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 20px; }
.efa-guide-actions a { color: var(--efa-blue); text-decoration: underline; font-weight: 600; }

@media (max-width: 991px) {
  .efa-services-menu { position: static; min-width: 0; box-shadow: none; border-top: 0; }
  .efa-admission-panels > div { width: 100%; }
}
@media (max-width: 767px) {
  .efa-guide-grid { grid-template-columns: 1fr; }
}

.rev_slider h1 {
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.65);
}

.rev_slider p {
  color: #fff;
  font-size: 18px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.tparrows::before {
  font-family: FontAwesome !important;
}

.tparrows.tp-leftarrow::before {
  content: '\f104' !important;
}

.tparrows.tp-rightarrow::before {
  content: '\f105' !important;
}

.efa-slide-overlay {
  background: rgba(0, 0, 0, 0.55);
}

.efa-card-image,
.course .image img,
.content_wrap .image img {
  width: 100%;
  height: 235px;
  object-fit: cover;
}

.efa-about-image {
  width: 100%;
  min-height: 430px;
  object-fit: cover;
}

.efa-feature-icon {
  color: var(--efa-green);
}

.efa-feature-icon i {
  font-size: 54px;
}

#courses.efa-courses {
  position: relative;
  background-image: linear-gradient(rgba(7, 51, 109, 0.86), rgba(7, 51, 109, 0.86)), url('../images/efa/galeria/cultivos.jpeg');
  background-size: cover;
  background-position: center;
}

#courses.efa-courses h2,
#courses.efa-courses h3,
#courses.efa-courses p,
#courses.efa-courses a:not(.btn_common) {
  color: #fff;
}

#counter {
  background-image: linear-gradient(rgba(14, 78, 40, 0.84), rgba(14, 78, 40, 0.84)), url('../images/efa/carousel3.jpg');
  background-size: cover;
  background-position: center;
}

.page_header {
  background-image: linear-gradient(rgba(7, 51, 109, 0.76), rgba(7, 51, 109, 0.76)), url('../images/efa/galeria/cultivos.jpeg');
  background-size: cover;
  background-position: center;
}

.page_header .page-content p {
  color: #fff;
}

.efa-history-copy {
  white-space: pre-line;
  text-align: justify;
}

.history_wrap .image img {
  width: 100%;
  height: 165px;
  object-fit: cover;
}

.efa-panel {
  height: 100%;
  padding: 30px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
}

.efa-panel h3,
.efa-panel h4 {
  color: var(--efa-blue-dark);
}

.efa-panel ul,
.efa-panel ol {
  padding-left: 22px;
}

.efa-panel li {
  margin-bottom: 10px;
}

.efa-panel ol > li { list-style: decimal; }
.efa-panel ul > li { list-style: disc; }

.efa-admission-image {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-radius: 6px;
}

.efa-document {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #f5f5f5;
  border-radius: 6px;
}

.efa-video {
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.16);
}

.efa-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.efa-gallery .cbp-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.efa-contact-visual {
  width: 100%;
  height: 270px;
  object-fit: cover;
  border-radius: 6px;
  margin-top: 25px;
}

.efa-form-status {
  display: none;
  margin-bottom: 18px;
  padding: 12px 16px;
  color: #165b2d;
  background: #e9f7ee;
  border-radius: 4px;
}

.efa-form-status.is-visible {
  display: block;
}

.efa-social-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer_logo.efa-footer-logo {
  display: inline-block;
  padding: 8px 12px;
  background: #fff;
  border-radius: 5px;
}

.footer_logo.efa-footer-logo img {
  width: 250px;
  max-width: 100%;
}

footer .address a,
footer .links a,
.copyright a {
  color: #fff;
}

footer .address a:hover,
footer .links a:hover,
.copyright a:hover {
  color: var(--efa-yellow);
}

.efa-external::after {
  content: '\2197';
  margin-left: 5px;
  font-size: 0.85em;
}

/* Shared layout rules for narrow screens, tablets and desktop. */
body { font-size: 16px; }
img, video { max-width: 100%; }
p { line-height: 1.55; }
h1, h2, h3, h4, p, li { overflow-wrap: break-word; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.3; }
h3 { line-height: 1.35; }
.page_header .page-content h1 { font-size: clamp(1.9rem, 4vw, 2.625rem); }
.btn_common { max-width: 100%; min-height: 44px; white-space: normal; text-align: center; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
.efa-guide-card { min-width: 0; display: flex; flex-direction: column; }
.efa-guide-actions { margin-top: auto; padding-top: 20px; }
.efa-guide-actions a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
#efa-contact-form .form-group, #efa-contact-form .form-control,
#efa-contact-form textarea { width: 100%; max-width: 100%; }
#efa-contact-form input, #efa-contact-form textarea { font-size: 16px; }
#efa-contact-form textarea { resize: vertical; min-height: 160px; }
.contact_address .address { display: block; width: 100%; }
#history > .container > .row:last-child { display: flex; flex-wrap: wrap; }
.efa-gallery #projects { margin-left: 15px; margin-right: 15px; }
#project-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
#project-filter .cbp-filter-item { min-height: 44px; display: inline-flex; align-items: center; padding: 10px 12px; margin: 0; }
html { scroll-padding-top: 85px; }

@media (min-width: 992px) and (max-width: 1199px) {
  nav.navbar.bootsnav ul.nav > li { margin-left: 10px; margin-right: 10px; }
}
@media (max-width: 991px) {
  nav.navbar.bootsnav .navbar-collapse.in { max-height: calc(100dvh - 70px); overflow-y: auto; }
  nav.navbar.bootsnav .navbar-toggle { min-width: 44px; min-height: 44px; margin-top: 4px; }
  nav.navbar.bootsnav ul.nav > li > a { padding-top: 12px; padding-bottom: 12px; }
  .efa-services-menu a { white-space: normal; }
  .efa-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .efa-panel { margin-bottom: 25px; }
  .efa-video { margin-bottom: 25px; }
  .efa-about-image { height: auto; min-height: 0; }
  footer .footer_panel { width: 50%; }
  footer .footer_panel:last-child { width: 100%; }
  #counter, .page_header, #courses { background-attachment: scroll; }
}
@media (max-width: 767px) {
  .padding { padding-top: 50px; padding-bottom: 50px; }
  .padding-top { padding-top: 50px; }
  .padding-bottom { padding-bottom: 50px; }
  .margin_top { margin-top: 40px; }
  .heading_space { margin-bottom: 28px; }
  .efa-guide-grid { grid-template-columns: 1fr; }
  .efa-panel { padding: 22px; }
  footer .footer_panel { width: 100%; }
  .page_header .page-content .page_nav { margin-top: 35px; padding: 15px; max-width: 100%; }
  .contact_address .address .icon { width: 48px; height: 48px; font-size: 28px; line-height: 48px; }
  .contact_address .address h4, .contact_address .address p { margin-left: 62px; }
  #about .icon_box { margin-left: 0; margin-right: 0; }
  #counter .counters-item { min-height: 160px; }
  .content_wrap { margin-bottom: 25px; }
  .efa-admission-panels .efa-panel { height: auto; margin-bottom: 0; }
  .efa-contact-visual { height: auto; }
  .efa-gallery .cbp-item .overlay { opacity: 1; background: transparent; }
  .efa-gallery .cbp-item .centered { top: auto; left: auto; right: 12px; bottom: 12px; transform: none; }
}

@media (max-width: 991px) {
  .navbar-brand.efa-brand img.logo {
    width: 210px;
  }

  .navbar-brand.efa-brand {
    min-height: 54px;
  }

  .efa-about-image {
    min-height: 300px;
    margin-top: 30px;
  }
}

@media (max-width: 767px) {
  .topbar .pull-left,
  .topbar .pull-right {
    float: none !important;
    text-align: center;
  }

  .topbar .info {
    display: inline-block;
    margin: 3px 8px;
  }

  .navbar-brand.efa-brand img.logo {
    width: 185px;
  }

  .efa-card-image,
  .course .image img,
  .content_wrap .image img,
  .efa-gallery .cbp-item img {
    height: 220px;
  }

  .efa-panel {
    margin-bottom: 25px;
  }
}

/* ---------- Avisos de clasificados ---------- */
.efa-announce { background: var(--efa-blue-dark); color: #fff; padding: 22px 0; border-bottom: 4px solid var(--efa-yellow); }
.efa-announce-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.efa-announce-inner > .fa { font-size: 34px; color: var(--efa-yellow); flex: 0 0 auto; }
.efa-announce-text { flex: 1 1 280px; min-width: 0; }
.efa-announce-text strong { display: block; font-size: 20px; line-height: 1.3; }
.efa-announce-text span { display: block; opacity: .9; margin-top: 3px; }
.efa-announce .btn_common { margin: 0; }
.efa-announce-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.efa-announce .btn_common.blue { background: #fff; color: var(--efa-blue-dark); border-color: #fff; }

/* ---------- Curso propedéutico ---------- */
.efa-prope { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 25px; margin: 25px 0; }
.efa-prope-notice { display: flex; gap: 16px; padding: 26px; background: #fff8e1; border-left: 6px solid var(--efa-yellow); border-radius: 6px; }
.efa-prope-notice > .fa { font-size: 30px; color: #b8860b; flex: 0 0 auto; margin-top: 4px; }
.efa-prope-notice h3, .efa-prope-tools h3 { color: var(--efa-blue-dark); margin-top: 0; margin-bottom: 12px; font-size: 21px; }
.efa-prope-facts, .efa-tool-list { list-style: none; padding: 0; margin: 14px 0 0; }
.efa-prope-facts li, .efa-tool-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; line-height: 1.45; list-style: none !important; }
.efa-prope-facts .fa { width: 20px; text-align: center; color: var(--efa-blue); margin-top: 3px; }
.efa-prope-tools { padding: 26px; background: #fff; border-radius: 6px; box-shadow: 0 7px 25px rgba(0,0,0,.08); }
.efa-tool-list li { padding-bottom: 10px; border-bottom: 1px dashed #dde3ea; }
.efa-tool-list li:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.efa-tool-list .fa { flex: 0 0 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%; background: var(--efa-green); color: #fff; font-size: 13px; }

/* ---------- Página de clasificados ---------- */
.efa-clasif-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.efa-clasif-tabs [role="tab"] { flex: 1 1 200px; min-height: 52px; padding: 12px 18px; font-size: 17px; font-weight: 600; border: 2px solid var(--efa-blue); background: #fff; color: var(--efa-blue); border-radius: 6px; cursor: pointer; }
.efa-clasif-tabs [role="tab"].is-active { background: var(--efa-blue); color: #fff; }
.efa-clasif-tabs [role="tab"]:focus-visible { outline: 3px solid var(--efa-yellow); outline-offset: 2px; }
.efa-clasif-panel { height: auto; }
.efa-clasif-panel .efa-prope { grid-template-columns: 1fr; }
.efa-clasif-tools { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin: 25px 0 15px; }
.efa-clasif-search { position: relative; flex: 1 1 280px; margin: 0; font-weight: normal; }
.efa-clasif-search .fa { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #7a8794; }
.efa-clasif-search input { width: 100%; min-height: 48px; padding: 10px 14px 10px 40px; font-size: 16px; border: 2px solid #cfd8e3; border-radius: 6px; }
.efa-clasif-search input:focus { border-color: var(--efa-blue); outline: none; }
.efa-clasif-count { margin: 0; font-weight: 600; color: var(--efa-blue-dark); }
.efa-clasif-print { margin: 0 0 0 auto; }
.efa-clasif-table-wrap { overflow-x: auto; border: 1px solid #e3e8ef; border-radius: 6px; }
.efa-clasif-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.efa-clasif-table th { background: var(--efa-blue-dark); color: #fff; text-align: left; padding: 12px 14px; }
.efa-clasif-table td { padding: 11px 14px; border-top: 1px solid #e3e8ef; }
.efa-clasif-table tbody tr:nth-child(even) { background: #f6f8fb; }
.efa-clasif-num { width: 64px; text-align: center !important; color: #5c6b7a; }
.efa-clasif-none { margin-top: 15px; padding: 14px; background: #fff3f3; color: #8a1f1f; border-radius: 6px; }
.efa-clasif-empty { text-align: center; padding: 40px 20px; margin-top: 25px; background: #f6f8fb; border: 2px dashed #cfd8e3; border-radius: 8px; }
.efa-clasif-empty .fa { font-size: 44px; color: var(--efa-blue); }
.efa-clasif-empty h3 { color: var(--efa-blue-dark); margin: 12px 0 6px; }
.efa-clasif-empty p { margin: 0; }
.efa-clasif-foot { margin-top: 25px; margin-bottom: 0; }

@media (max-width: 991px) {
  .efa-prope { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .efa-announce-inner { gap: 12px; }
  .efa-announce-inner > .fa { font-size: 28px; }
  .efa-announce-text strong { font-size: 18px; }
  .efa-announce-inner > .btn_common, .efa-announce-actions { width: 100%; }
  .efa-announce-actions .btn_common { flex: 1 1 140px; }
  .efa-prope-notice, .efa-prope-tools { padding: 20px; }
  .efa-prope-notice { flex-direction: column; gap: 8px; }
  .efa-clasif-print { margin-left: 0; width: 100%; }
  .efa-clasif-table td, .efa-clasif-table th { padding: 10px; }
  .efa-clasif-num { width: 48px; }
}

@media print {
  .topbar, header, footer, .copyright, .page_header, .efa-clasif-tabs, .efa-clasif-tools, .efa-clasif-foot,
  .scrollToTop, .loader, .efa-prope-notice > .fa { display: none !important; }
  .efa-clasif-panel { box-shadow: none !important; padding: 0 !important; }
  .efa-clasif-table tr[hidden] { display: table-row !important; }
  .efa-clasif-table-wrap { overflow: visible; border: 0; }
  .efa-clasif-table th { background: #eee !important; color: #000 !important; }
}
.efa-panel ul.efa-prope-facts, .efa-panel ul.efa-tool-list, ul.efa-prope-facts, ul.efa-tool-list { padding-left: 0; }
.efa-clasif-alert { margin: 20px 0 0; padding: 14px 16px; background: #fff8e1; border-left: 5px solid var(--efa-yellow); border-radius: 6px; }
.efa-clasif-alert .fa { color: #b8860b; margin-right: 4px; }
.efa-clasif-alert a { font-weight: 600; text-decoration: underline; }
.efa-announce .btn_common { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* ---------- Listados de nombres (sin numeración) ---------- */
.efa-clasif-list { margin-top: 25px; }
.efa-clasif-title { color: var(--efa-blue-dark); margin: 0 0 5px; font-size: 22px; }
.efa-clasif-names { list-style: none; padding: 0 !important; margin: 0; columns: 3 260px; column-gap: 28px; }
.efa-panel ul.efa-clasif-names > li { list-style: none; }
.efa-clasif-names li { break-inside: avoid; padding: 9px 4px 9px 26px; margin: 0 !important; border-bottom: 1px solid #e3e8ef; position: relative; line-height: 1.4; font-size: 16px; }
.efa-clasif-names li::before { content: '\f00c'; font-family: FontAwesome; position: absolute; left: 4px; top: 10px; color: var(--efa-green); font-size: 13px; }
.efa-clasif-names li[hidden] { display: none; }

/* ---------- Inscripción Primero Básico ---------- */
.efa-inscripcion { margin-top: 30px; padding: 26px; background: #fff8e1; border-left: 6px solid var(--efa-yellow); border-radius: 6px; }
.efa-inscripcion h3 { color: var(--efa-blue-dark); margin: 0 0 10px; font-size: 21px; }
.efa-inscripcion h3 .fa { color: #b8860b; margin-right: 6px; }
.efa-inscripcion h4 { color: var(--efa-blue-dark); margin: 18px 0 4px; font-size: 18px; }
.efa-inscripcion .efa-tool-list li { border-bottom-color: #ecd9a0; }
@media (max-width: 767px) { .efa-inscripcion { padding: 20px; } }

@media print {
  .efa-clasif-names { columns: 2; }
  .efa-clasif-names li[hidden] { display: block !important; }
  .efa-clasif-names li { padding: 4px 4px 4px 22px; font-size: 13px; }
  .efa-clasif-alert { display: none !important; }
}
