/**
 * Rocío Parra Arquitectura — guía de estilo (Estilo_Landing_Rocio_Parra.txt)
 * Cargar después de style.css y responsive.css
 */

:root {
  --roci-text: #2b2b2b;
  --roci-text-secondary: #6b6b6b;
  --roci-bg: #ffffff;
  --roci-bg-alt: #f5f5f5;
  --roci-accent: #99cccc;
  --roci-accent-hover: #7ab8b8;
  --roci-brand-gray: #4b4b4d;
  --roci-photo-height: 420px;
  --roci-header-scroll-pad: 100px;
}

/* One page: anclas y header fijo */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--roci-header-scroll-pad);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Tipografía global */
body {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 400;
  color: var(--roci-text) !important;
  background: var(--roci-bg) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.sec-title h2,
.feature-block h3,
.skills-section .top-content .count {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 600 !important;
  color: var(--roci-text) !important;
}

.text,
.text-two {
  color: var(--roci-text-secondary) !important;
}

.sec-title .sub-title {
  color: var(--roci-text-secondary) !important;
}

.sec-title .sub-title span {
  color: #b8b8b8 !important;
}

/* Navegación principal */
/* Sin capitalize/uppercase del theme: mayúsculas solo donde el HTML las pone (p. ej. primera letra). */
.main-menu .navigation > li > a,
.main-menu .navigation > li > ul > li > a,
.main-menu .navigation > li > ul > li > ul > li > a {
  text-transform: none !important;
}

.main-menu .navigation > li > a {
  color: var(--roci-text) !important;
}

.mobile-menu .navigation li > a,
.mobile-menu .navigation li ul li > a {
  text-transform: none !important;
}

.main-menu .navigation > li > a:hover,
.main-menu .navigation > li.dropdown:hover > a {
  color: var(--roci-accent) !important;
}

.main-menu .navigation > li > ul > li > a:hover {
  color: var(--roci-accent) !important;
}

/* Enlaces de bloques de contenido (servicios, noticias, etc.) */
.what-we-do-block h4 a,
.latest-news .lower-content h4 a {
  color: var(--roci-brand-gray);
}

.what-we-do-block h4 a:hover,
.latest-news .lower-content h4 a:hover {
  color: var(--roci-accent) !important;
}

/* Botones primarios (celeste, sin animación invertida del theme) */
.page-wrapper .theme-btn:not(.style-two) {
  background: var(--roci-accent) !important;
  border-color: var(--roci-accent) !important;
  border-radius: 6px !important;
  padding: 12px 20px !important;
  min-width: auto !important;
  font-weight: 600 !important;
  text-transform: none !important;
  color: #fff !important;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease !important;
}

.page-wrapper .theme-btn:not(.style-two):before {
  display: none !important;
}

.page-wrapper .theme-btn:not(.style-two):hover {
  background: var(--roci-accent-hover) !important;
  border-color: var(--roci-accent-hover) !important;
  color: #fff !important;
}

/* Botón secundario: borde celeste, sin negro al hover */
.page-wrapper .theme-btn.style-two {
  background: transparent !important;
  color: var(--roci-text) !important;
  border: 2px solid var(--roci-accent) !important;
  border-radius: 6px !important;
  padding: 12px 20px !important;
  min-width: auto !important;
  font-weight: 600 !important;
  text-transform: none !important;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease !important;
}

.page-wrapper .theme-btn.style-two:before {
  display: none !important;
}

.page-wrapper .theme-btn.style-two:hover {
  background: var(--roci-accent) !important;
  border-color: var(--roci-accent) !important;
  color: #fff !important;
}

/* Footer: newsletter y hovers con acento */
.main-footer .newsletter-widget .theme-btn {
  background: var(--roci-accent) !important;
  border-color: var(--roci-accent) !important;
  border-radius: 6px !important;
  color: #fff !important;
}

.main-footer .newsletter-widget .theme-btn:hover {
  background: var(--roci-accent-hover) !important;
  border-color: var(--roci-accent-hover) !important;
  color: #fff !important;
}

.contact-widget ul li a:hover,
.links-widget ul li a:hover {
  color: var(--roci-accent) !important;
}

.footer-bottom .social-links li a:hover {
  color: var(--roci-accent) !important;
}

/* Secciones: alternar blanco / gris claro */
.about-section {
  background-color: var(--roci-bg) !important;
}

.features-section {
  background: var(--roci-bg-alt) !important;
}

.what-we-do {
  background-color: var(--roci-bg) !important;
}

.faq-section {
  background-color: var(--roci-bg-alt) !important;
}

.latest-news {
  background-color: var(--roci-bg) !important;
}

/* Banner: tipografía y paginación */
/* Sin capitalize/uppercase del theme: solo la capitalización del HTML (oración normal). */
.banner-section .content-box h1,
.banner-section .content-box h4 {
  text-transform: none !important;
}

.banner-section .content-box h1 {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 600 !important;
  color: var(--roci-text) !important;
}

.banner-section .content-box h4 {
  font-family: "Montserrat", sans-serif !important;
  color: var(--roci-text-secondary) !important;
}

.banner-section .link-box .theme-btn,
.banner-section .link-box .theme-btn span {
  text-transform: none !important;
}

.banner-slider-pagination.style-two .swiper-pagination-bullet:after {
  color: var(--roci-text) !important;
  font-family: "Montserrat", sans-serif !important;
  font-weight: 600 !important;
}

.banner-slider-pagination.style-two
  .swiper-pagination-bullet.swiper-pagination-bullet-active:before {
  background-color: var(--roci-accent) !important;
}

/* Barras de habilidades y play: acento en lugar de negro */
.skills .skill-item .skill-bar .bar-inner .bar,
.skills .skill-item .skill-bar .bar-inner .bar:before {
  background: var(--roci-accent) !important;
}

.skills-section .video-btn a {
  background-color: var(--roci-accent) !important;
}

.skills-section .video-btn a:hover {
  background-color: var(--roci-accent-hover) !important;
}

/* Logo cabecera (normal y sticky): ancho máximo */
.main-header .header-upper .logo-box .logo img,
.sticky-header .header-upper .logo-box .logo img {
  max-width: 100px;
  width: auto;
  height: auto;
}

/* Servicios: cards solo icono + título */
.features-section .feature-block .inner-box.feature-card-simple {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  padding: 40px 24px;
}

.features-section .feature-block .inner-box.feature-card-simple .icon {
  position: static;
  margin-bottom: 22px;
  font-size: 3rem;
  line-height: 1;
  color: var(--roci-accent);
  transform: none;
}

.features-section .feature-block .inner-box.feature-card-simple .icon .fas {
  display: block;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.04));
}

