/* ---------- Reset global ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  -webkit-tap-highlight-color: transparent;
}
* {
    box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  
  color: #1a1a1a;
  overflow-x: hidden;
  min-height: 100;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0;
  padding: 0;
}

/* ---------- Header ---------- */


header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 2rem 5%;
  background: rgba(243, 255, 247, 0.35); /* más claro, tono verde apenas visible */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
  z-index: 100;
}

header.scrolled {
  background: rgba(243, 255, 247, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

header.hidden {
  transform: translateY(-120%);
}

/* ---------- Logo ---------- */
.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: #007acc;
}

.logo span {
  color: #36c96f;
  margin-left: 0.5rem;
}

/* ---------- Navigation ---------- */
nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 1rem;
}

nav a:hover {
  color: #36c96f;
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 5%;
  background: url('/servicioimg/tiendaof2.avif');
  min-height: 90vh;
  margin-top: 85px;
  animation: cambioFondo 12s infinite alternate ease-in-out;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Animación de movimiento */


@keyframes cambioFondo {
  50% {
    background-image: url('/servicioimg/tiendaof2.avif');
  }
  50% {
    background-image: url('/servicioimg/portada2ofi.avif');
  }
  66% {
    background-image: url('/servicioimg/portada2ofi.avif');
  }
  33% {
    background-image: url('/servicioimg/tiendaof2.avif');
  }
}

.hero-text {
  max-width: 1000px;
  padding: 3rem 2rem;

  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);

  /* círculo completo */
  width: 45%;
  aspect-ratio: 1 / 1;   /* hace el círculo perfecto */
  border-radius: 50%;

  z-index: 2;

  /* centrar el círculo en pantalla */
  position: relative;
  top: 50%;
  left: -90px;
  transform: translate(-50%, -50%);

  /* CENTRAR EL TEXTO DENTRO DEL CÍRCULO */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-text h1 {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: 4rem;
  color: #1bfc88;
  margin-bottom: 2rem;
  font-weight: bold;
  -webkit-text-stroke: 1px white;
}

.hero-text p {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: 1.5rem;
  color: #e6f4e9;
  margin-bottom: 1.5rem;
  -webkit-text-stroke: 0.1px rgb(244, 241, 241);
  font-weight: bold;
}

/* ---------- Botones ---------- */
.btn-main, .btn-contact {
  background-color: #40bfee;
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.btn-main:hover, .btn-contact:hover {
  background-color: #4390e2;
  transform: scale(1.05);
}

.btn-main  {
  text-decoration: none;
}
/* ---------- Cards ---------- */
.services, .products {
  padding: 4rem 5%;
  text-align: center;
}
.services1, .products {
  padding: 4rem 5%;
  text-align: center;
}

h2 {
  font-size: 2rem;
  color: #007acc;
  margin-bottom: 2rem;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* ---------- Footer ---------- */
footer {
  background-color: #9fdaba;
  padding: 4rem 5%;
  text-align: left;
  color: #333;
  min-height: 20rem;
}

/* ---------- Redes sociales ---------- */
.redes {
  position:relative;
  right: -80px;
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.social-icons a {
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.3s;
  text-decoration: none;
}

.social-icons a:hover {
  transform: scale(1.2);
}

/* ---------- Animaciones ---------- */


@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideIn 1s ease forwards;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-zoom {
  opacity: 0;
  transform: scale(2);
  animation: zoomIn 1s ease forwards;
}

@keyframes zoomIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- Imágenes ---------- */
.hero img {
  max-width: 100%;
  height: auto;
}

/* ---------- Media Queries ---------- */
/* Tablets */
@media (max-width: 1024px) {
  .hero {
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 3rem 5%;
  }

  .hero-text h1 { font-size: 2.2rem; }
  .hero-text p { font-size: 1rem; }
  nav a { font-size: 0.95rem; }

  .developers {
    left: 0;
    top: 0;
    align-items: center;
    text-align: center;
  }
}
@media (max-width: 768px) {
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transition: transform 0.3s ease;
  }

  header.hide-header {
    transform: translateY(-100%);
  }
}

/* Celulares */
@media (max-width: 768px) {
   header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transition: transform 0.3s ease;
    text-align: center;
    align-items: center;
    display: flex;
    justify-content: center;
  }

  .redes{
     position: relative;
  
  left: 65px;
  }
.social-icons{
  position: relative;
  top: 30px;
  left: -65px;
}

  header.hide-header {
    transform: translateY(-100%);
  }
    
  .logo { font-size: 1.2rem; }

  nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
  }

  nav a { margin: 0.5rem 1rem; }

  .hero {
    position: relative;
    top:200px;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: 420px !important;
    padding: 0 !important;
    margin: 0 !important;
    background-size: cover !important;
    background-position: center !important;
  }

  /* 🔥 El fix fuerte para tu tarjeta */
  .hero-text {
    position: relative !important;
    left: 0 !important;
    top: -80px !important;
    transform: none !important;

    width: 85% !important;
    height: auto !important;

    padding: 1.7rem 1.3rem !important;
    background: rgba(0,0,0,0.5) !important;
    border-radius: 16px !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;

    z-index: 5 !important;
  }

  .hero-text h1 {
    font-size: 1.9rem !important;
    color: #fff !important;
    margin-bottom: .8rem !important;
  }

  .hero-text p {
    font-size: 1.1rem !important;
    color: #eee !important;
    margin-bottom: 1rem !important;
  }

  .btn-main, 
  .hero-text .btn {
    display: block !important;
    margin: 0 auto !important;
    padding: 0.9rem 1.3rem !important;
  }
  .hero-text .btn {
    padding: 0.9rem 1.6rem;
    font-size: 1rem;
    border-radius: 10px;
    background: #30c2ff;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: 0.25s;
  }

  .hero-text .btn:hover {
    background: #1099d8;
    transform: scale(1.04);
  }
  
  .social-icons a { font-size: 1.2rem; }

  footer {
    padding: 3rem 5%;
    text-align: center;
  }

  .developers {
    position: relative;
    top: 0;
    left: 0;
    align-items: center;
  }
}

/* Celulares */
@media (max-width: 1024px) {
   header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transition: transform 0.3s ease;
    text-align: center;
    align-items: center;
    display: flex;
    justify-content: center;
  }
.social-icons{
  position: relative;
  top: 30px;
  left: -65px;
}

  header.hide-header {
    transform: translateY(-100%);
  }
    
  .logo { font-size: 1.2rem; }

  nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
  }

  nav a { margin: 0.5rem 1rem; }

  .hero {
    margin-top: 220px;
    padding: 2rem 5%;
    background-size: contain;
    flex-direction: column;
  }
