/* =========================================================
   TOKENS / VARIABLES
   - Paleta, tipografía, tamaños y radios
   ========================================================= */
:root {
  --white-color: #ffffff;
  --primary-color: #7cb8eb;
  --secondary-color: #4f83d1;
  --section-bg-color: #f0f8ff;
  --custom-btn-bg-color: #4f83d1;
  --custom-btn-bg-hover-color: #7cb8eb;
  --dark-color: #000000;
  --p-color: #717275;
  --border-color: #e9eaeb;
  --link-hover-color: #4f83d1;

  --body-font-family: 'Poppins', sans-serif;

  --h1-font-size: 52px;
  --h2-font-size: 46px;
  --h3-font-size: 32px;
  --h4-font-size: 28px;
  --h5-font-size: 24px;
  --h6-font-size: 22px;
  --p-font-size: 16px;
  --btn-font-size: 18px;
  --copyright-font-size: 14px;

  --border-radius-large: 100px;
  --border-radius-medium: 20px;
  --border-radius-small: 10px;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
}

/* ===== Hero con LOGO flotante (independiente del H1) ===== */

.with-floating-logo {
  --hero-logo-size: clamp(150px, 26vw, 220px); 
  --hero-logo-top: clamp(60px, 9vh, 100px);    
  --hero-logo-gap: 24px;                       
}


.with-floating-logo.hero-section {
 
  padding-top: calc(var(--hero-logo-top) + var(--hero-logo-size) + var(--hero-logo-gap));
}


.hero-logo-floating {
  position: absolute;
  z-index: 3;              
  top: var(--hero-logo-top);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
 
}

.hero-logo-floating .hero-logo-img {
  width: var(--hero-logo-size);
  height: auto;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,.25));
  transition: transform .3s;
}
.hero-logo-floating .hero-logo-img:hover {
  transform: translateY(-2px);
}


@media (max-width: 576px) {
  .with-floating-logo {
    --hero-logo-size: clamp(170px, 44vw, 260px);
    --hero-logo-top: clamp(44px, 8vh, 80px);
    --hero-logo-gap: 20px;
  }
}

/* =========================================================
   BASE / RESETS SUAVES
   - Fondo, tipografías, vínculos y peso de <strong>
   ========================================================= */
body {
  background-color: var(--white-color);
  font-family: var(--body-font-family);
}

h2, h3, h4, h5, h6 {
  color: var(--dark-color);
}
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-medium);
}
h1 { font-size: var(--h1-font-size); font-weight: var(--font-weight-bold); }
h2 { font-size: var(--h2-font-size); font-weight: var(--font-weight-bold); }
h3 { font-size: var(--h3-font-size); }
h4 { font-size: var(--h4-font-size); }
h5 { font-size: var(--h5-font-size); }
h6 { font-size: var(--h6-font-size); }

p, ul li {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-normal);
}

a, button {
  touch-action: manipulation;
  transition: all 0.3s;
}

a {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
}
a:hover {
  color: var(--link-hover-color);
}

b, strong { font-weight: var(--font-weight-bold); }

/* =========================================================
   UTILIDADES DE SECCIÓN
   - Padding vertical, fondos y overlays
   ========================================================= */
.section-padding {
  padding-top: 100px;
  padding-bottom: 100px;
}
.section-bg { background-color: var(--section-bg-color); }

.section-overlay {
  background-color: var(--secondary-color);
  position: absolute;
  inset: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}
.testimonial-section .section-overlay { opacity: 0.85; }
.section-overlay + .container { position: relative; }

/* =========================================================
   HEADER SUPERIOR (BARRA DE DATOS)
   ========================================================= */
.site-header {
  background: var(--primary-color);
  position: fixed;    
  top: 0;             
  left: 0;           
  width: 100%;        
  z-index: 9999;      
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}

.site-header p,
.site-header p a {
  color: var(--white-color);
  font-size: var(--copyright-font-size);
}

body {
  padding-top: 50px; /* Ajusta este valor según la altura real del header */
}


/* =========================================================
   HERO
   - Altura, waves SVG y texto animado
   ========================================================= */
.hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 100px;
  min-height: 680px;
}
.hero-section .container { position: relative; z-index: 2; }
.hero-section svg {
  position: absolute;
  bottom: -50px;
  right: 0;
  left: 0;
  pointer-events: none;
}
@media screen and (min-width: 991px) {
  .hero-section-full-height { height: 85vh; }
}


.hero-text {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.4;
}
.text-acento {
  color: #ffc451;
  transition: opacity 0.8s ease-in-out;
}

.fade-out { opacity: 0; }

/* =========================================================
   INTRO
   ========================================================= */
.intro-section { padding-top: 50px; }

/* =========================================================
   BLOQUES PERSONALIZADOS
   - Caja de ayuda junto a la imagen
   ========================================================= */
.custom-block-wrap { position: relative; }
.custom-block-wrap .custom-block {
  position: absolute;
  bottom: 0;
  right: 0;
}
.custom-block {
  background-color: var(--primary-color);
  border-radius: var(--border-radius-small);
  padding: 35px;
}
.custom-block .custom-icon,
.custom-block a { color: var(--white-color); }


.custom-icon { color: var(--secondary-color); }


.bi-star-fill { color: var(--custom-btn-bg-color); }

