* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Poppins, sans-serif;
  color: #222;
}

html {
  scroll-behavior: smooth;
}

.container {
  width: min(92%, 1200px);
  margin: auto;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  z-index: 100;
  transition: 0.3s;
}

header.scroll {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.logo {
  height: 56px;
}

.nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a{

    position:relative;

    text-decoration:none;

    color:#222;

    font-weight:600;

    transition:.25s;

}

nav a:hover{

    color:var(--primary);

}

nav a.active{
    color:#c62828;   /* mismo rojo del logotipo */
    font-weight:700;
}

nav a.active::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-10px;
    width:100%;
    height:3px;
}

nav a.active::after{
    /* background:#c62828; */
    border-radius:20px;
    transition:.3s;
}

nav a:hover{

    color:#c62828;

}

@keyframes menuLine{

from{

opacity:0;

width:0;

}

to{

opacity:1;

width:100%;

}

}


@keyframes menuLine{
  from{
  width:0;
  }

  to{
  width:100%;
  }

}

/* nav a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
} */

#toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.5rem;
}

.cta,
.ghost {
  text-decoration: none;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
}

.cta {
  background: #c62828;
  color: #fff;
}

.ghost {
  border: 2px solid #fff;
  color: #fff;
}

.hero {
  padding-top: 78px;
  min-height: 100vh;
  background: linear-gradient(135deg, #181c24, #7b1113);
  display: flex;
  align-items: center;
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
  align-items:center;  
}

.badge {
  display: inline-block;
  background: #ffffff20;
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  margin: 1rem 0;
}

.hero h1 span {
  color: #ffffff;
}

.buttons {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
}

.features {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.panel {
  background: #fff;
  color: #222;
  border-radius: 20px;
  padding: 2rem;
  align-self: center;
}

.section {
  padding: 5rem 0;
}

.alt {
  background: #f5f5f5;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  padding: 2rem;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-6px);
}

.card i {
  font-size: 2rem;
  color: #c62828;
  margin-bottom: 1rem;
}

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.ph {
  min-height: 300px;
  background: #ddd;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

footer {
  background: #1d1d1d;
  color: #fff;
  padding: 2rem 0;
}

@media (max-width: 900px) {
  #toggle {
    display: block;
  }

  .cta {
    display: none;
  }

  .hero-grid,
  .cols {
    grid-template-columns: 1fr;
  }

  .panel {
    order: -1;
  }

  nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: #fff;
    display: none;
    flex-direction: column;
    padding: 1rem;
  }

  nav.open {
    display: flex;
  }

  .ghost {
    border-color: #fff;
  }
}

/* =========================================================
   ACTUALIZACIÓN styles.css
   Agregar al FINAL del archivo
   ========================================================= */

/* Estadísticas */
.stats {
  background: linear-gradient(135deg, #1f2937, #111827);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.stats-grid div {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 30px;
  text-align: center;
  transition: 0.35s;
}

.stats-grid div:hover {
  transform: translateY(-8px);
}

.stats-grid h3 {
  font-size: 3rem;
  color: #ffc107;
  margin-bottom: 10px;
}

/* Galería */
#galeria .placeholder {
  overflow: hidden;
  cursor: pointer;
  transition: 0.35s;
}

#galeria .placeholder:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Formulario */
form.service-card {
  max-width: 800px;
  margin: auto;
}

form input,
form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font: inherit;
  transition: 0.3s;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: #c62828;
  box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.12);
}

form button {
  margin-top: 10px;
}

/* Footer */
footer {
  background: #111827;
}

footer .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

footer h2,
footer h3 {
  margin-bottom: 12px;
}

footer hr {
  margin: 30px 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* ===== HERO V2 ===== */
.hero {
  min-height: 100vh;
  padding-top: 90px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(8, 16, 30, 0.65), rgba(8, 16, 30, 0.65)),
    url("../img/hero/hero1.png") center center/cover no-repeat;
}

/* .hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        90deg,
        rgba(6,12,25,.78) 0%,
        rgba(10,18,35,.63) 45%,
        rgba(10,18,35,.52) 100%
    );
} */

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 15, 30, 0.78) 0%,
    rgba(10, 15, 30, 0.58) 38%,
    rgba(10, 15, 30, 0.18) 68%,
    rgba(10, 15, 30, 0.05) 100%
  );
}

.hero .container,
.hero-grid {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: #fff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  max-width: 700px;
}

.hero p {
  color: #f2f2f2;
  max-width: 600px;
  margin-bottom:35px;  
}

