* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #D9EAF5;
  color: #333;
}

section {
  scroll-margin-top: 100px;
}

/* ===== MENÚ RESPONSIVE ===== */
.menu {
  position: sticky;
  top: 0;
  background: #CC5500;
  padding: 12px;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.menu a {
  color: white;
  margin: 0 20px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  display: inline-block;
}

.menu a:hover {
  color: #25D366;
}

/* HEADER */
header {
  text-align: center;
  padding: 40px 10px 30px;
  background: #000;
  color: white;
}

.logo {
  width: 80%;
  max-width: 1000px;
  height: auto;
  margin-bottom: 15px;
}

/* ===== SEO / HEADER ===== */
header h1 {
  font-size: 1.4rem;
  color: white;
  margin-top: 10px;
  margin-bottom: 10px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.3;
}

header p {
  max-width: 800px;
  margin: 10px auto 0;
  line-height: 1.6;
  font-size: 1rem;
}

/* TABLET (768px) */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.2rem;
  }
  
  header p {
    font-size: 0.9rem;
  }
}

/* CELULAR (600px) */
@media (max-width: 600px) {
  header {
    padding: 30px 10px 20px;
  }
  
  header h1 {
    font-size: 0.95rem;
  }
  
  header p {
    font-size: 0.8rem;
  }
  
  .logo {
    width: 95%;
  }
}

/* BOTONES */
.btn-whatsapp {
  background: #25D366;
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: 0.3s;
  display: inline-block;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: scale(1.05);
}

.btn-whatsapp.grande {
  font-size: 1.1rem;
  padding: 14px 28px;
}

