/* ====== Fondo y Estilos Generales ====== */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, #6a0270, #0a22fd);
    overflow-x: hidden; /* Solo oculta el desbordamiento horizontal */
    position: relative; /* Asegurar que los elementos hijos se posicionen correctamente */
}

/* ====== Lluvia de Criptos ====== */
.crypto-rain {
    position: fixed; /* Fijo para que siempre esté en el fondo */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Fondo detrás del formulario */
    pointer-events: none; /* Evita interferencias con clics */
}

.crypto {
    position: absolute;
    width: 40px;
    height: 40px;
    object-fit: contain;
    animation: fall linear forwards;
    opacity: 0.8;
}

/* Animación de caída */
@keyframes fall {
    0% {
        transform: translateY(-50px);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* ====== Título Principal ====== */
#main-title {
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 10; /* Por encima de la lluvia */
    text-transform: uppercase;
    line-height: 1.3;
}

/* ====== Formulario ====== */
.form-container {
    position: relative; /* Necesario para aplicar z-index */
    z-index: 10; /* Por encima de la lluvia */
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    margin: 50px auto;
}

.form-title {
    text-shadow: none; /* Remove purple shadow */
    
    color: #ffcc00;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    animation: none;
}

@keyframes glow {
    0% {
        text-shadow: 0 0 5px #ffcc00;
    }
    100% {
        text-shadow: 0 0 15px #ffcc00;
    }
}

input,
select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.phone-group {
    display: flex;
    gap: 5px;
}

select {
    width: 30%;
}

/* Checkboxes alineados */
.checkbox-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alinear a la izquierda */
    gap: 15px; /* Espacio entre cada checkbox */
    margin: 15px 0;
}

.checkbox-group label {
    display: flex;
    align-items: center; /* Alinear verticalmente el checkbox con el texto */
    gap: 10px; /* Espacio entre checkbox y texto */
    font-size: 14px;
    color: #333;
    width: 100%;
    line-height: 1.4;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    width: 16px; /* Ajustar tamaño */
    height: 16px;
}

.captcha-img {
    height: 20px; /* Tamaño de la imagen */
}

/* Botón con animación */
.submit-btn {
    background-color: #ffcc00; /* Change to yellow */
    color: #333; /* Ensure readable text */
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.8); /* Adjust glow for yellow */
    
    background-color: #ffcc00;
    color: #333;
    border: none;
    padding: 10px;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
    border-radius: 5px;
    animation: pulse 1.5s infinite alternate;
    font-weight: bold;
    text-transform: uppercase; /* Texto en mayúsculas */
}

.submit-btn:hover {
    background-color: #e6b800;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 5px #ffcc00;
    }
    100% {
        transform: scale(1.05);
        box-shadow: 0 0 10px #ffcc00;
    }
}

/* ====== Bandera y Selector de País ====== */
.custom-select {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flag-icon {
    height: 20px;
    width: auto;
}

/* Responsive */
@media (max-width: 768px) {
    #main-title {
        font-size: 1.8rem;
    }

    .crypto {
        width: 30px;
        height: 30px;
    }

    .form-container {
        width: 95%;
    }
}

.crypto-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.crypto-card {
    display: grid;
    grid-template-columns: 50px 70px 1fr 100px 120px;
    align-items: center;
    background: #ffffff;
    border: 2px solid #f3ba2f;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    padding: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.crypto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4);
}

.crypto-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f3ba2f;
    text-align: center;
}

.crypto-details img {
    width: 50px; /* Tamaño exacto */
    height: 50px;
    object-fit: contain; /* Evita distorsión */
    margin-right: 10px;
    display: block; /* Garantiza el comportamiento correcto */
}

.crypto-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #000;
  text-align: center;
}

.crypto-price {
    font-size: 1.1rem;
    color: #f3ba2f;
    text-align: center;
}

.crypto-graph canvas {
    display: block;
    margin: auto;
}

/* Ajuste de texto de la pregunta */
.crypto-question {
    font-size: 0.9rem;
    color: #555;
    grid-column: span 5;
    text-align: center;
    margin-top: 5px;
}

/* Botón Final Animado */
.final-button {
    margin: 20px auto; /* Centra verticalmente y horizontalmente el margen */
    text-align: center; /* Asegura que el contenido dentro esté centrado */
    display: flex; /* Utiliza flexbox para alineación */
    justify-content: center; /* Centra el botón horizontalmente */
}

.btn-animated {
    display: inline-block;
    background-color: #f3ba2f;
    color: #000;
    font-weight: bold;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 0 10px #f3ba2f;
    animation: pulse 1.5s infinite;
}

