* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    color: #222;
    background: #f9f9f9;
}

.hero {
    height: 100vh;
    background: url("post-8.png") center/cover no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 80px;
    z-index: 2;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.logo {
    height: 50px;
}

.hero-content {
    z-index: 2;
    color: white;
    text-align: center;
    margin: auto;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

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

.cta-btn {
    background: #e60012;
    padding: 14px 30px;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
}

.section {
    padding: 80px 15%;
    text-align: center;
}

.section h2 {
    margin-bottom: 30px;
    font-size: 2rem;
}

.cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    width: 280px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.dark {
    background: #1a1a1a;
    color: white;
}

footer {
    background: #111;
    color: #aaa;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

@media(max-width: 768px){
    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section {
        padding: 60px 10%;
    }
}
/* Botones flotantes con iconos */
.social-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.social-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: float 2.5s ease-in-out infinite;
}

.social-btn svg {
    width: 26px;
    height: 26px;
    fill: white;
}

.social-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 10px 22px rgba(0,0,0,0.6);
}

/* Animación flotante */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

/* Colores */
.facebook {
    background: #1877f2;
}

.instagram {
    background: radial-gradient(circle at 30% 110%, 
        #fdf497 0%, 
        #fdf497 5%, 
        #fd5949 45%, 
        #d6249f 60%, 
        #285AEB 90%);
}

/* Móvil */
@media(max-width: 600px) {
    .social-float {
        right: 10px;
        bottom: 10px;
    }

    .social-btn {
        width: 50px;
        height: 50px;
    }
}
/* Ajustes especiales para iPhone y móviles */
@media screen and (max-width: 768px) {

    .social-float {
        bottom: 80px; /* evita barra inferior de Safari */
        right: 12px;
    }

    .social-btn {
        width: 48px;
        height: 48px;
    }

    .social-btn svg {
        width: 22px;
        height: 22px;
    }

    /* Mejora textos en móvil */
    .hero-content h1 {
        font-size: 1.7rem;
        padding: 0 10px;
    }

    .hero-content p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .navbar ul {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .navbar {
        padding: 15px 20px;
    }
}

/* Ajuste extra para iPhone chico (SE, mini, etc) */
@media screen and (max-width: 390px) {

    .social-float {
        bottom: 90px;
    }

    .social-btn {
        width: 44px;
        height: 44px;
    }

    .social-btn svg {
        width: 20px;
        height: 20px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }
}
