:root {
    --primary: #023047;
    --accent: #ffb703;
    --accent-hover: #fb8500;
    --bg: #f8f9fa;
    --white: #ffffff;
    --text: #333;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.nav {
    background: var(--primary);
    display: flex;
    justify-content: center;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    gap: 15px;
    flex-wrap: wrap;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    font-weight: 500;
    transition: 0.3s;
}

.nav a:hover, .nav a.active {
    color: var(--accent);
}

.header, .hero, .hero-category {
    background: linear-gradient(rgba(2, 48, 71, 0.7), rgba(2, 48, 71, 0.7)), 
                url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 40px 20px;
    width: 100%;
}

.header h1, .hero h2, .hero-category h1 {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.hero-intro {
    width: 100%;
    text-align: center;
    padding: 80px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title-large {
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
    display: flex;
    justify-content: center;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    justify-content: center;
    justify-items: center;
}

.index-card, .servicio-card {
    background: var(--white);
    padding: 45px 25px;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #eee;
    width: 100%;
    max-width: 350px;
}

.index-card:hover, .servicio-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-color: var(--accent);
}

.icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.index-card span {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.price {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin: 15px 0 25px;
}

.btn-principal, .btn-call, .btn-carrito {
    display: inline-block;
    width: 100%;
    max-width: 220px;
    background: var(--accent);
    color: var(--primary);
    padding: 14px 25px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    margin-top: auto;
}

.btn-principal:hover, .btn-call:hover, .btn-carrito:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 50px;
}


.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.3);
}


@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    .whatsapp-float img {
        width: 30px;
        height: 30px;
    }
}


h1 {
    color: white; 
}

h1 span {
    color: #ffb703 !important; 
}



@media (max-width: 768px) {
    
    h1 {
        font-size: 2.5rem; 
        padding: 0 10px;    
    }

    .servicios-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
    }

    .index-card {
        max-width: 90%; 
    }
}


/* --- SECCIÓN SOBRE NOSOTROS --- */
.about-section {
  padding: 60px 20px;
  background-color: #ffffff;
}

.about-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h2 {
  font-size: 2.5rem;
  color: #023047; /* Tu azul oscuro */
  margin-bottom: 20px;
}

.about-text h2 span {
  color: #ffb703; /* Tu amarillo */
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 15px;
}

.about-stats {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  min-width: 300px;
}

.stat-item {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  border-bottom: 4px solid #ffb703; /* Detalle en amarillo */
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #023047;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
}

/* Ajuste móvil */
@media (max-width: 768px) {
  .about-text { text-align: center; }
  .about-stats { grid-template-columns: 1fr; }
}

/* --- SECCIÓN TESTIMONIOS --- */
.testimonials {
  padding: 80px 20px;
  background-color: #f1f4f6; /* Un gris muy suave para diferenciarlo */
  text-align: center;
}

.testimonials h2 span {
  color: #ffb703; /* Tu amarillo */
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto 0;
}

.testimonial-card {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-10px); /* Efecto hover que ya usas */
}

.stars {
  color: #ffb703;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.testimonial-card p {
  font-style: italic;
  color: #444;
  line-height: 1.6;
  margin-bottom: 20px;
}

.client-name {
  font-weight: 600;
  color: #023047;
  display: block;
}

/* Esto soluciona el problema de que la página se vea "grande" o desbordada */
.testimonials {
    width: 100%;
    overflow-x: hidden; /* Evita que la página se mueva hacia los lados */
    padding: 40px 15px; /* Espacio para que el texto no toque los bordes del móvil */
}

.testimonials-grid {
    display: flex;
    flex-direction: column; /* Una opinión debajo de otra en móvil */
    align-items: center;    /* Centra las tarjetas */
    width: 100%;
    gap: 20px;
}

.testimonial-card {
    width: 100%;            /* Ocupa todo el ancho disponible */
    max-width: 90vw;        /* Pero nunca más del 90% de la pantalla del móvil */
    box-sizing: border-box; /* Asegura que el padding no "infle" la tarjeta */
    padding: 20px;
    margin: 0 auto;
}

/* Solo para PC: volver a ponerlas de lado */
@media (min-width: 769px) {
    .testimonials-grid {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    .testimonial-card {
        width: 300px;
    }
}