* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #2c3e50;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

/* WhatsApp Flotante */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;        /* separación desde abajo */
    right: 25px;         /* ✅ ahora se alinea al borde derecho */
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.7);
}


@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('./img/fonfdo_index.jpg');
    background-size: cover;
    background-position: center;
    background-size: 80%; /* Aumenta el zoom de la imagen */
    background-position: center;
    background-position: center 80%; /* mueve un poco la imagen */
    margin-top: 100px; /* 🔹 baja todo el bloque hero */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-text {
    position: relative;
    text-align: center;
    color: rgb(255, 255, 255);
    z-index: 1;
    padding: 30px;
    max-width: 800px;
    padding-top: 50px; /* 🔹 Esto empuja el texto hacia abajo */
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text p {
    font-size: 1.3rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background: #4FC3F7;
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(79, 195, 247, 0.4);
}

.btn:hover {
    background: #03A9F4;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(79, 195, 247, 0.6);
}

/* Grid de servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.service-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* 🔑 Hace que todas las imágenes tengan el mismo alto */
}

.service-content {
    padding: 15px;
    text-align: center;
}

/* About Section */
.about {
    padding: 60px 40px;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: #0288D1;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #4FC3F7;
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: #546e7a;
    max-width: 600px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.7rem;
    margin-bottom: 20px;
    color: #01579B;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #546e7a;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Services Section */
.services {
    padding: 60px 40px;
    background: #f8fdff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    box-shadow: 0 5px 15px rgba(3, 169, 244, 0.15);
    border-top: 5px solid #03A9F4;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(3, 169, 244, 0.2);
}

.service-image {
    height: 200px;
    display: flex;          /* 👈 activa flexbox */
    align-items: center;    /* 👈 centra verticalmente */
    justify-content: center;/* 👈 centra horizontalmente */
    background: #fff;       /* 👈 opcional: fondo para que no quede vacío */
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;  /* recorta manteniendo proporción */
    transition: transform 0.5s;
    margin-top: 20px;    /* 👈 baja la imagen dentro de la tarjeta */
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 10px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2f83d7;
}

.service-card p {
    color: #546e7a;
    line-height: 1.6;
}

/* Packages Section */
.packages {
    padding: 60px 40px;
    background: white;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.package-card {
    background: #f8fdff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(3, 169, 244, 0.15);
    text-align: center;
    transition: transform 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-top: 5px solid #03A9F4;
}

.package-card.featured {
    transform: scale(1.03);
    border-top: 5px solid #FF9800;
}

.package-card.featured::before {
    content: 'MÁS POPULAR';
    position: absolute;
    top: 15px;
    right: -30px;
    background: #FF9800;
    color: white;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.package-header {
    background: #0288D1;
    color: white;
    padding: 20px;
}

.package-price {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 10px 0;
}

.package-name {
    font-size: 1.4rem;
}

.package-features {
    padding: 20px;
    list-style: none;
    flex-grow: 1;
}

.package-features li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features li i {
    color: #03A9F4;
    margin-right: 10px;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #0288D1 0%, #03A9F4 100%);
    padding: 60px 40px;
    color: white;
}

.contact .section-title h2 {
    color: white;
}

.contact .section-title h2::after {
    background: #FF9800;
}

.contact-content {
    display: flex;
    gap: 40px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.7rem;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.4rem;
    margin-right: 15px;
    color: #FF9800;
    margin-top: 3px;
}

.contact-item div h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.map {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-height: 300px;
}

.map iframe {
    width: 100%;
    height: 100%;
    border: none;
    min-height: 300px;
}

/* Responsive Design */
@media (max-width: 992px) {

    .about-content,
    .contact-content {
        flex-direction: column;
    }

    .package-card.featured {
        transform: scale(1);
    }

    .about-image,
    .map {
        width: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 300px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .about,
    .services,
    .packages,
    .contact {
        padding: 40px 20px;
    }

    .services-grid,
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-title h2 {
        font-size: 1.9rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}

@media (max-width: 576px) {
    body {
        padding: 10px;
    }

    .hero {
        height: 250px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 12px 30px;
        font-size: 0.95rem;
    }

    .about,
    .services,
    .packages,
    .contact {
        padding: 30px 15px;
    }

    .section-title h2 {
        font-size: 1.7rem;
    }

    .package-card.featured::before {
        font-size: 0.7rem;
        padding: 4px 25px;
        right: -28px;
    }

    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 22px;
    }
}