/* styles.css */
/* ==================== PALETA DE COLORES ==================== */
:root {
    --alice-blue: #E8F1FA;
    --azure: #2F80ED;
    --indigo-dye: #0F4C81;
    --paynes-gray: #5C6F82;
    --seasalt: #FAFAFA;
}

/* ==================== RESET GENERAL ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

/* ==================== HEADER ==================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--azure);
    color: #fff;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 1.2rem;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

/* ==================== HERO / CARRUSEL ==================== */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url('imanes.jpg') center/cover no-repeat;
    color: #fff;
    text-align: center;
    /*padding: 6rem 2rem;*/
    margin: 0;
    padding: 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero .btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: #ff9800;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.hero .btn:hover {
    background: #e68900;
}

/* ==== Carrusel: imágenes del mismo tamaño ==== */
.carousel-item img {
    width: 100%;
    height: 600px;           /* Ajusta esta altura según el diseño deseado */
    object-fit: cover;       /* Evita deformaciones */
    object-position: center; /* Centra la imagen visualmente */
}

/* ==================== SECCIONES GENERALES ==================== */
.section {
    padding: 3rem 2rem;
    background: #fff;
    margin: 1.5rem auto;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.section h2 {
    margin-bottom: 1rem;
    color: var(--azure);
    text-align: center;
}

/* ==================== FORMULARIO ==================== */
.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.form input, .form button {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form button {
    background: var(--azure);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.form button:hover {
    background: #006666;
}

/* ==================== WHATSAPP ==================== */
.whatsapp {
    display: inline-block;
    background: #25d366;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.whatsapp:hover {
    background: #1ebd5c;
}

/* ==================== BENEFICIOS ==================== */
#beneficios .card {
    border: none;
    border-radius: 15px;
    background-color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
    transform: scale(1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    user-select: none;
    -webkit-tap-highlight-color: transparent; /* Quita el flash azul en móviles */
}

/* Efecto al pasar el cursor o tocar */
#beneficios .card:hover,
#beneficios .card:focus,
#beneficios .card:active {
    transform: scale(1.125);
    background-color: var(--alice-blue);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Animación suave para el texto interno */
#beneficios .card h4,
#beneficios .card p {
    transition: color 0.3s ease;
}

#beneficios .card:hover h4,
#beneficios .card:hover p {
    color: var(--indigo-dye);
}

/* ==================== FOOTER ==================== */
footer {
    text-align: center;
    padding: 1rem;
    background: #333;
    color: #fff;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .carousel-item img {
        height: 400px;
    }

    #beneficios .card:hover {
        transform: scale(1.04);
    }
}