/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background: #f7f7f7;
    color: #333;
    line-height: 1.7;
}

/* Contenedor general */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero */
header.hero {
    background: linear-gradient(135deg, #2a2a2a, #4a4a4a);
    color: white;
    padding: 70px 20px;
    text-align: center;
}

header.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

header.hero .intro-text {
    margin-top: 15px;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #e0e0e0;
}

/* Foto médica */
.foto-medica {
    text-align: center;
    margin-top: 20px;
}

.foto-medica img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e0b400;
}

.nombre-medica {
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Aumentar tamaño y hacer animación */
.btn-sobre-mi {
    padding: 36px 90px;       /* mucho más alto y ancho */
    font-size: 2.4rem;        /* texto grande y llamativo */
    letter-spacing: 2px;      /* separación de letras */
    border-radius: 16px;      /* bordes redondeados */
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase; /* todo en mayúsculas */
}


/* Efecto pulso suave continuo */
.animated-button {
    animation: pulse 2s infinite ease-in-out 0.5s;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}



/* Secciones */
section {
    margin: 60px 0;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #004080;
    text-align: center;
}

/* Texto y listas */
p {
    margin-bottom: 15px;
    font-size: 1rem;
}

ul, ol {
    margin: 15px 0 15px 30px;
}

blockquote {
    margin: 20px auto;
    padding: 15px 25px;
    background: #f0f0f0;
    border-left: 5px solid #e0b400;
    font-style: italic;
    max-width: 800px;
}

/* Pasos (Cómo funciona) */
.pasos {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.paso {
    background: #f0f0f0;
    padding: 12px;
    border-radius: 6px;
}

.paso.opcional {
    background: #fff3cd;
    border: 1px solid #e0b400;
}

/* Pagos */
.pagos {
    text-align: center;
    margin: 60px 0;
}

.pago-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.pago-item {
    text-align: center;
}

.pago-item img {
    width: 120px;
    height: 120px;
    border-radius: 50%; /* círculo */
    background: #fff;   /* fondo blanco */
    padding: 15px;
    border: 2px solid #ddd;
    object-fit: contain;
    transition: transform 0.3s ease;
    margin-bottom: 10px;
}

.pago-item img:hover {
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: #2a2a2a;
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.footer-flex {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.footer .aviso-legal {
    font-size: 0.9rem;
    color: #e0b400;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
}

.footer .aviso-legal:hover {
    color: #ffdd44;
    text-decoration: underline;
}

/* Logo creador */
.logo-creador img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    padding: 5px;
    transition: transform 0.3s ease;
}

.logo-creador img:hover {
    transform: scale(1.1);
}

/* ============================= */
/* RESPONSIVIDAD                 */
/* ============================= */

/* Tablets */
@media (min-width: 768px) {
    header.hero h1 {
        font-size: 2.8rem;
    }

    .btn {
        font-size: 1rem;
    }

    .pasos {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }

    .paso {
        flex: 1 1 45%;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    header.hero {
        text-align: center;
        padding: 100px 40px;
    }

    header.hero h1 {
        font-size: 3rem;
    }

    section {
        margin: 80px 0;
    }

    form {
        max-width: 600px;
    }

    .paso {
        flex: 1 1 30%;
    }

    /* Consentimiento */
    .consentimiento-box {
        background: #fff;
        padding: 30px;
        border-radius: 10px;
        box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
        margin-top: 40px;
    }

    .consentimiento-form {
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* Formulario mejorado */
    .form-box {
        background: #fff;
        padding: 40px;
        border-radius: 12px;
        box-shadow: 0px 4px 14px rgba(0,0,0,0.1);
        margin-top: 40px;
    }

    .styled-form {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .styled-form input,
    .styled-form textarea {
        padding: 12px;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 1rem;
        background: #fafafa;
        transition: border 0.3s ease, box-shadow 0.3s ease;
    }

    .styled-form input:focus,
    .styled-form textarea:focus {
        border: 1px solid #004080;
        box-shadow: 0px 0px 6px rgba(0,64,128,0.3);
        outline: none;
    }

    /* Alertas */
    .alert {
        padding: 12px 15px;
        border-radius: 6px;
        margin-bottom: 20px;
        font-weight: bold;
    }

    .alert.success {
        background: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }

    .alert.error {
        background: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }

    /* Footer fijo con logo */
    .footer {
        background: #2a2a2a;
        color: white;
        padding: 20px;
        position: relative;
    }

    .footer-flex {
        display: flex;
        justify-content: center; /* centramos el texto */
        align-items: center;
        position: relative;
    }

    .footer p {
        margin: 0;
        font-size: 0.95rem;
        text-align: center;
    }

    .aviso-legal-link {
        color: #e0b400;
        text-decoration: none;
        font-weight: bold;
        margin-left: 5px;
    }

    .aviso-legal-link:hover {
        text-decoration: underline;
        color: #ffdd44;
    }

    /* Logo del creador alineado a la derecha */
    .logo-creador {
        position: absolute;
        right: 20px;   /* margen derecho */
        bottom: 50%;   /* lo bajamos a la mitad del footer */
        transform: translateY(50%); /* centrado vertical */
    }

    .logo-creador img {
        width: 55px;
        height: 55px;
        border-radius: 50%;
        background: #fff;
        padding: 5px;
        transition: transform 0.3s ease;
    }

    .logo-creador img:hover {
        transform: scale(1.1);
    }

}
