/**
 * Estilos para la página de suscripción
 */

/* General Styles */
.subscription-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Montserrat, Arial, sans-serif;
    color: #333;
}

/* Header and Tabs */
.subscription-header {
    margin-bottom: 60px;
}

.subscription-header h2 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #000;
}

.tabs-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    overflow: hidden;
}

.tabs {
    display: flex;
    background-color: #D9D9D9;
    border-radius: 12px;
    transition: background-color 0.3s;
}

.tabs:has(.tab-btn:not(.active):hover) {
    background-color: #b9b9b9;
}

.tab-btn {
    min-width: 212px;
    padding: 15px 30px;
    
    font-family: Montserrat;
    font-weight: 600;
    font-size: 18px;
    line-height: 20px;
    letter-spacing: 0%;
    vertical-align: middle;
    
    color: #00000080;
    cursor: pointer;
    background-color: #D9D9D9;
    border-radius: 12px;
    box-shadow: none;
    transition: background-color 0.3s;
}

.tab-btn:hover {
    background-color: #b9b9b9;
    color: white;
}

.tab-btn.active {
    background-color: #1369CC;
    color: white;
}

/* Subscription Products */
.subscription-products {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.subscription-product {
    flex: 1;
    width: 424px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f9f9f9;
    position: relative;
}

.subscription-product:not(.selected) {
    color: #4A4A4A;
    opacity: 0.5;
    pointer-events: none;
}

.subscription-product:not(.selected) .price-amount {
    color: #1369CC;
}

.subscription-product.selected {
    background-color: #1369CC;    
    color: white;
}

.subscription-product.no-socio {
    max-width: 424px;
    background-color: #002E62;
}

.product-header {
    padding: 20px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
}

.product-price {
    font-size: 40px;
    text-transform: none;
}

.price-additional {
    font-family: Montserrat;
    font-weight: 500;
    font-size: 14px;
    line-height: 16px;
    letter-spacing: 0%;
    vertical-align: middle;
    text-transform: none;
}

.product-features {
    padding: 20px;
}

.features-list {
    padding: 20px 0;
    font-size: 14px;
    border-top: 1px solid #4A4A4A;
    border-bottom: 1px solid #4A4A4A;
}

.subscription-product.selected .features-list {
    border-color: white;
}

.features-list ul {
    margin: 0 20px;
}

.feature {
    line-height: 1.5;
    font-size: 14px;

    &:last-child {
        margin-bottom: 0;
    }
}

.checkmark {
    color: #4A4A4A;
}

.selected .checkmark {
    color: white;
    font-weight: bold;
    margin-right: 8px;
}

.feature-details {
    display: block;
    color: #4A4A4A;;
    font-size: 14px;
    margin-left: 22px;
    margin-top: 5px;
}

.subscription-product.selected .feature-details {
    color: white;
}

.additional-feature {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.additional-feature select {
    margin-top: 10px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.directory-feature {    
    display: flex;
    margin: 20px 0;
}

.directory-feature > input[type="checkbox"] {    
    width: 17px;
    height: 17px;
}

.directory-feature label {
    color: #4A4A4A;
}

.selected .directory-feature label {
    color: white;
}


.directory-feature input[type="checkbox"] {
    margin-right: 8px;
}

.select-plan-btn,
#continue-summary-btn {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    font-family: Montserrat;
    font-weight: 600;
    font-size: 18px;
    line-height: 20px;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
    color: #1369CC;
    background-color: transparent;
    border: 2px solid #1369CC;
    border-radius: 12px;
    transition: all 0.3s ease;
}

:is(.select-plan-btn, #continue-summary-btn):is(:hover, :focus) {
    color: white;
    background-color: #0A386D;
    border-color: #1369CC;
    outline: none;
}

:is(.select-plan-btn, #continue-summary-btn).selected {
    color: white;
    background-color: #0A386D;
}

/* Order Summary */
.order-summary {
    margin: 30px 0; 
    color: black;
}

.order-summary h3 {
    font-family: Montserrat;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    vertical-align: middle;
}

.summary-content {
    padding: 25px;
    background-color: #F2F3F9;
    border-radius: 12px;   
}

.summary-items {
    margin: 20px 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 16px;
}

.summary-item .item-name {
    font-family: Montserrat;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
    vertical-align: middle;    
}

.summary-item .item-price {
    font-family: Montserrat;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    vertical-align: middle;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    font-family: Montserrat;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    vertical-align: middle;
}

#continue-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 25px auto 0;
    padding: 15px 30px;
    background-color: #003366;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

#continue-btn:hover {
    background-color: #00254d;
}

/* Registration Section Styles */
.registration-section {
    margin-top: 60px;
    padding: 30px;
    background-color: #F2F3F9;
}

.registration-section h3 {
    font-family: Montserrat;
    font-weight: 500;
    font-size: 28px;
    line-height: 100%;
    letter-spacing: 0%;
    vertical-align: middle;
    text-transform: uppercase;
    color: #242424;
}

/* Registration Form Grid Layout */
.register-form-grid,
.account-form-grid {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(2, minmax(0, 424px));
    gap: 10px;
    margin-top: 30px;
}

.form-row.wide {
    grid-column: span 2;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #555;
}

.form-row input,
.form-row select {
    width: 100%;
    height: 53px;
    padding: 12px 15px;
  /*  border: 1px solid #9999 !important;*/
    border-radius: 5px !important;

    font-family: Montserrat;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
    vertical-align: middle;

    transition: border-color 0.3s ease;
}

.form-row input:focus,
.form-row select:focus {
    border-color: #1369CC;
    outline: none;
}

.form-row select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="black" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position-x: calc(100% - 10px);
    background-position-y: center;
}

