/* ===== CSS RESPONSIVO BASADO EN STYLE.CSS ORIGINAL ===== */

/* Mantener todos los estilos originales y agregar responsividad */
* { 
    margin: 10px;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: grid;
    grid-template-rows: max-content;
    position: relative;
    overflow-x: hidden; /* Prevenir scrollbar horizontal */
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-color: #FFFFFF;
    opacity: 1;
}

.formulario{
    margin-top: 100px;
    max-width: 100%;
    padding: 0 15px;
}

.LogoH {
    height: auto;
    width: 100px;
    margin: 8px;
}

.LogoTorneo {
    height: auto;
    width: 500px;
    margin: 8px;
}

.menubar {
    display: flex;
    gap: 1em;
    padding: 5px 12px;
    font-family: "Open Sans",sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 100%;
    align-items: center;
    color: #274C69;
}

.menubar2 {
    display: flex;
    gap: 1em;
    padding: 5px 12px;
    font-family: "Gotham Book";
    font-style: normal;
    font-weight: 300;
    font-size: 100%;
    align-items: center;
    color: #274C69;
}

.navbar{
    width: 100%;
    height: auto;
    display: flex;
    align-items: center; 
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.37);
}

.navbar2{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    position: relative;
}

.navbar3{
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.37);
    transition: all 0.3s ease;
}

/* Menú hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #274C69;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Overlay para móviles */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.menu-overlay.active {
    display: block;
}

/* Botones de donación responsivos */
.donation-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.caja {
    background: #FFFFFF;
    border: 3px solid #274C69;
    box-sizing: border-box;
    border-radius: 10px;
    font-family: Helvetica;
    font-style: normal;
    font-weight: 300;
    font-size: 32px;
    line-height: 37px;
    padding: 10px 30px;
    margin: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
    max-width: 200px;
    text-align: center;
}

.caja:hover {
    background: #274C69;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.donate-body{
    align-items: center;
    justify-content: space-between;
}

.inputimporte {
    width: auto; /* Cambiar de 30% fijo a 100% */
    height: 67px;
    background: #FFFFFF;
    border: 1px solid #6C6B6B;
    box-sizing: border-box;
    border-radius: 5px;
    font-family: Helvetica;
    font-style: normal;
    font-weight: normal;
    font-size: 24px;
    line-height: 28px;
    letter-spacing: 0.5px;
    margin-right: 10px;
    margin-bottom: 15px;
    text-align: center;
}

.control-group{
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    width: 100%;
}

.dropmoneda {
    width: auto; /* Cambiar de 167px fijo a 100% */
    height: 67px;
    background: #FFFFFF;
    border: 1px solid #6C6B6B;
    box-sizing: border-box;
    border-radius: 5px;
    font-family: Helvetica;
    font-style: normal;
    font-weight: normal;
    font-size: 24px;
    line-height: 28px;
    letter-spacing: 0.5px;
    color: #101010;
    text-align: center;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101010' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 35px;
}

.dropmoneda:focus {
    border-color: #274C69;
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 76, 105, 0.1);
}

.dropmoneda option {
    color: #101010;
    padding: 8px;
}

.btndonar {
    padding: 10px 50px;
    background: #274C69;
    border: 3px solid #FFFFFF;
    box-sizing: border-box;
    border-radius: 5px;
    font-family: Helvetica;
    font-style: normal;
    font-weight: 300;
    font-size: 25px;
    line-height: 35px;
    color: #FFFFFF;
    height: 70px;
    letter-spacing: 0.5px;
    width: auto;
    cursor: pointer;
    transition: all 0.3s ease;
}

button.btndonar:hover{
    background: #43B4B4;
    color: #ffffff;
    cursor: pointer;
    transition: background 300ms ease-in-out;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btndonar:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.textoayudanos {
    width: 100%;
    font-family: "Open Sans",sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 30px;
    line-height: 1.3636363636em;
    color: #000;
    text-align: center;
}

.textoamex {
    width: 100%;
    font-family: "Open Sans",sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.3636363636em;
    color: #000;
    margin-top: 10vh;
}

.capmoneda {
    display: flex;
    flex-direction: column; /* Cambiar de row a column para móviles */
    align-items: center;
    justify-content: center;
    margin: 10px auto;
    width: 100%;
    height: auto;
    gap: 15px;
}

/* Estilos para confirmpayment */
.textoconfirma2 {
    width: 100%;
    font-family: "Open Sans",sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 30px;
    line-height: 1.3636363636em;
    color: #274C69;
    text-align: center;
}

.confirmation{
    display: flex;
    flex-direction: column; /* Cambiar a column para móviles */
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    width: 100%;
    gap: 15px;
}

.confimporte2 {
    width: 100%; /* Cambiar de 378px fijo a 100% */
    max-width: 300px;
    height: 67px;
    background: #FFFFFF;
    border: 1px solid #6C6B6B;
    box-sizing: border-box;
    border-radius: 5px;
    font-family: Helvetica;
    font-style: normal;
    font-weight: normal;
    font-size: 24px;
    line-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
    margin-right: 0;
    padding: 10px;
    color: #666666;
}

.monedaconf2 {
    width: 100%; /* Cambiar de 187px fijo a 100% */
    max-width: 150px;
    height: 67px;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #6C6B6B;
    box-sizing: border-box;
    border-radius: 5px;
    font-family: Helvetica;
    font-style: normal;
    font-weight: normal;
    font-size: 24px;
    line-height: 28px;
    display: flex;
    justify-content: center;
    letter-spacing: 0.5px;
    color: #101010;
    margin: 0px !important;
    padding: 10px;
}

.dsemail {
    width: 100%; /* Hacer responsivo */
    max-width: 400px;
    height: 67px;
    background: #FFFFFF;
    border: 1px solid #6C6B6B;
    box-sizing: border-box;
    border-radius: 5px;
    font-family: Helvetica;
    font-style: normal;
    font-weight: normal;
    font-size: 24px;
    line-height: 28px;
    letter-spacing: 0.5px;
    padding: 10px;
    margin: 15px auto;
    display: block;
}

.dsemail:focus {
    border-color: #274C69;
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 76, 105, 0.1);
}