.btn-animated:hover {
    background-color: #ffc107;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 10px #f3ba2f; }
    50% { transform: scale(1.1); box-shadow: 0 0 20px #ffc107; }
}

img {
    max-width: 100%; /* Evita que se agranden más del contenedor */
    height: auto;
}

@media (max-width: 600px) {
    .crypto-card {
        display: flex;
        flex-direction: column; /* Alineamos todo verticalmente */
        align-items: center;
        text-align: center;
        padding: 15px;
        gap: 10px; /* Espacio entre elementos */
    }

    .crypto-number {
        font-size: 1.2rem;
        font-weight: bold;
        color: #f3ba2f;
    }

.crypto-details img {
    width: 20px !important; /* Forzamos el tamaño */
    height: 20px !important;
    margin-bottom: 10px;
    object-fit: contain; /* Mantiene la proporción */
    max-width: 100%; /* Evita desbordamientos */
}


    .crypto-name {
        font-size: 1.3rem;
        font-weight: bold;
        margin: 5px 0;
    }

    .crypto-price {
        font-size: 1.1rem;
        color: #f3ba2f;
        margin: 5px 0;
    }

    .crypto-graph canvas {
        width: 100%; /* Gráfica ocupa todo el ancho */
        max-width: 200px;
        height: auto;
        margin: 10px 0;
    }

    .crypto-question {
        font-size: 0.9rem;
        color: #555;
        margin-top: 10px;
    }
}


/* ====== Sección Reseñas ====== */
.reviews-section {
    padding: 50px 20px;
    background: var(--section-background);
    color: #fff;
}

.reviews-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}
/* Logo de Google */
.google-logo {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.google-logo img {
    width: 150px;
    max-width: 100%; /* Asegura responsividad */
    height: auto; /* Mantiene la proporción */
}

/* Carrusel */
.reviews-carousel {
    position: relative;
    overflow: visible; /* Permitir sobresalir a las tarjetas */
    width: 100%;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    align-items: center;
    overflow: visible; /* Evitar recortes */
}

/* Tarjetas de reseñas */
.review {
    flex: 0 0 auto;
    max-width: 300px;
    min-height: 200px;
    text-align: left;
    background: #fff;
    color: #333;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    overflow: visible;
    border: none;
    margin: 0;
}

/* Tarjeta destacada */
.review.highlight {
    box-shadow: 0 0 30px 10px rgba(51, 235, 176, 0.7);
    animation: pulse 1.5s infinite;
    z-index: 10;
    transform: scale(1.1);
}

/* Animación de pulso */
@keyframes pulse {
    0% {
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(51, 235, 176, 0.5);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 35px rgba(51, 235, 176, 0.9);
    }
    100% {
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(51, 235, 176, 0.5);
    }
}

/* Diseño responsivo */
@media (min-width: 768px) {
    .review {
        flex: 0 0 30%; /* Mostrar más tarjetas en pantallas grandes */
    }
}

@media (max-width: 768px) {
    .reviews-carousel {
        width: 100%;
    }

    .carousel-track {
        justify-content: center; /* Centrar tarjetas en móvil */
    }

    .review {
        max-width: 90%;
        margin: 0 auto;
    }

    .review.highlight {
        width: 95%;
        box-shadow: 0 0 25px 8px rgba(51, 235, 176, 0.8);
        transform: scale(1.05);
    }
}



/* ====== Footer ====== */
.container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 30px;
    background: #ffffff; /* Fondo blanco para la guía */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 90%;
    margin: 40px auto;
}

