/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; overflow-y: scroll; }
body { overflow-x: hidden; overflow-y: auto; }
body { font-family: 'Poppins', sans-serif; color: #333; background: #f8f9fa; font-size: 18px; }

/* Tipografía destacada */
.display-font,
h1, h2, h3, h4,
.site-nav a,
.btn,
.logo h1 {
  font-family: 'Bebas Neue', 'Poppins', sans-serif;
  letter-spacing: 0.5px;
}
a { text-decoration: none; }

/* Container */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* Topbar */
.topbar { background: #00468b; color: #fff; padding: 6px 0; font-size: 0.9rem; }
.social-container { display: flex; justify-content: flex-end; }
.social-icons a { color: #fff; margin-left: 12px; transition: color .3s; }
.social-icons a:hover { color: #ffb400; }

/* Header */
.site-header {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-container { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 115px; }
.logo h1 { color: #00468b; font-size: 1.9rem; font-weight: 900;}
.site-nav ul { display: flex; gap: 20px; list-style: none; }
.site-nav a { color: #00468b; transition: color .3s; font-size: 1.30rem; }
.site-nav a:hover { color: #ffb400; }
.btn { padding: 10px 20px; border-radius: 4px; font-weight: 600; }
.primary-btn { background: #00468b; color: #fff; letter-spacing: 0.1rem;}
.primary-btn:hover { background: #003766; }
.secondary-btn { border: 2px solid #fff; color: #fff; }

/* Sections */
h3 {
  text-align: center;
  color: #00468b;
  margin: 60px 0 30px;
  font-size: 2rem;
  font-weight: 400;
}

/* Espaciado uniforme entre secciones */
.about-section,
.services-section,
.projects-section,
.contact-section {
  padding: 60px 0;
}

/* Ajuste de ancla para header sticky */
#nosotros {
  scroll-margin-top: 120px;
}

/* Servicios */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.service-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,.1);
  transition: transform .3s;
}
.service-item:hover { transform: translateY(-5px); }
.service-media {
  position: relative;
  overflow: hidden;
}
.service-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.service-item:hover img { transform: scale(1.06); }
.service-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  transition:opacity .25s ease;
}
.service-item:hover .service-overlay{ opacity:1; }
.service-overlay span{ color:#fff; font-weight:700; }
.service-item h4 { color: #00468b; margin: 15px 0 8px; }
.service-item p { padding: 0 15px 20px; color: #555; }
.services-intro { color: #555; }

/* Proyectos */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; }
.projects-grid img { width: 100%; border-radius: 8px; }

/* Nosotros */
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; margin-top: 40px; }
.team-member { text-align: center; }
.team-member img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; }
.team-member h4 { color: #00468b; }

/* Fondo degradado general (desde header hasta contacto) */
.page-gradient {
  position: relative;
  padding-bottom: 90px; /* espacio para el badge de reCAPTCHA */
  overflow-x: hidden; /* evita scroll horizontal por AOS */
}
.page-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #f8f9fa;
  pointer-events: none;
  z-index: 0;
}
.page-gradient > * {
  position: relative;
  z-index: 1;
}

/* Contacto */
.contact-section {
  background: transparent;
}
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 70, 139, 0.12);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
  position: relative;
  z-index: 1;
}
.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
}
.contact-actions {
  display: flex;
  justify-content: flex-start;
}
.contact-actions .btn {
  padding: 8px 16px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #00468b;
  box-shadow: 0 0 0 3px rgba(0, 70, 139, 0.12);
}

/* Footer */
.site-footer { background: #002a50; color: #fff; text-align: center; padding: 20px 0; font-size: 0.9rem; }
.site-footer a,
.site-footer a:visited,
.site-footer a:hover,
.site-footer a:active {
  color: #fff !important;
}
.footer-phone { margin-top: 6px; }

/* Botón WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  width: 52px;
  height: 52px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 26px;
  line-height: 52px;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  transition: transform .2s ease, box-shadow .2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
}

/* Botón volver arriba */
.back-to-top {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 10000;
  width: 48px;
  height: 48px;
  background-color: #00468b;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 20px;
  line-height: 48px;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  transition: transform .2s ease, box-shadow .2s ease;
}
.back-to-top:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
}

/* =====================
   HERO CAROUSEL FADE - PRO
   ===================== */

.hero-section {
  width: 100%;
  height: 60vh;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.carousel {
  width: 100%;
  height: 100%;
  position: relative;
}

.fade-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1s ease-in-out, transform 1.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.fade-slide.active {
  opacity: 1;
  transform: scale(1.04);
  pointer-events: auto;
}

/* Fondo de cada slide */
.hero-bg-1 {
  background: url('../img/galpon1.png') center/cover no-repeat;
}
.hero-bg-2 {
  background: url('../img/estructuras1.png') center/cover no-repeat;
}
.hero-bg-3 {
  background: url('../img/montaje1.png') center/cover no-repeat;
}

/* Overlay para legibilidad */
.fade-slide::before {
  content: "";
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}

/* Texto */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  color: #fff;
  max-width: 600px;
  padding: 20px;
  animation: fadeTextIn 1s ease forwards;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 10px;
}
.hero-content p {
  margin-bottom: 20px;
  font-size: 1.3rem;
}

/* Botones flechas */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  border: none;
  color: white;
  padding: 15px 20px;
  font-size: 30px;
  cursor: pointer;
  border-radius: 8px;
  z-index: 3;
}
.fade-prev { left: 20px; }
.fade-next { right: 20px; }

/* Puntitos */
.fade-dots {
  position: absolute;
  bottom: 25px;
  width: 100%;
  text-align: center;
  z-index: 3;
}
.fade-dots span {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.4);
  margin: 5px;
  display: inline-block;
  border-radius: 50%;
  cursor: pointer;
}
.fade-dots .active {
  background: white;
}

/* Animación texto */
@keyframes fadeTextIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}




/* ===========================
   Responsive design
   =========================== */

/* Small devices: phones */
@media (max-width: 575.98px) {
  .site-footer p {
    margin: 4px 0;
  }
  .footer-copy,
  .footer-location {
    display: block;
  }
  .footer-sep {
    display: none;
  }
  .page-gradient {
    padding-bottom: 120px;
  }

  .topbar {
    font-size: 0.85rem;
    text-align: center;
  }

  .social-container {
    justify-content: center;
  }

  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .logo img {
    height: 62px;
  }

  .logo h1 {
    font-size: 1.25rem;
  }

  .social-icons a {
    font-size: 1.25rem;
    margin-left: 14px;
  }

  .site-nav ul {
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
  }

  .hero-section {
    height: 75vh;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
    padding: 10px 15px;
  }

  .hero-content h2 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-item img {
    height: 180px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .about-section p {
    text-align: left;
    font-size: inherit;
  }

  .team-grid {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .contact-section {
    padding: 40px 0 120px; /* espacio extra para evitar superposición con reCAPTCHA */
  }

  .contact-form {
    width: calc(100% - 24px);
    margin: 0 auto;
    padding: 18px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
  }

  .site-footer {
    padding: 15px 0;
    font-size: 0.8rem;
  }

  .whatsapp-float {
    bottom: 15px;
    right: 15px;
  }
}

/* Medium devices: small tablets */
@media (min-width: 576px) and (max-width: 767.98px) {

  .cta-header {
	display: none;
  }
  
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .logo img {
    height: 48px;
  }

  .site-nav ul {
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.9rem;
  }

  .hero-section {
    height: 70vh;
  }

  .hero-content {
    max-width: 90%;
    text-align: left;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-form {
    max-width: 500px;
  }
}

/* Large devices: tablets en horizontal y desktops chicos */
@media (min-width: 768px) and (max-width: 1199.98px) {

  .cta-header {
	display: none;
  }
  
  .hero-section {
    height: 70vh;
  }

  .hero-content h2 {
    font-size: 2.4rem;
  }

  .hero-content p {
    font-size: 1.05rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Extra large devices: desktop grande */
@media (min-width: 1200px) {

  .container {
    max-width: 1400px;
  }

  .hero-section {
    height: 80vh;
  }

  .hero-content h2 {
    font-size: 2.8rem;
  }

  .hero-content p {
    font-size: 1.15rem;
  }

  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Ultra wide / TV */
@media (min-width: 1600px) {

  .container {
    max-width: 1600px;
  }

  .hero-section {
    height: 85vh;
  }

  .hero-content h2 {
    font-size: 3.1rem;
  }

  .hero-content p {
    font-size: 1.25rem;
  }

  body {
    font-size: 1.05rem;
  }
}

/* ===========================
   NAV HAMBURGUESA
   =========================== */

.nav-toggle {
  display: none;
}

@media (max-width: 768px) {

  .cta-header {
	display: none;
  }
	
  .nav-toggle {
    display: block;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #00468b;
    cursor: pointer;
    position: absolute;
    right: 20px;
  }

  .site-nav {
    display: none;
    width: 100%;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 12px;
    background: #ffffffee;
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 10px;
  }

  .site-nav ul li a {
    font-size: 1rem;
    padding: 10px 0;
  }
  
  .whatsapp-float {
    bottom: 20px;
    right: 15px; /* evita que se tape con el badge de reCAPTCHA */
    width: 55px;
    height: 55px;
    font-size: 28px;
    line-height: 55px;
  }

  .back-to-top {
    bottom: 20px;
    left: 15px;
  }
}

.projects-section {
  padding: 60px 0;
}

.projects-section h3 {
  text-align: center;
  margin-bottom: 40px;
}

.projects-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:25px;
}

.project-card{
  position:relative;
  overflow:hidden;
  border-radius:12px;
  cursor:pointer;
}

.project-card img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transition:transform .4s ease;
}

.project-card:hover img{ transform:scale(1.06); }

.project-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  transition:opacity .25s ease;
}
.project-card:hover .project-overlay{ opacity:1; }

.project-overlay span{ color:#fff; font-weight:700; }

.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.85);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:99999;
  padding:20px;
}

.lightbox.open{ display:flex; }

#lightbox-img{
  max-width:90vw;
  max-height:90vh;
  border-radius:10px;
  opacity:1;
  transition:opacity .25s ease, transform .25s ease;
}

#lightbox-img.fade-out{
  opacity:0;
  transform:scale(.98);
}

.lightbox .close{
  position:absolute;
  top:18px;
  right:22px;
  font-size:42px;
  line-height:1;
  color:#fff;
  background:transparent;
  border:0;
  cursor:pointer;
}

.lightbox .nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:rgba(255,255,255,.12);
  border:0;
  color:#fff;
  font-size:40px;
  padding:10px 16px;
  border-radius:12px;
  cursor:pointer;
  user-select:none;
}

.lightbox .nav:hover{ background:rgba(255,255,255,.20); }

.lightbox .prev{ left:20px; }
.lightbox .next{ right:20px; }

.lightbox .counter{
  position:absolute;
  bottom:18px;
  left:50%;
  transform:translateX(-50%);
  color:#fff;
  font-weight:600;
  background:rgba(0,0,0,.35);
  padding:6px 10px;
  border-radius:10px;
  font-size:14px;
}

.text-justify {
  text-align: justify;
}

.text-center {
  text-align: center;
}

/* Por qué elegir */
.reasons-block {
  text-align: left;
}
.reasons-title {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  text-align: left;
  justify-content: center;
}
.reasons-icon {
  width: 1.6rem;
  display: inline-flex;
  justify-content: center;
}
.reasons-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 16px;
}
.reasons-list li {
  display: flex;
  gap: 8px;
  margin: 8px 0;
}
.reasons-note {
  margin: 0;
  color: #555;
}

/* Blockquote */
blockquote {
  margin: 0.75rem 0 0.75rem 1.25rem;
  padding-left: 0.9rem;
  border-left: 4px solid rgba(0, 70, 139, 0.25);
}
blockquote ul {
  margin: 0;
  padding-left: 1rem;
}

/* Quiénes Somos */
.about-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 70, 139, 0.12);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
}

/* Servicios enmarcado */
.services-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 70, 139, 0.12);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
}

/* Proyectos enmarcado */
.projects-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 70, 139, 0.12);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
}

.grecaptcha-badge{
  position: fixed !important;
  z-index: 999999 !important;
  top: auto !important;
  bottom: 14px !important;
  left: auto !important;
  right: 14px !important;     /* si lo querés a la derecha */
  transform: none !important;
}

@media (max-width: 575.98px) {
  .grecaptcha-badge{
    bottom: 8px !important;
    right: 8px !important;
    transform: scale(0.82) !important;
    transform-origin: bottom right !important;
  }
}