@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f7f9fc;
    color: #222;
    line-height: 1.6;
}

/* ===== HEADER ===== */
.header {
    background: linear-gradient(135deg, #007bff, #00c6ff);
    color: white;
    text-align: center;
    padding: 50px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 2.4rem;
    font-weight: 600;
}

.header p {
    margin-top: 10px;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 40px 20px;
}

/* ===== TARJETA ===== */
.card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

label {
    font-weight: 600;
    margin-top: 15px;
    display: block;
    color: #222;
}

input,
select {
    width: 100%;
    padding: 0.8rem;
    margin-top: 5px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus,
select:focus {
    border-color: #007bff;
    outline: none;
}

/* ===== BOTÓN ===== */
button {
    width: 100%;
    margin-top: 20px;
    padding: 0.9rem;
    background: linear-gradient(135deg, #007bff, #00c6ff);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
    background: linear-gradient(135deg, #0056b3, #0099ff);
    transform: scale(1.03);
}

/* ===== RESULTADO ===== */
#result {
    text-align: center;
    margin-top: 25px;
    font-size: 1.3rem;
    color: #005eff;
}

/* ===== ADS ===== */
.ads-area {
    text-align: center;
    margin: 20px 0;
}

.ads-placeholder {
    background: #ddd;
    padding: 20px;
    border-radius: 10px;
    font-size: 14px;
}

/* ===== FOOTER SEO ===== */
.footer-seo {
  background: linear-gradient(135deg, #0077ff, #00c6ff);
  color: white;
  padding: 40px 20px;
  text-align: center;
  margin-top: 60px;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

/* Texto informativo */
.footer-info {
  max-width: 900px;
  margin: 0 auto 25px;
}

.footer-info h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.footer-info p {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.95;
}
.footer-info a{
  color: white;
  text-decoration: none;
  font-weight: 600;
}
.footer-info a:hover{
  text-decoration: underline;
  opacity: 0.9;
}

/* Enlaces legales */
#list-links {
  list-style: none;
  margin: 25px 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

#list-links li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.2s ease;
}

#list-links li a:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

/* Copyright */
.footer-copy {
  margin-top: 30px;
  font-size: 0.9rem;
  opacity: 0.9;
}
.footer-copy a.footer-link {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.footer-copy a.footer-link:hover {
  text-decoration: underline;
  opacity: 0.9;
}

/* 📱 RESPONSIVE PARA MÓVILES */
@media (max-width: 768px) {

    /* ===== HEADER ===== */
    .header {
        padding: 35px 15px;
    }

    .header h1 {
        font-size: 1.9rem;
    }

    .header p {
        font-size: 0.95rem;
    }

    /* ===== CONTENEDOR PRINCIPAL ===== */
    .container {
        padding: 25px 15px;
    }

    /* ===== TARJETA ===== */
    .card {
        padding: 1.8rem;
        width: 100%;
        border-radius: 14px;
    }

    label {
        margin-top: 12px;
        font-size: 0.95rem;
    }

    input,
    select {
        padding: 0.7rem;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    /* ===== BOTÓN ===== */
    button {
        padding: 0.8rem;
        font-size: 1rem;
        border-radius: 8px;
        margin-top: 18px;
    }

    /* ===== RESULTADO ===== */
    #result {
        font-size: 1.15rem;
        margin-top: 20px;
    }

    /* ===== FOOTER ===== */
    .footer {
        padding: 18px;
        font-size: 0.85rem;
    }

    .footer a {
        font-size: 0.9rem;
    }
}
