/* main.css — Diseño y estilos de página
   (fusión de main.css + design.css + color.css, solo reglas usadas) */
/* ── Variables ────────────────────────────── */
:root {
  --brand: #0080be;
  --brand-dark: #006298;
  --brand-light: #d6ebf6;
  --dark: #373737;
  --text: #7c7c7c;
  --white: #ffffff;
  --radius: 5px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}
/* ── Reset ────────────────────────────────── */
*, html, body, h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  font-weight: normal;
}
ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  border-style: none;
}
body {
  font-family: Lato, sans-serif;
  font-size: 14px;
  line-height: 21px;
  color: var(--text);
}
strong {
  font-weight: 700;
  color: #185290;
}
/* ── Base ─────────────────────────────────── */
html {
  scroll-behavior: smooth;
}
a {
  color: var(--brand);
  text-decoration: none;
  transition: all 0.3s ease;
}
a:hover {
  color: var(--brand) !important;
}
.page-content p:not(:last-child) {
  margin-bottom: 1.333em;
}
#inicio, #servicios, #equipo, #contacto {
  scroll-margin-top: 20px;
}
.clearfix:after {
  display: block;
  content: "";
  clear: both;
}
.layout-col-text p {
  font-size: 1.15rem;
  line-height: 1.5;
}

/* ── Hero ─────────────────────────────────── */
#hero {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(145deg, #005280 0%, var(--brand) 55%, #3aaed8 100%);
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/fachada.jpg') center / cover no-repeat;
  opacity: 0.12;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 1.75rem 2rem;
  max-width: 700px;
  width: 100%;
}
.hero-content h1 {
  font-family: Lato, sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #ffffff !important;
  margin: 0 0 0.6rem;
  line-height: 1.2;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}
.hero-tagline {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 2rem;
  font-weight: 400;
  line-height: 1.5;
}
.btn-cita {
  display: inline-block;
  background: var(--white);
  color: var(--brand) !important;
  font-family: Lato, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  padding: 0.9rem 2.5rem;
  border-radius: var(--radius);
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.18);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.btn-cita:hover {
  background: #d6ebf6;
  box-shadow: 0 5px 22px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}
/* ── Widget title ─────────────────────────── */
.widget-title,
.comment-reply-title {
  margin-bottom: 20px;
  padding-left: 7px;
  border-left-width: 3px;
  border-left-style: solid;
  border-left-color: #45b5a5;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #185290;
}
.widget-title span {
  line-height: 1;
  font-weight: 700;
}
/* ── Servicios ────────────────────────────── */
.benefits_widget ul > li:before {
  content: "\f00c";
  display: inline-block;
  position: static;
  margin-left: -1.57em;
  width: 1.357em;
  margin-right: 0.213em;
  font-family: FontAwesome;
  text-align: center;
  color: #45b5a5;
  background: none;
}
.benefits_widget ul > li {
  padding-top: 5px;
  padding-bottom: 5px;
  border-top-style: none;
  border-bottom-style: none;
  padding-left: 1.57em;
}
#servicios .benefits_widget .text_part ul {
  padding: 0;
  margin: 0;
}
#servicios .benefits_widget .text_part li {
  font-size: 0.88rem;
  line-height: 1.4;
}
/* ── Section title ────────────────────────── */
.photo_tour_section_header .widget-title {
  margin-bottom: 1.75rem;
}
.carousel_header .widget-title {
  margin-bottom: 0;
}
/* ── Team cards ───────────────────────────── */
.our_team {
  overflow: hidden;
}
#equipo {
  display: flex !important;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: flex-start;
  position: static !important;
  height: auto !important;
}
#equipo .item {
  flex: 0 1 calc(33.333% - 1.4rem);
  min-width: 180px;
  max-width: 300px;
  position: static !important;
  transform: none !important;
  left: auto !important;
  top: auto !important;
}
#equipo .item .pic {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
#equipo .item .pic img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.35s ease;
}
#equipo .item .pic:hover img {
  transform: scale(1.04);
}
#equipo .item .pic .hover-effect {
  position: absolute;
  inset: 0;
  background: rgba(0, 143, 213, 0);
  transition: background 0.3s;
}
#equipo .item .pic:hover .hover-effect {
  background: rgba(29, 92, 153, 0.15);
}
#equipo .item .links {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  display: flex;
  gap: 0.4rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s;
}
#equipo .item:hover .links {
  opacity: 1;
  transform: translateY(0);
}
#equipo .item .links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--white);
  border-radius: 50%;
  color: #185290 !important;
  font-size: 0.85rem;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
#equipo .item .links a:hover {
  background: #185290;
  color: #ffffff !important;
}
.team_member_info {
  padding: 0.9rem 0.25rem 0.75rem;
  border-bottom: 6px solid #45b5a5;
  transition: all 0.3s ease;
}
.team_member_info .name {
  font-family: Lato, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.2rem;
  transition: all 0.3s ease;
}
.team_member_info a {
  text-decoration: none;
}
.team_member_info .positions {
  font-size: 0.83rem;
  color: var(--text);
  line-height: 1.4;
}
#equipo .item:hover .team_member_info,
#equipo .item:hover .team_member_info .name,
#equipo .item:hover .team_member_info .positions {
  color: #ffffff;
}
#equipo .item:hover .team_member_info {
  background: #185290;
}
/* ── Footer ───────────────────────────────── */
.page_footer {
  background: #185290;
  margin-top: 4rem;
  color: #ffffff;
  border-top: 4px solid #45b5a5;
}

.footer_part {
  padding: 2rem 0;
}

.footer_sidebar_area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #ffffff;
  font-size: 0.95rem;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s, color 0.2s;
}

.footer-item .fa {
  color: #45b5a5;
  font-size: 1.1rem;
}

.footer-item:hover {
  opacity: 1;
  color: #45b5a5 !important;
}

/* ── Scrollup ─────────────────────────────── */
#scrollup {
  background: var(--brand) !important;
  border-radius: 50%;
  transition: opacity 0.25s, transform 0.2s, background 0.2s;
}
#scrollup:hover {
  background: var(--brand-dark) !important;
  transform: translateY(-3px);
}
/* ── Responsive ───────────────────────────── */

@media screen and (max-width: 900px) {
  .hero-content h1 { font-size: 1.75rem; }
}

@media screen and (max-width: 768px) {
  /* Hero */
  #hero { min-height: 300px; }
  .hero-content { padding: 2rem 1.25rem; }
  .hero-content h1 { font-size: 1.55rem; }
  .hero-tagline { font-size: 0.95rem; margin-bottom: 1.5rem; }
  .btn-cita { padding: 0.75rem 2rem; font-size: 0.85rem; }

  /* Texto descripción */
  .layout-col-text p { font-size: 1rem; }

  /* Footer */
  .footer_sidebar_area {
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    text-align: center;
  }
  .footer-item { justify-content: center; }
  .footer_part { padding: 1.5rem 0; }
}

@media screen and (max-width: 480px) {
  .hero-content h1 { font-size: 1.3rem; }
  .hero-tagline { font-size: 0.88rem; }
}