.badge {
  background: #b71c1c;
  color: #fff;
  font-weight: 700;
}

.hero-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  .hero {
    background:
      linear-gradient(rgba(8, 16, 30, 0.78), rgba(8, 16, 30, 0.78)),
      url("../img/hero/hero1.png") 72% center/cover no-repeat;
  }

  .hero::before {
    display: none;
  }

  .hero-card {
    margin-top: 30px;
  }
}

/*==================================================
SERVICIOS
==================================================*/

.services-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));

  gap: 35px;
}

.service-card {
  background: #fff;

  border-radius: 22px;

  overflow: hidden;

  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);

  transition: 0.35s;
}

.service-card:hover {
  transform: translateY(-10px);

  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18);
}

.service-image {
  height: 240px;

  overflow: hidden;
}

.service-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  object-position: center;

  transition: 0.5s;

  display: block;
}

.service-card:hover img {
  transform: scale(1.08);
}

.service-content {
  padding: 28px;
}

.service-content h3 {
  margin-bottom: 15px;

  color: #222;

  font-size: 1.4rem;
}

.service-content p {
  color: #666;

  line-height: 1.7;

  margin-bottom: 25px;
}

.btn-service {
  display: inline-block;

  color: #c62828;

  font-weight: 700;

  transition: 0.3s;
}

.btn-service:hover {
  transform: translateX(8px);
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-image {
    height: 220px;
  }
}

/*==================================================
NOSOTROS
==================================================*/

.about-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 70px;

  align-items: center;
}

.about-image {
  border-radius: 24px;

  overflow: hidden;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.about-image img {
  width: 100%;

  display: block;
}

.about-content h2 {
  margin: 20px 0;

  font-size: 2.5rem;
}

.about-content p {
  margin-bottom: 18px;

  line-height: 1.8;

  color: #555;
}

.about-list {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 15px;

  margin: 35px 0;
}

.about-list div {
  background: #f5f5f5;

  padding: 15px;

  border-radius: 12px;

  font-weight: 600;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

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

  .about-list {
    grid-template-columns: 1fr;
  }
}

/*======================================
GALERÍA
======================================*/

.gallery-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));

  gap: 25px;
}

.gallery-item {
  display: block;

  overflow: hidden;

  border-radius: 18px;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);

  transition: 0.35s;
}

.gallery-item:hover {
  transform: translateY(-8px);

  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

.gallery-item img {
  width: 100%;

  height: 280px;

  object-fit: cover;

  display: block;

  transition: 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    height: 240px;
  }
}

/*======================================
TESTIMONIOS
======================================*/

.testimonials-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));

  gap: 35px;
}

.testimonial-card {
  background: #fff;

  padding: 35px;

  border-radius: 22px;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);

  transition: 0.35s;
}

.testimonial-card:hover {
  transform: translateY(-8px);
}

.stars {
  font-size: 28px;

  color: #ffc107;

  margin-bottom: 18px;

  letter-spacing: 3px;
}

.client {
  display: flex;

  align-items: center;

  gap: 18px;

  margin-top: 25px;
}

.client img {
  width: 65px;

  height: 65px;

  border-radius: 50%;

  object-fit: cover;

  border: 4px solid #c62828;
}

.client span {
  display: block;

  color: #777;

  font-size: 0.9rem;

  margin-top: 4px;
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/*=========================================
GOOGLE REVIEWS
=========================================*/

.google-rating{
  display:grid;
  grid-template-columns:340px 1fr;
  gap:50px;
  align-items:center;
}

.rating-score{
  background:#fff;
  padding:35px 35px 45px;
  border-radius:22px;
  text-align:center;
  box-shadow:0 15px 40px rgba(0,0,0,.08);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.rating-score img {
  width: 120px;

  margin-bottom: 20px;
}

.rating-score h3 {
  font-size: 4rem;

  color: #c62828;

  margin: 10px 0;
}

.reviews {
  display: grid;

  gap: 25px;
}

.review-card {
  background: #fff;

  padding: 28px;

  border-radius: 18px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  transition: 0.35s;
}

.review-card:hover {
  transform: translateY(-6px);
}

.review-card p {
  margin: 18px 0;

  line-height: 1.8;
}

.rating-score p{

margin:18px 0 30px;

color:#666;

font-size:.95rem;

}

.stars {
  font-size: 24px;

  color: #ffc107;

  letter-spacing: 4px;
}

@media (max-width: 900px) {
  .google-rating {
    grid-template-columns: 1fr;
  }
}

/*======================================
COBERTURA
======================================*/

.coverage-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 70px;

  align-items: center;
}

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

.coverage-image img {
  width: 100%;

  max-width: 520px;
}

.coverage-list {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 18px;

  margin: 35px 0;
}

.coverage-list div {
  background: #f5f5f5;

  padding: 16px;

  border-radius: 14px;

  font-weight: 600;

  transition: 0.3s;
}

.coverage-list div:hover {
  background: #c62828;

  color: white;

  transform: translateY(-4px);
}

@media (max-width: 900px) {
  .coverage-grid {
    grid-template-columns: 1fr;
  }

  .coverage-list {
    grid-template-columns: 1fr;
  }

  .coverage-image {
    order: -1;
  }
}

/*=====================================
FAQ
=====================================*/

.faq {
  max-width: 900px;

  margin: auto;
}

.faq details {
  background: #fff;

  border-radius: 16px;

  margin-bottom: 18px;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);

  overflow: hidden;
}