/* ===== SERVICIOS ===== */
.servicios {
  max-width: 1400px;
  margin: 60px auto;
  background: #E6F4FA;
  padding: 50px 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-align: center;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

/* Iconos en servicios */
.icono-servicio {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

/* Tarjetas de servicios */
.card {
  background: #f8fbfd;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: #1e3c72;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #2c3e2f;
}

/* ===== SOBRE NOSOTROS ===== */
.empresa {
  max-width: 1000px;
  margin: 60px auto;
  background: #f0f7f0;
  border-radius: 30px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.empresa h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #000000ad;
  position: relative;
}

.empresa h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #2a7f2a;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.empresa-texto p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  text-align: justify;
  color: #1f2e1b;
  font-weight: 400;
}

.empresa-texto strong {
  color: #1e6b3b;
  font-weight: 600;
}

/* ===== GALERÍA RESPONSIVE ===== */
.galeria {
  padding: 60px 20px;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* POSTS */
.post {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: 0.3s;
  cursor: default;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post:hover {
  transform: translateY(-5px);
}

.post img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post h3 {
  margin: 10px;
  font-size: 1.1rem;
}

.post p {
  margin: 0 10px 5px;
  font-size: 0.9rem;
  color: #555;
  flex-grow: 1;
}

.ubicacion {
  display: block;
  margin: 0 10px 15px;
  font-size: 0.85rem;
  color: #25D366;
  font-weight: bold;
}

/* BOTÓN VER MÁS */
.btn-ver-mas {
  background: #25D366;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 0 15px 15px 15px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  display: block;
  text-align: center;
  width: calc(100% - 30px);
  align-self: center;
  margin-top: auto;
}

.btn-ver-mas:hover {
  background: #1ebe5d;
  transform: scale(1.02);
}

/* ===== MODALES ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-contenido {
  background: #111;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  padding: 30px 20px 20px;
  border-radius: 15px;
  color: white;
  text-align: center;
  position: relative;
  overflow-y: auto;
}

.modal-contenido h2 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.modal-contenido p {
  margin-bottom: 10px;
  color: #ccc;
  font-size: 1rem;
}

.cerrar-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 35px;
  cursor: pointer;
  color: white;
  transition: 0.2s;
}

.cerrar-modal:hover {
  color: #25D366;
}

.contador-imagenes {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.9rem;
  margin: 10px 0 5px;
  color: #25D366;
  font-weight: bold;
}

.contador-imagenes span {
  font-weight: bold;
  color: white;
}

.slider-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.slider-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  font-size: 30px;
  color: white;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 50%;
  transition: 0.2s;
}

.slider-btn:hover {
  background: #25D366;
  transform: scale(1.05);
}

.slider-img {
  flex: 1;
  text-align: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-imagen {
  max-width: 100%;
  max-height: 55vh;
  border-radius: 10px;
  object-fit: contain;
}

.modal-video {
  width: 100%;
  max-height: 55vh;
  border-radius: 10px;
  background: #000;
  outline: none;
}

/* ===== CONTACTO ===== */
.contacto {
  background: #111;
  color: white;
  padding: 80px 20px 60px;  /* ← más padding arriba para bajar el título */
  text-align: center;
  margin-bottom: 0;
}

.contacto-subtitulo {
  font-size: 1rem;
  color: #bbb;
  margin-bottom: 50px;
}

.contacto-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;  /* ← separa los items: izquierda - centro - derecha */
  align-items: flex-start;
  gap: 20px;
}

.contacto-item {
  flex: 1;
  min-width: 180px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contacto-icono {
  font-size: 2rem;
  background: rgba(37, 211, 102, 0.15);
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #25D366;
  margin-bottom: 12px;
}

.contacto-item h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #aaa;
  font-weight: normal;
}

.contacto-item a,
.contacto-item p {
  font-size: 0.9rem;
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.contacto-item a:hover {
  color: #25D366;
}

.contacto-boton {
  margin-top: 50px;
  text-align: center;
  width: 100%;
}

.contacto-boton .btn-whatsapp.grande {
  background: #25D366;
  padding: 14px 28px;
  font-size: 1.1rem;
  display: inline-block;
  margin-bottom: 15px;
}

.contacto-ayuda {
  font-size: 0.8rem;
  color: #888;
}

/* Responsive: en celular se apilan */
@media (max-width: 768px) {
  .contacto-grid {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  
  .contacto-item {
    width: 100%;
    max-width: 280px;
  }
}

/* ===== DESTACADO SEO ===== */
.destacado-seo {
  background: white;
  text-align: center;
  padding: 1.2rem 1.5rem;
  margin: 30px auto 30px auto;
  max-width: 1100px;
  border-radius: 15px;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #333;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  font-weight: 500;
}

.destacado-seo strong {
  font-weight: 700;
  color: #1e6b3b;
}

/* ===== FOOTER ===== */
footer {
  background: #0a1a0f;
  color: #ccc;
  margin-top: 0;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px 30px;
  text-align: left;
}

.footer-columna h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-columna h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: #25D366;
}

.footer-columna p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #ccc;
}

.footer-columna ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-columna ul li {
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.footer-columna ul li a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}

.footer-columna ul li a:hover {
  color: #25D366;
  padding-left: 5px;
}

.footer-columna ul li:hover {
  color: #25D366;
  cursor: default;
}

.footer-redes {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.footer-redes a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
}

.footer-redes a:hover {
  color: #25D366;
  transform: translateY(-2px);
}

.footer-whatsapp {
  display: inline-block;
  background: #25D366;
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: bold;
  margin-top: 15px;
  transition: 0.3s;
  text-align: center;
}

.footer-whatsapp:hover {
  background: #1ebe5d;
  transform: scale(1.02);
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.75rem;
  color: #888;
}

/* ===== BOTÓN FLOTANTE WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: 0.3s;
  z-index: 5000;
  text-decoration: none;
  border-radius: 50%;
  background: transparent;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-icon {
  width: 55px;
  height: 55px;
  display: block;
  border-radius: 50%;
}

/* ===== ANIMACIONES ===== */
.servicios,
.galeria,
.contacto {
  opacity: 0;
  transform: translateY(40px);
  animation: aparecer 0.8s ease forwards;
}

.servicios { animation-delay: 0.2s; }
.galeria { animation-delay: 0.4s; }
.contacto { animation-delay: 0.6s; }

@keyframes aparecer {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE GENERAL ===== */
@media (max-width: 768px) {
  .menu a {
    margin: 0 15px;
    font-size: 0.95rem;
  }
  
  .servicios-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
  
  .modal-contenido h2 {
    font-size: 1.3rem;
  }
  
  .slider-btn {
    font-size: 28px;
    padding: 8px 12px;
  }
  
  .modal-imagen, .modal-video {
    max-height: 50vh;
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
  }
  
  .whatsapp-icon {
    width: 50px;
    height: 50px;
  }

  .card h3 {
    font-size: 1.2rem;
  }
  
  .empresa-texto p {
    font-size: 1rem;
  }

  .destacado-seo {
    font-size: 0.95rem;
    padding: 1rem;
    margin: 20px 15px 25px 15px;
    border-radius: 12px;
  }

  .contacto-grid {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  
  .contacto-info {
    text-align: center;
  }
  
  .contacto-item {
    justify-content: center;
    flex-direction: column;
    text-align: center;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .logo {
    width: 95%;
  }
  
  .menu {
    padding: 10px;
  }
  
  .menu a {
    margin: 5px 8px;
    font-size: 0.85rem;
    display: inline-block;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .servicios-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .post img {
    height: 180px;
  }
  
  .modal {
    padding: 10px;
  }
  
  .modal-contenido {
    padding: 25px 15px 15px;
    max-height: 95vh;
  }
  
  .modal-contenido h2 {
    font-size: 1.2rem;
  }
  
  .modal-contenido p {
    font-size: 0.85rem;
  }
  
  .slider-container {
    gap: 8px;
  }
  
  .slider-btn {
    font-size: 22px;
    padding: 6px 10px;
  }
  
  .slider-img {
    min-height: 220px;
  }
  
  .modal-imagen, .modal-video {
    max-height: 45vh;
  }
  
  .contador-imagenes {
    font-size: 0.75rem;
    padding: 4px 10px;
  }
  
  .whatsapp-float {
    width: 48px;
    height: 48px;
    bottom: 15px;
    right: 15px;
  }
  
  .whatsapp-icon {
    width: 48px;
    height: 48px;
  }
  
  .btn-whatsapp.grande {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
  
  .btn-ver-mas {
    padding: 8px 16px;
    font-size: 0.85rem;
    margin: 0 10px 12px 10px;
    width: calc(100% - 20px);
  }
  
  .servicios, .galeria, .contacto {
    padding: 40px 15px;
  }

  .destacado-seo {
    font-size: 0.85rem;
    padding: 0.8rem;
    line-height: 1.4;
  }

  .contacto {
    padding: 40px 20px;
  }
  
  .contacto-item {
    margin-bottom: 20px;
  }
  
  .contacto-icono {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 35px;
    padding: 40px 20px 30px;
  }
  
  .footer-columna h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-redes {
    justify-content: center;
  }
  
  .footer-columna ul li a:hover {
    padding-left: 0;
  }
  
  .footer-whatsapp {
    display: block;
    max-width: 250px;
    margin: 15px auto 0;
  }
}

@media (max-width: 400px) {
  .menu a {
    margin: 4px 6px;
    font-size: 0.75rem;
  }
  
  .slider-btn {
    font-size: 18px;
    padding: 4px 8px;
  }
  
  .modal-imagen, .modal-video {
    max-height: 40vh;
  }
  
  .slider-img {
    min-height: 180px;
  }
  
  .post h3 {
    font-size: 0.95rem;
  }
  
  .post p {
    font-size: 0.8rem;
  }
  
  .ubicacion {
    font-size: 0.75rem;
  }
  
  .whatsapp-float {
    width: 42px;
    height: 42px;
    bottom: 12px;
    right: 12px;
  }
  
  .whatsapp-icon {
    width: 42px;
    height: 42px;
  }
}