/* Imagen de la guía */
.book-image img {
    width: 200px;
    max-width: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

/* Contenido del texto */
.content h1 {
    font-size: 2rem;
    color: #000; /* Color negro para el texto de la guía */
    margin-bottom: 20px;
    line-height: 1.3;
}

.content p {
    font-size: 1.1rem;
    color: #555; /* Color gris para el texto adicional */
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Botón */
.button-container {
    margin-top: 20px;
    position: relative;
    display: inline-block;
}

button {
    background: linear-gradient(to bottom, #8e2de2, #4a00e0);
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 10px rgba(142, 45, 226, 0.8);
    position: relative;
    z-index: 1;
}

button:hover {
    transform: scale(1.1);
}

button::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 8px;
    background: rgba(142, 45, 226, 0.6);
    animation: glow 1.5s infinite alternate;
    z-index: -1;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px 5px rgba(142, 45, 226, 0.8);
    }
    to {
        box-shadow: 0 0 20px 10px rgba(142, 45, 226, 0.5);
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #00334D, #0E2A47);
    padding: 40px 20px;
    text-align: center;
    color: #fff;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 80%;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left img {
    width: 150px;
    margin-bottom: 10px;
}

.footer-left p {
    font-size: 0.9em;
    line-height: 1.6;
    color: #fff; /* Letra blanca para el texto del footer */
}

.footer-center ul, .footer-right ul {
    list-style: none;
    padding: 0;
    color: #fff; /* Letra blanca para los enlaces del footer */
}

.footer-center li, .footer-right li {
    margin-bottom: 10px;
}

.footer-center li a, .footer-right li a {
    color: #fff; /* Letra blanca para los enlaces del footer */
    text-decoration: none;
    transition: color 0.3s;
}

.footer-center li a:hover, .footer-right li a:hover {
    color: #66C2FF; /* Azul claro en hover */
}

.footer-right .social-icons a img {
    width: 30px;
    margin: 0 10px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s, filter 0.3s;
}

.footer-right .social-icons a img:hover {
    transform: translateY(-5px) scale(1.2);
    filter: brightness(1);
}

.footer-bottom {
    border-top: 1px solid #1f4e63;
    margin-top: 20px;
    padding-top: 10px;
    font-size: 0.8em;
    color: #fff; /* Letra blanca para el texto del footer */
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 20px;
    }

    .book-image img {
        width: 150px;
    }

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

    .content p {
        font-size: 1rem;
    }

    button {
        font-size: 1rem;
        padding: 10px 15px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left img {
        width: 120px;
    }

    .footer-left p {
        font-size: 0.8em;
    }

    .footer-center ul, .footer-right ul {
        text-align: center;
    }

    .footer-center li, .footer-right li {
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .book-image img {
        width: 120px;
    }

    .content h1 {
        font-size: 1.3rem;
    }

    .content p {
        font-size: 0.9rem;
    }

    button {
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    .footer-left img {
        width: 100px;
    }

    .footer-left p {
        font-size: 0.7em;
    }

    .footer-bottom {
        font-size: 0.7em;
    }
}

/* Global Gradients */
body {
    background: linear-gradient(
        to bottom,
        #6a0270 0%,
        #0a22fd 25%,
        #33EBB0 50%,
        #06273C 75%,
        #4a00e0 100%
    );
    margin: 0;
    padding: 0;
}

/* Section Bridge for Smooth Transitions */
.gradient-bridge {
    height: 50px;
    background: linear-gradient(
        to bottom,
        var(--previous-color) 0%,
        var(--next-color) 100%
    );
}

/* Example Section Styling */
.reviews-section,
.footer,
.crypto-container {
    --section-background: none; /* Replace with the global background */
}

/* Additional Responsive Styles */
@media (max-width: 768px) {
    .form-container {
        width: 90%;
        margin: 20px auto;
        padding: 15px;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .submit-btn {
        font-size: 14px;
        padding: 10px;
    }
}

/* General Improvements for All Devices */
input, select, .submit-btn {
    max-width: 100%;
}

/* ===== Correcciones finales ===== */

/* Botón de registro: color rosa y texto blanco */
form .submit-btn {
    background: #ff0099 !important; /* Fondo rosa */
    color: #ffffff !important; /* Texto blanco */
    border: none;
    font-size: 16px;
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 0 10px #ff66cc; /* Efecto de brillo */
    margin-top: 20px !important; /* Separación del captcha */
}

form .submit-btn:hover {
    background-color: #e60073 !important; /* Rosa más oscuro al pasar el mouse */
}

/* Título del formulario: mantener estilo rosado con brillo */
.form-title {
    color: #ff0099; /* Color rosado */
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 8px #ff66cc; /* Efecto de brillo */
}

/* Ajustar tarjetas de criptomonedas para móviles */
@media (max-width: 600px) {
    .crypto-card {
        width: 90% !important; /* Ancho ajustado para móviles */
        margin: 10px auto !important; /* Centrar las tarjetas */
        text-align: center; /* Alinear contenido */
    }

    .crypto-details img {
        max-width: 60px !important; /* Reducir tamaño para móviles */
        height: auto !important; /* Mantener proporción */
        object-fit: contain !important; /* Ajustar proporción */
    }

    .crypto-details .crypto-title {
        font-size: 1rem;
        font-weight: bold;
        margin: 5px 0;
    }

    .crypto-details .crypto-price {
        font-size: 0.9rem;
        color: #f0b90b; /* Dorado */
        margin: 5px 0;
    }

    .crypto-details .crypto-desc {
        font-size: 0.8rem;
        color: #666; /* Gris */
        margin: 5px 0;
    }
}

/* Formulario en móviles: mantener tamaño reducido */
@media (max-width: 768px) {
    .form-container {
        width: 90% !important; /* Reducir ancho */
        padding: 10px !important; /* Ajustar padding */
        margin: 0 auto; /* Centrar formulario */
    }
}
/* Ajuste específico para las imágenes de criptos en pantallas pequeñas */
@media (max-width: 600px) {
    .crypto-card img {
        width: 50px !important; /* Reducir el tamaño */
        height: 50px !important;
        margin: 5px 0;
        object-fit: contain; /* Mantener proporción */
    }

    .crypto-card {
        padding: 20px; /* Reducir el padding */
        gap: 5px; /* Ajustar el espacio entre elementos */
    }

    .crypto-name, .crypto-price, .crypto-question {
        font-size: 15px; /* Reducir texto en móvil */
    }
}