.faq summary {
  padding: 22px 28px;

  cursor: pointer;

  font-weight: 700;

  font-size: 1.05rem;

  list-style: none;

  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";

  position: absolute;

  right: 28px;

  font-size: 26px;

  color: #c62828;

  transition: 0.3s;
}

.faq details[open] summary::after {
  content: "−";
}

.faq p {
  padding: 0 28px 24px;

  line-height: 1.8;

  color: #555;
}

/*=====================================================
FOOTER
=====================================================*/

.footer {
  background: #111;

  color: #ddd;

  padding: 70px 0 0;
}

.footer-grid {
  display: grid;

  grid-template-columns: 2fr 1fr 1fr 1fr;

  gap: 50px;
}

.footer-logo {
  width: 220px;

  margin-bottom: 25px;
}

.footer h3 {
  color: #fff;

  margin-bottom: 22px;
}

.footer p {
  line-height: 1.8;

  color: #bbb;
}

.footer ul {
  list-style: none;

  padding: 0;

  margin: 0;
}

.footer li {
  margin-bottom: 14px;
}

.footer a {
  color: #ddd;

  transition: 0.3s;
}

.footer a:hover {
  color: #c62828;
}

.socials {
  display: flex;

  gap: 16px;

  margin: 25px 0;
}

.socials a {
  width: 48px;

  height: 48px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 50%;

  background: #222;

  font-size: 20px;

  transition: 0.3s;
}

.socials a:hover {
  background: #c62828;

  color: #fff;

  transform: translateY(-5px);
}

.footer-btn {
  margin-top: 10px;

  display: inline-block;
}

.footer-bottom {
  margin-top: 60px;

  padding: 22px;

  text-align: center;

  background: #0b0b0b;

  font-size: 0.9rem;

  color: #888;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;

    text-align: center;
  }

  .socials {
    justify-content: center;
  }

  .footer-logo {
    margin: auto auto 25px;
  }
}

