/* Espaciado global entre secciones */
section {
    margin: 70px 0;
}

/* Hero */
.hero {
    background: url('../img/huarmey.jpg') no-repeat center center/cover;
    height: 90vh; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    text-align: center; 
    color: var(--blanco);
    position: relative;
    margin: 0;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
}

.hero-content {
    position: relative;
    z-index: 2;
}

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

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hero-content .btn {
    padding: 12px 25px;
    background: var(--dorado);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.hero-content .btn:hover {
    background: #d4ac0d;
    transform: scale(1.1);
}

/* Intro */
.intro-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--azul);
    font-size: 2rem;
}

.intro-container p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contenedor de Servicios (Ofrecemos) */
.servicios {
    text-align: center;
    margin: 70px auto;
    max-width: 1100px;
    padding: 0 20px;
}

.servicios h2 {
    margin-bottom: 40px;
    color: var(--azul);
    font-size: 1.8rem;
    text-align: center;
}

/* Cards */
.cards {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; 
    justify-content: center;
}

.card {
    background: #fff; 
    border-radius: 12px; 
    overflow: hidden; /* 👈 importante para que la imagen se recorte bien */
    text-align: left;  /* 👈 igual que en lugares */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0; /* 👈 quitamos el padding general */
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.card img { 
    width: 100%; 
    height: 200px;
    object-fit: cover;
    display: block;
}

.card h3 {
    font-size: 1.3rem;
    margin: 15px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--azul);
}

.card p {
    font-size: 0.95rem;
    color: #444;
    margin: 0 15px 20px;
    line-height: 1.5;
    color: #444;
}

.btn {
    display: inline-block; /* asegura que funcione bien con <a> */
    transition: transform 0.3s ease;
}

.btn:hover {
    transform: scale(1.1); /* agranda un 10% */
}

/* Responsivo para móviles */
@media (max-width: 600px) {
    .cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Nosotros preview */
.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}
.nosotros-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.nosotros-text {
    text-align: left;
}
.nosotros-text h2 {
    margin-bottom: 15px;
    color: var(--azul);
}
.nosotros-text p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.nosotros-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
}

/* Contador mini */
.contador-mini {
    text-align: center;
    min-width: 80px;
}
.contador-mini .numero {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--dorado);
    line-height: 1;
    margin: 0;
}
.contador-mini p {
    margin: 0;
    font-size: 1rem;
    color: var(--azul);
}
@media (max-width:600px) {
    .card img {
        height: 160px;
    }
}