.features-section .feature-block .inner-box.feature-card-simple h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.35;
  opacity: 1 !important;
}

.features-section .feature-block .inner-box.feature-card-simple h3:before {
  display: none;
}

.features-section .feature-block .inner-box.feature-card-simple:hover {
  border-color: var(--roci-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Fotografías: mismo alto + object-fit cover (noticias / faq) */
.page-wrapper .latest-news .news-block .image,
.page-wrapper .faq-section .image {
  height: var(--roci-photo-height);
  overflow: visible;
  position: relative;
}

.page-wrapper .latest-news .news-block .image img,
.page-wrapper .faq-section .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* About: recorte uniforme en círculos */
.page-wrapper .about-section .image-wrapper .image,
.page-wrapper .about-section .image-wrapper .image-two {
  overflow: hidden;
  border-radius: 50%;
}

.page-wrapper .about-section .image-wrapper .image {
  width: min(100%, 520px);
  aspect-ratio: 1 / 1;
  margin-left: auto;
  margin-right: auto;
}

.page-wrapper .about-section .image-wrapper .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-wrapper .about-section .image-wrapper .image-two {
  width: min(85%, 440px);
  aspect-ratio: 1 / 1;
}

.page-wrapper .about-section .image-wrapper .image-two img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Iconos PNG en servicios (section two): no forzar cover */
.page-wrapper .services-section-two .icon img {
  width: auto !important;
  height: auto !important;
  max-height: 96px;
  object-fit: contain !important;
}

/* Sponsors: logos enteros, sin recorte */
.page-wrapper .sponsors-section .image img {
  height: auto !important;
  max-height: 72px;
  width: auto !important;
  max-width: 100%;
  object-fit: contain !important;
}

/* Premios y viviendas (mismo bloque portfolio-section-two / portfolio-block-two) */
.page-wrapper .portfolio-section-two.roci-premios,
.page-wrapper .portfolio-section-two.roci-viviendas {
  padding: 100px 0 80px;
}

.page-wrapper .portfolio-section-two.roci-premios .roci-premios-title,
.page-wrapper .portfolio-section-two.roci-viviendas .roci-viviendas-title {
  margin-bottom: 55px;
}

.page-wrapper .portfolio-section-two.roci-premios .portfolio-block-two .image,
.page-wrapper
  .portfolio-section-two.roci-viviendas
  .portfolio-block-two
  .image {
  height: var(--roci-photo-height);
}

.page-wrapper
  .portfolio-section-two.roci-premios
  .portfolio-block-two
  .image
  img,
.page-wrapper
  .portfolio-section-two.roci-viviendas
  .portfolio-block-two
  .image
  img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Premios: tarjeta clic abre Fancybox (galería + caption) */
.page-wrapper .roci-premios .portfolio-block-two .inner-box {
  position: relative;
}

.page-wrapper .roci-premios .roci-premio-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  outline: none;
}

.page-wrapper .roci-premios .roci-premio-card-link:hover .content h4,
.page-wrapper .roci-premios .roci-premio-card-link:focus-visible .content h4 {
  color: var(--roci-accent);
}

.page-wrapper .roci-premios .roci-premio-gallery-extras {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

.page-wrapper .roci-premios .roci-premio-gallery-extras a {
  position: absolute;
}

/* Fancybox: caption legible (fondo blanco, texto oscuro) */
body .fancybox-caption-wrap {
  background: #ffffff !important;
  background-image: none !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 0px !important;
}

body .fancybox-caption {
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #2b2b2b !important;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem 1.25rem 1.25rem;
  text-align: center;
}

body .fancybox-caption a {
  color: var(--roci-accent-hover);
  text-decoration: underline;
}

body .fancybox-caption a:hover {
  color: var(--roci-accent);
}

body .fancybox-caption strong {
  font-weight: 600;
  color: #1a1a1a;
}

/* Texto extendido en ficha de vivienda */
.page-wrapper .portfolio-details .roci-proyecto-descripcion ul {
  margin: 1rem 0 1.25rem;
  padding-left: 1.35rem;
  list-style: disc;
}

.page-wrapper .portfolio-details .roci-proyecto-descripcion li {
  margin-bottom: 0.55rem;
  line-height: 1.55;
}

.page-wrapper .portfolio-details .roci-proyecto-descripcion li:last-child {
  margin-bottom: 0;
}

/* Ficha proyecto (vivienda): filas horizontales de fotos — misma altura y cover */
.page-wrapper
  .portfolio-details
  .image-block
  > .row
  > [class*="col-"]
  > .image,
.page-wrapper
  .portfolio-details
  .text-block-two
  > .row
  > [class*="col-"]
  > .image {
  margin-bottom: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.page-wrapper
  .portfolio-details
  .image-block
  > .row
  > [class*="col-"]
  > .image
  img,
.page-wrapper
  .portfolio-details
  .text-block-two
  > .row
  > [class*="col-"]
  > .image
  img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 991.98px) {
  .page-wrapper
    .portfolio-details
    .image-block
    > .row
    > [class*="col-"]:not(:last-child)
    > .image,
  .page-wrapper
    .portfolio-details
    .text-block-two
    > .row
    > [class*="col-"]:not(:last-child)
    > .image {
    margin-bottom: 1.25rem;
  }
}

/* Proceso de trabajo (what-we-do) */
.page-wrapper .roci-proceso .roci-proceso-lead {
  margin-top: 18px;
  max-width: 36rem;
}

.page-wrapper .roci-proceso .roci-proceso-text {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--roci-text-secondary);
}

.page-wrapper .roci-proceso .what-we-do-block .icon.roci-proceso-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.page-wrapper .roci-proceso .what-we-do-block .icon.roci-proceso-icon img {
  width: 64px;
  height: 64px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.page-wrapper
  .roci-proceso
  .what-we-do-block
  .inner-box:hover
  .icon.roci-proceso-icon
  img {
  transform: translateY(-3px);
  opacity: 0.88;
}

.page-wrapper .main-footer .roci-footer-cta .roci-footer-cta-text {
  margin-bottom: 18px;
}

/* Bloque contacto (antes del footer) */
.page-wrapper .roci-contact .info-block h5 {
  font-family: "Montserrat", sans-serif;
}

/* Columna derecha: foto de fondo + velo blanco difuminado */
.page-wrapper .roci-contact .roci-contact-form-col {
  position: relative;
  isolation: isolate;
  padding-top: 8px;
  padding-bottom: 8px;
}

.page-wrapper .roci-contact .roci-contact-form-col::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 4px;
  background: url("../../imagenes/fotos/contacto.jpg") center / cover no-repeat;
}

.page-wrapper .roci-contact .roci-contact-form-col::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.6);

  pointer-events: none;
}