.map-box {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.map-box iframe {
  width: 100%;
  height: 420px;
  border: 0;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.contact-list li {
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .map-box iframe {
    height: 350px;
  }
}

/*=========================================
CONTACTO
=========================================*/

.contact-wrapper {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 50px;
  margin-top: 50px;
  align-items:center;
}

.contact-info {
  background: #c62828;

  color: #fff;

  padding: 40px;

  border-radius: 22px;

  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.contact-info h3 {
  margin-bottom: 35px;

  font-size: 1.8rem;
}

.contact-item {
  display: flex;

  gap: 18px;

  margin-bottom: 30px;

  align-items: flex-start;
}

.contact-item i {
  font-size: 28px;

  margin-top: 5px;
}

.contact-item strong {
  display: block;

  margin-bottom: 5px;
}

.contact-form {
  background: #fff;

  padding: 40px;

  border-radius: 22px;

  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.contact-form input,
.contact-form textarea {
  width: 100%;

  padding: 18px 20px;

  margin-bottom: 22px;

  border: 1px solid #ddd;

  border-radius: 14px;

  font-size: 1rem;

  transition: 0.3s;

  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;

  border-color: #c62828;

  box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.15);
}

.btn-submit {
  display: inline-flex;

  align-items: center;

  gap: 12px;

  background: #c62828;

  color: #fff;

  padding: 16px 36px;

  border: none;

  border-radius: 50px;

  font-size: 1rem;

  font-weight: 700;

  cursor: pointer;

  transition: 0.35s;
}

.btn-submit:hover {
  background: #9d1f1f;

  transform: translateY(-3px);

  box-shadow: 0 12px 30px rgba(198, 40, 40, 0.35);
}

@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-info {
    order: 2;
  }
}

/*==========================================
HERO CARD
==========================================*/

.online-status {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  background: #eaf8ee;

  color: #1b8d43;

  padding: 8px 18px;

  border-radius: 30px;

  font-size: 0.85rem;

  font-weight: 700;

  margin-bottom: 22px;
}

.hero-contact-card h3 {
  font-size: 1.8rem;

  line-height: 1.2;

  margin-bottom: 15px;

  color: #222;
}

.dot {
  width: 10px;

  height: 10px;

  border-radius: 50%;

  background: #22c55e;

  animation: pulse 1.5s infinite;
}

.hero-contact-card h3 {
  font-size: 2rem;

  color: #222;

  margin-bottom: 15px;
}

.hero-contact-card p {
  color: #666;

  line-height: 1.7;

  margin-bottom: 25px;
}

.hero-phone {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 25px 0;
  padding: 18px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.hero-phone {
  align-items: center;
  gap: 14px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 30px;
}

.hero-phone i {
  color: #c62828;
}

.hero-whatsapp {
  display: flex;

  justify-content: center;

  align-items: center;

  gap: 12px;

  width: 100%;

  padding: 18px;

  border-radius: 50px;

  background: #25d366;

  color: #fff;

  font-size: 1rem;

  font-weight: 700;

  transition: 0.35s;
}

.hero-whatsapp:hover {
  background: #1ea952;

  transform: translateY(-4px);

  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.35);
}

.hero-contact-card p {
  font-size: 0.95rem;

  color: #666;

  line-height: 1.7;

  margin-bottom: 22px;
}

.hero-whatsapp {
  display: flex;

  justify-content: center;

  align-items: center;

  gap: 12px;

  width: 100%;

  padding: 16px;

  border-radius: 50px;

  background: #25d366;

  color: #fff;

  font-weight: 700;

  font-size: 1rem;

  margin-top: 25px;

  transition: 0.35s;
}

@keyframes pulse {
  0% {
    transform: scale(1);

    opacity: 1;
  }

  50% {
    transform: scale(1.4);

    opacity: 0.5;
  }

  100% {
    transform: scale(1);

    opacity: 1;
  }
}

@media (max-width: 992px) {
  .hero-contact-card{
      width:100%;
      max-width:320px;
      margin:45px auto 0;
  }

  .hero-buttons{
      justify-content:center;
  }  

  .hero-features{
      justify-content:center;
      flex-wrap:wrap;
      gap:18px;
  }  
}

/* .hero-contact-card{
    width:310px;
    background:rgba(255,255,255,.97);
    backdrop-filter:blur(14px);
    border-radius:24px;
    padding:28px;
    box-shadow:0 20px 45px rgba(0,0,0,.25);
    text-align:center;
} */

.hero-contact-card {
  width: 310px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(15px);
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.hero-title {
  font-size: 4.6rem;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -2px;
  color: #fff;
  margin: 25px 0;
  text-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
  max-width:650px;  
}

.hero-title span {
  color: #fff;

  display: block;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
}


/*=======================================
ANIMACIONES HERO
=======================================*/

.hero-content{

animation:heroLeft .9s ease;

}

.hero-contact-card{
  animation:heroRight 1s ease;
  margin-top:-35px;
}

@keyframes heroLeft{

from{

opacity:0;

transform:translateX(-50px);

}

to{

opacity:1;

transform:none;

}

}

@keyframes heroRight{

from{

opacity:0;

transform:translateX(60px);

}

to{

opacity:1;

transform:none;

}

}

nav a{
    position:relative;
    transition:.25s ease;
}

nav a:hover,
nav a.active{
    color:#c62828;
    font-weight:700;
    transform:translateY(-2px);
}



.google-logo-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    transition:transform .25s ease;
}

.google-logo-link:hover{
    transform:scale(1.05);
}

.google-logo{
    width:95px;
    height:95px;
    object-fit:contain;
}

.google-reviews-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-top:22px;
    padding:13px 24px;
    background:#c62828;
    color:#fff;
    text-decoration:none;
    font-weight:700;
    border-radius:30px;
    transition:
        background .25s ease,
        transform .25s ease;
}

.google-reviews-btn:hover{
    background:#a91f1f;
    transform:translateY(-2px);
}