.animate-fade {
  position: relative;
  top: -10px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1.2s ease forwards;
  height: 1000px;
  width: 600px;

}
  .hero-text h1 { font-size: 1.8rem; }
  .hero-text p { font-size: 0.95rem; }

  .social-icons a { font-size: 1.2rem; }

  footer {
    padding: 3rem 5%;
    text-align: center;
  }

  .developers {
    position: relative;
    top: 0;
    left: 0;
    align-items: center;
  }
}

/* TVs grandes */
@media (min-width: 1920px) {
  .hero {

    padding: 6rem 10%;
    height: 100vh;
  }

  .hero-text h1 { font-size: 3rem; }
  .hero-text p { font-size: 1.25rem; }
  nav a { font-size: 1.5rem; }
  footer { padding: 6rem 10%; }
}

/* fondo servicios */
.services {
   background: url('/Recursos/verde.png');
   background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
 

}

/*productos fondo*/
.products {
   background: url('/productos/fondop.avif');
   background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
 
}

  /*ubicación*/
  .ubicacion-section {
  padding: 4rem 5%;
  background: url('/productos/fondop.avif');
   background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}

.ubicacion-section h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.ubi-subtitle {
  color: #555;
  font-size: 1.2rem;
  margin-bottom: 3rem;
}

.ubi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.info-card {
  background:url('/productos/fondocard.avif');
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0px 4px 20px rgba(0,0,0,0.08);
  text-align: left;
  animation: fade-in 1s ease forwards;
}

.info-card h3 {
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.info-card p {
  margin: 0.5rem 0;
}

.btn-maps {
  margin-top: 1.5rem;
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background: #007bff;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.2s;
}

.btn-maps:hover {
  background: #005fcc;
}

/* Mapa */
.map-container {
  width: 100%;
  height: 350px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0px 4px 18px rgba(0,0,0,0.1);
  animation: fade-in 1s ease forwards;
}
/* Efecto hover para la tarjeta */
.info-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0px 8px 30px rgba(0,0,0,0.15);
}

/* Efecto hover para el mapa */
.map-container {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-container:hover {
  transform: scale(1.03);
  box-shadow: 0px 10px 35px rgba(0,0,0,0.20);
}

/* Animación suave */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 850px) {
  .ubi-grid {
    grid-template-columns: 1fr;
  }
}


.footer {
  background: #2c3a6b;
  color: #d7e1ff;
  padding: 4rem 5% 2rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3rem;
}

/* LOGO */
.footer-logo-img {
  border-radius: 50%;
  width: 150px;
  margin-bottom: 1rem;
}

.footer-slogan {
  margin-top: 0.5rem;
  color: #d7e1ff;
  font-size: 0.9rem;
}

/* COLUMNAS */
.footer-column h4 {
  font-size: 1.3rem;
  color: white;
  margin-bottom: 1rem;
}

.footer-column a {
  display: block;
  color: #c8d3f9;
  margin: 0.4rem 0;
  text-decoration: none;
  transition: 0.3s;
}

.footer-column a:hover {
  color: white;
  padding-left: 5px;
}

/* ICONOS */
.social-iconos {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-iconos a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  transition: 0.3s;
  text-decoration: none;
}

.social-iconos a:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* COPYRIGHT */
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
  }
.footer-left {
  align-items: center;
   justify-content: center;
}

  .social-iconos {
    justify-content: center;
    align-items: center;
  }
}

html, body {
    overflow-x: hidden;
}