/* =========================================================
   IMÁGENES DESTACADAS / CONTENEDOR DESTACADO
   
   ========================================================= */
.featured-image { border-radius: var(--border-radius-medium); }
.featured-block { padding: 20px; }

/* =========================================================
   PRODUCTOS / SERVICES
   - Tarjetas de producto con imagen hover
   ========================================================= */
.services-thumb {
  background-color: var(--white-color);
  border-radius: var(--border-radius-small);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 30px;
}
.services-thumb.section-bg { background: var(--section-bg-color); }

.services-image-wrap {
  border-radius: var(--border-radius-small);
  position: relative;
  overflow: hidden;
}
.services-image,
.team-image {
  
  border-radius: var(--border-radius-small);
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
  transition: all 0.5s;
}
.services-image-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.services-image-wrap:hover .services-image-hover { opacity: 1; }

/* =========================================================
   TESTIMONIOS
   - Tarjetas y colores
   ========================================================= */
.testimonial-section {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
}
.testimonial-section .featured-block {
  background-color: var(--primary-color);
  border-radius: var(--border-radius-medium);
  margin-bottom: 24px;
  padding: 30px;
}
.testimonial-section .featured-block h4,
.testimonial-section .featured-block p {
  color: var(--white-color);
}

/* =========================================================
   CONTACTO
   - Caja de información y contenedor para mapa/form
   ========================================================= */
.contact-section { background: var(--white-color); }

.contact-info {
  background: var(--white-color);
  border-radius: var(--border-radius-medium);
  display: inline-block;
  margin-top: 20px;
  padding: 40px;
}
.contact-info h5,
.contact-info h5 a { color: var(--p-color); }
.contact-info h5 a:hover { color: var(--link-hover-color); }


.consulting-form {
  background: var(--white-color);
  border-radius: var(--border-radius-medium);
  position: relative;
  overflow: hidden;
  padding: 45px;
}

/* =========================================================
   FOOTER
   - Estilos generales, fondo animado y enlaces
   ========================================================= */
.site-footer {
  background-color: var(--primary-color);
  padding-top: 50px;
}
.site-footer-bottom {
  border-top: 1px solid #7fbcf0;
  position: relative;
  z-index: 2;
  margin-top: 50px;
  padding-top: 25px;
  padding-bottom: 25px;
}
.site-footer-title,
.site-footer-link { color: var(--white-color); }
.copyright-text {
  color: var(--section-bg-color);
  font-size: var(--copyright-font-size);
  margin-right: 30px;
}
.site-footer .custom-btn { font-size: var(--copyright-font-size); }
.site-footer .custom-btn:hover { background: var(--primary-color); }
.site-footer-bottom a { color: var(--white-color); }
.site-footer-bottom a:hover { color: var(--link-hover-color); }


.site-footer-bottom .sitename { font-weight: 700; }
.site-footer-bottom .sitename,
.site-footer-bottom .sitename:link,
.site-footer-bottom .sitename:visited {
  color: inherit;
  text-decoration: none;
}
.site-footer-bottom .sitename:hover,
.site-footer-bottom .sitename:focus { text-decoration: none; }


.animated-footer {
  position: relative;
  background-color: #7cb8eb;
  color: white;
  z-index: 1;
  overflow: hidden;
}
.animated-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 300%;
  height: 100%;
  background-image: url('/images/salvatierraimport.jpeg');
  background-repeat: repeat-x;
  background-size: auto 100%;
  animation: scroll-footer-bg 40s linear infinite;
  opacity: 0.4;
  z-index: 0;
}
.animated-footer .container,
.animated-footer .site-footer-bottom {
  position: relative;
  z-index: 1;
}
@keyframes scroll-footer-bg {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================================================
   RESPONSIVE
   - Tipos fluidos, paddings de sección y ajustes menores
   ========================================================= */
@media screen and (min-width: 1600px) {
  .intro-section { padding-top: 0; }
}

@media screen and (max-width: 991px) {
  h1 { font-size: 42px; }
  h2 { font-size: 36px; }
  h3 { font-size: 32px; }
  h4 { font-size: 28px; }
  h5 { font-size: 20px; }
  h6 { font-size: 18px; }

  .section-padding { padding-top: 50px; padding-bottom: 50px; }

  
  .custom-block-wrap .custom-block { right: 12px; }

  .site-footer { padding-top: 50px; }
  .site-footer-bottom { text-align: center; margin-top: 50px; }
}

@media screen and (max-width: 767px) {
  .hero-section svg { bottom: 0; }
}

@media screen and (max-width: 480px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 26px; }
  h4 { font-size: 22px; }
  h5 { font-size: 20px; }
}



.rotator {
  position: relative;
  display: inline-block;
  max-width: 100%;
  vertical-align: baseline;
}


.rotator-measure {
  display: block;           
  visibility: hidden;       
  white-space: normal;      
  pointer-events: none;
}


#rotating-text {
  position: absolute;
  top: 0;
  left: 50%;               
  transform: translateX(-50%);  
  white-space: normal;       
  overflow-wrap: anywhere;
  word-break: normal;
  transition: opacity 0.8s ease-in-out;
  text-align: center;       
  width: max-content;       
  max-width: 100%;          
}



#rotating-text.text-acento { color: #ffc451; }


.fade-out { opacity: 0; }


.hero-text { line-height: 1.35; }