/* Password input with toggle button */
.password-container {
    position: relative;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover,
.toggle-password:focus {
    background-color: transparent;
}

.eye-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg fill="gray" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
}

.toggle-password.show-password .eye-icon {
    background-image: url('data:image/svg+xml;utf8,<svg fill="gray" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"/></svg>');
}

/* Checkbox styling */
.checkbox-row {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.checkbox-row input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.checkbox-row label {
    margin-bottom: 0;
    font-family: Montserrat;
    font-weight: 700;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #1369CC;
}

/* Submit Button */
.form-submit {
    text-align: center;
    margin-top: 60px;
}

.form-submit input[type="submit"] {
    display: inline-block;
    width: fit-content;
    padding: 20px 40px;
    background-color: #1369CC;
    color: white;
    border: none;
    border-radius: 12px;
    font-family: Montserrat;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;    
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-submit input[type="submit"]:hover {
    background-color: #0d5cb0;
}

/* Additional Users Section */
.additional-users h3,
.additional-user h4 {
    font-family: Montserrat;
    font-weight: 500;
    font-size: 28px;
    line-height: 100%;
    letter-spacing: 0%;
    vertical-align: middle;
    text-transform: uppercase;
    color: #242424;
}

#additional_user_fields {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(2, minmax(0, 424px));
    gap: 10px;
}

.additional-user-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;    
    margin-block: 30px;
}

/* Register and Account sections */
/* .register-section, 
.account-section {
    margin-bottom: 40px;
} */

.account-section {
    margin-top: 40px;
}

/* Error and Success Messages */
.subscription-errors {
    padding: 15px;
    margin-bottom: 20px;
    background-color: #ffdddd;
    border-left: 4px solid #f44336;
    border-radius: 5px;
}

.subscription-success {
    padding: 15px;
    margin-bottom: 20px;
    background-color: #ddffdd;
    border-left: 4px solid #4CAF50;
    border-radius: 5px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .subscription-products {
        flex-direction: column;
    }

    .subscription-product {
        width: 100%;
    }
    
    .tabs-container {
        flex-direction: column;
    }
    
    .tabs {
        width: 100%;
        border-radius: 12px 12px 0 0;
    }
    
    .tab-btn {
        flex: 1;
        text-align: center;
        min-width: fit-content;
    }
    
    .prueba-gratis-btn {
        width: 100%;
        text-align: center;
        border-radius: 0 0 12px 12px;
    }
}

@media (max-width: 768px) {
    .register-form-grid,
    .account-form-grid,
    .additional-user-form,
    #additional_user_fields {
        grid-template-columns: 1fr;
    }

    .form-row.wide {
        grid-column: span 1;
    }
    
    .subscription-header h2 {
        font-size: 28px;
    }
    
    .tab-btn {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .prueba-gratis-btn {
        font-size: 16px;
    }
    
    .price-amount {
        font-size: 32px;
    }
}

.iva-include{
	font-size:11px;
	font-weight:normal;
}

#reg_socio:disabled {
    background-color: #f0f0f0;  /* Gris claro */
    color: #555;               /* Texto más oscuro que el gris por defecto */
    cursor: not-allowed;       /* Cambia el cursor a "no permitido" */
    opacity: 0.9;              /* Ligera transparencia (opcional) */
}

/* Estilo para campos requeridos inválidos 
input:required:invalid, 
select:required:invalid {
    border: 1px solid red !important;
}

/* Opcional: para quitar el borde rojo cuando el campo es válido 
input:required:valid, 
select:required:valid {
    border: 1px solid #ccc !important;
}
*/
.input-error {
    border: 1px solid #ff0000 !important;  /* Rojo sólido */    
	outline: 1px solid #ff0000 !important;   /* Outline rojo (opcional, refuerzo visual) */
}

.error-message {
    color: red;
    font-size: 0.8em;
    margin-top: 5px;
}

#reg_password_msj_error .error-message {
    color: red;
    font-size: 0.8em;
    margin-top: 5px;
}

.invalid-field {
    border: 1px solid red !important;
	/*outline: 1px solid #ff0000 !important;   /* Outline rojo (opcional, refuerzo visual) */
}


.border-normal{
	 border: 1px solid #9999 !important;
}