.privacidad{
    margin: auto 0;
}

.checkprivacidad {
    font-family: Helvetica;
    font-style: normal;
    font-weight: normal;
    font-size: 24px;
    letter-spacing: 0.5px;
    background: #FFFFFF;
    border: 1px solid #6C6B6B;
    box-sizing: border-box;
    border-radius: 4px;
    margin-right: 8px;
    margin-left:auto;
    transform: scale(1.2);
}

.textprivacidad {
    font-family: Helvetica;
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 28px;
    color: #101010;
}

.textprivacidad2 {
    font-family: Helvetica;
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 28px;
    color: #666666;
}

.btnconfdonar {
    padding: 10px 30px;
    background: #274C69;
    border: 3px solid #FFFFFF;
    box-sizing: border-box;
    border-radius: 5px;
    font-family: Helvetica;
    font-style: normal;
    font-weight: 300;
    font-size: 30px;
    line-height: 35px;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
    display: inline-block;
}

button.btnconfdonar:hover{
    background: #43B4B4;
    color: #ffffff;
    cursor: pointer;
    transition: background 300ms ease-in-out;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btncancelar {
    padding: 10px;
    background: #FFFFFF;
    border: 3px solid #274C69;
    box-sizing: border-box;
    border-radius: 5px;
    font-family: Helvetica;
    font-style: normal;
    font-weight: 300;
    font-size: 30px;
    line-height: 35px;
    color: #274C69;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
    display: inline-block;
}

.btncancelar:hover {
    background: #274C69;
    color: #FFFFFF;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btnconfdonar.disabled,
.btnconfdonar[disabled],
fieldset[disabled] .btnconfdonar {
  cursor: not-allowed;
  filter: alpha(opacity=65);
  -webkit-box-shadow: none;
          box-shadow: none;
  opacity: .65;
}

.donate-content{
    width: 100%;
    height: 100%;
}

/* reCaptcha responsivo */
.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    transform: scale(0.9);
    transform-origin: center;
}

/* ===== MEDIA QUERIES RESPONSIVAS ===== */

/* Tablets */
@media (max-width: 768px) {
    /* Mostrar botón hamburguesa */
    .hamburger {
        display: flex;
    }
    
    /* Ocultar menú en móviles */
    .navbar3 {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 80px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        z-index: 1000;
        transition: right 0.3s ease;
    }
    
    .navbar3.active {
        right: 0;
    }
    
    .navbar3 .menubar2 {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        font-size: 16px;
        color: #274C69;
        text-decoration: none;
        transition: background-color 0.3s ease;
    }
    
    .navbar3 .menubar2:hover {
        background-color: #f8f9fa;
        color: #43B4B4;
    }
    
    .navbar3 .menubar2:last-child {
        border-bottom: none;
    }
    .formulario {
        margin-top: 50px;
        padding: 0 10px;
    }
    
    .navbar3 {
        height: auto;
        flex-direction: column;
        align-items: center;
    }
    
    .menubar2 {
        width: 100%;
        justify-content: center;
        margin: 5px 0;
    }
    
    .donation-buttons {
        gap: 8px;
        margin: 15px 0;
    }
    
    .caja {
        font-size: 24px;
        line-height: 28px;
        padding: 8px 20px;
        margin: 5px;
        min-width: 100px;
        max-width: 150px;
    }
    
    .capmoneda {
        flex-direction: column;
        gap: 10px;
    }
    
    .inputimporte {
        font-size: 20px;
        height: 55px;
    }
    
    .dropmoneda {
        font-size: 20px;
        height: 55px;
    }
    
    .btndonar {
        font-size: 20px;
        height: 60px;
        padding: 8px 40px;
    }
    
    .textoayudanos {
        font-size: 24px;
    }
    
    .textoconfirma2 {
        font-size: 24px;
    }
    
    .confimporte2 {
        font-size: 20px;
        height: 55px;
        max-width: 250px;
    }
    
    .monedaconf2 {
        font-size: 20px;
        height: 55px;
        max-width: 120px;
    }
    
    .dsemail {
        font-size: 20px;
        height: 55px;
    }
    
    .btnconfdonar,
    .btncancelar {
        font-size: 24px;
        padding: 8px 20px;
    }
    
    .g-recaptcha {
        transform: scale(0.8);
    }
}

/* Móviles */
@media (max-width: 480px) {
    /* Ajustar menú hamburguesa para móviles pequeños */
    .hamburger {
        padding: 8px;
    }
    
    .hamburger span {
        width: 22px;
        height: 2px;
    }
    
    /* Menú más estrecho en móviles pequeños */
    .navbar3 {
        width: 90%;
        max-width: 280px;
    }
    
    .navbar3 .menubar2 {
        padding: 12px 15px;
        font-size: 14px;
    }
    .formulario {
        margin-top: 30px;
        padding: 0 8px;
    }
    
    .LogoTorneo {
        width: 100%;
        max-width: 300px;
    }
    
    .donation-buttons {
        gap: 6px;
        margin: 10px 0;
    }
    
    .caja {
        font-size: 18px;
        line-height: 22px;
        padding: 6px 15px;
        margin: 3px;
        min-width: 80px;
        max-width: 120px;
    }
    
    .inputimporte {
        font-size: 18px;
        height: 50px;
    }
    
    .dropmoneda {
        font-size: 18px;
        height: 50px;
    }
    
    .btndonar {
        font-size: 18px;
        height: 55px;
        padding: 6px 30px;
    }
    
    .textoayudanos {
        font-size: 20px;
    }
    
    .textoconfirma2 {
        font-size: 20px;
    }
    
    .confimporte2 {
        font-size: 18px;
        height: 50px;
        max-width: 200px;
    }
    
    .monedaconf2 {
        font-size: 18px;
        height: 50px;
        max-width: 100px;
    }
    
    .dsemail {
        font-size: 18px;
        height: 50px;
    }
    
    .btnconfdonar,
    .btncancelar {
        font-size: 20px;
        padding: 6px 15px;
        margin: 5px;
    }
    
    .g-recaptcha {
        transform: scale(0.7);
    }
    
    .textprivacidad2 {
        font-size: 14px;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 320px) {
    .formulario {
        padding: 0 5px;
    }
    
    .donation-buttons {
        gap: 4px;
    }
    
    .caja {
        font-size: 16px;
        line-height: 20px;
        padding: 5px 10px;
        margin: 2px;
        min-width: 70px;
        max-width: 100px;
    }
    
    .inputimporte {
        font-size: 16px;
        height: 45px;
    }
    
    .dropmoneda {
        font-size: 16px;
        height: 45px;
    }
    
    .btndonar {
        font-size: 16px;
        height: 50px;
        padding: 5px 20px;
    }
    
    .textoayudanos {
        font-size: 18px;
    }
    
    .textoconfirma2 {
        font-size: 18px;
    }
    
    .confimporte2 {
        font-size: 16px;
        height: 45px;
        max-width: 180px;
    }
    
    .monedaconf2 {
        font-size: 16px;
        height: 45px;
        max-width: 80px;
    }
    
    .dsemail {
        font-size: 16px;
        height: 45px;
    }
    
    .btnconfdonar,
    .btncancelar {
        font-size: 18px;
        padding: 5px 12px;
        margin: 3px;
    }
    
    .g-recaptcha {
        transform: scale(0.6);
    }
}

/* ===== CORRECCIONES ESPECÍFICAS PARA EDGE ===== */
@supports (-ms-ime-align: auto) {
    .dropmoneda {
        background-image: none;
        padding-right: 10px;
    }
    
    .dropmoneda::-ms-expand {
        display: block;
    }
}

/* ===== CORRECCIONES PARA CHROME ===== */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    body {
        overflow-x: hidden;
    }
    
    .formulario {
        max-width: calc(100vw - 30px);
    }
}

/* ===== ANIMACIONES SUAVES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.formulario {
    animation: fadeIn 0.5s ease-out;
}

/* ===== ACCESIBILIDAD ===== */
.caja:focus,
.btndonar:focus,
.inputimporte:focus,
.dropmoneda:focus,
.btnconfdonar:focus,
.btncancelar:focus {
    outline: 2px solid #274C69;
    outline-offset: 2px;
}

/* ===== IMPRESIÓN ===== */
@media print {
    .navbar2,
    .navbar3,
    .g-recaptcha,
    .btndonar,
    .btnconfdonar,
    .btncancelar {
        display: none;
    }
    
    .formulario {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