.page-wrapper .roci-contact .roci-contact-form-col > .contact-form,
.page-wrapper .roci-contact .roci-contact-form-col > .roci-form-note {
  position: relative;
  z-index: 2;
}

.page-wrapper .roci-contact .roci-contact-checks {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.page-wrapper .roci-contact .roci-contact-checks h5 {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--roci-text-secondary);
  margin: 0 0 8px;
}

.page-wrapper .roci-contact .roci-contact-checks label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 5px;
  color: var(--roci-text);
}

.page-wrapper .roci-contact .roci-contact-checks label:last-of-type {
  margin-bottom: 0;
}

.page-wrapper .roci-contact .roci-contact-checks input[type="checkbox"] {
  /* Evitar que herede el estilo gigante de .contact-form input */
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  border: 2px solid #ececec !important;
  box-shadow: none !important;
  padding: 0 !important;
  background: #fff !important;
  accent-color: var(--roci-accent);
  margin: 2px 0 0 !important;
  display: inline-block !important;
}

.page-wrapper .roci-contact .contact-form input[type="checkbox"] {
  /* Doble seguro: resetear cualquier regla genérica del theme */
  height: 18px !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.page-wrapper .roci-contact .roci-form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.page-wrapper .roci-contact .roci-form-note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--roci-text-secondary);
  max-width: 36rem;
}

/* Barra lateral (solo logo oscuro + info + redes) */
.hidden-sidebar.roci-hidden-sidebar .logo img {
  max-width: 220px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hidden-sidebar.roci-hidden-sidebar .text-widget .text a {
  color: var(--roci-accent-hover);
}

.hidden-sidebar.roci-hidden-sidebar .text-widget .text a:hover {
  text-decoration: underline;
}

.hidden-sidebar.roci-hidden-sidebar .roci-sidebar-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hidden-sidebar.roci-hidden-sidebar .roci-sidebar-social li {
  margin: 0;
  padding: 0;
}

.hidden-sidebar.roci-hidden-sidebar .roci-sidebar-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #eaeaea;
  color: var(--roci-text);
  transition:
    border-color 0.25s ease,
    color 0.25s ease;
}

.hidden-sidebar.roci-hidden-sidebar .roci-sidebar-social a:hover {
  border-color: var(--roci-accent);
  color: var(--roci-accent-hover);
}

.page-wrapper .service-block-two .text.roci-text-justify {
  text-align: justify;
}
