body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0182C4 0%, #00D6F9 50%, #1389FB 100%);
    min-height: 100vh;
    color: #fff;
}

header {
    color: #0182C4;
    text-align: center;
    box-shadow: 0 2px 8px rgba(1, 130, 196, 0.04);
}

.logo {
    width: 100%;
    margin-bottom: 0.5rem;
}

.logoFooter {
    width: 9.5rem;
    margin-bottom: 0.5rem;
}

.oculto {
    display: none !important;
}

header h1 {
    color: #0182C4;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0.5rem 0 0 0;
}

main {
    max-width: 90%;
    width: 90%;
    margin: 1rem auto;
    background: transparent;
    border-radius: 24px;
    padding: 0;
}

.pantalla {
    display: none;
}

.pantalla:not(.oculto) {
    display: block;
}

.descripcion {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.beneficios {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.beneficios li {
    background: #eaf0fa;
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: #003366;
    font-weight: 500;
}

.card-oferta,
.card-confirmacion,
.card-finalizacion {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(1, 130, 196, 0.10), 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 2.2rem 2rem 1.7rem 2rem;
    margin: 0 auto;
    max-width: 700px;
    animation: fadeIn 0.7s;
    color: #222;
}

.consent-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    margin-top: 15px;
}

.consent-label {
    font-size: 0.95rem;
    line-height: 1.4;
}

.consent-label a {
    color: #007BFF;
    /* Cambia este color si tu sitio usa otro esquema */
    text-decoration: underline;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-oferta h2 {
    font-size: 2.1rem;
    color: #0182C4;
    margin-bottom: 0.7rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.card-oferta .descripcion {
    color: #444;
    font-size: 1.15rem;
    margin-bottom: 1.3rem;
    line-height: 1.7;
    font-weight: 500;
}

.caracteristicas {
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    justify-content: space-between;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Dos columnas iguales */
    gap: 1rem;
    /* Espacio entre columnas y filas */
    max-width: 800px;
    margin: 0 auto;
}

.caracteristica {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #E9F8FF 60%, #A7E1FF 100%);
    border-radius: 10px;
    padding: 0.7rem 1.1rem;
    font-size: 1.08rem;
    color: #0182C4;
    min-width: 190px;
    box-shadow: 0 1px 6px rgba(1, 130, 196, 0.07);
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.icono {
    font-size: 1.6rem;
    margin-right: 0.8rem;
    width: 2.6rem;
}

.activarOferta {
    display: flex;
    justify-content: center;
}

.card-confirmacion h2,
.card-finalizacion h2 {
    color: #0182C4;
    font-size: 1.6rem;
    margin-bottom: 0.7rem;
    font-weight: 800;
}

.card-confirmacion p,
.card-finalizacion p {
    color: #444;
    font-size: 1.12rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

button {
    background: #0182C4;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.8rem 2.2rem;
    font-size: 1.08rem;
    font-weight: 700;
    cursor: pointer;
    margin: 0.5rem 0.5rem 0 0;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(1, 130, 196, 0.10);
    letter-spacing: 0.5px;
}

button:disabled {
    background-color: #cccccc;
    /* Gris claro */
    color: #666666;
    /* Texto más tenue */
    cursor: not-allowed;
    opacity: 0.6;
}

button:hover {
    background: #014C71;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px rgba(1, 130, 196, 0.18);
}

.btn-link {
    background: none;
    border: none;
    color: #0d6efd;
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
}

.btn-link:hover {
    text-decoration: none;
}

.precio {
    background: linear-gradient(90deg, #E9F8FF 60%, #A7E1FF 100%);
    color: #0182C4;
    padding: 0.8rem 1.3rem;
    border-radius: 10px;
    font-size: 1.25rem;
    margin: 1.3rem 0;
    display: inline-block;
    font-weight: bold;
    border: 1px solid #A7E1FF;
    box-shadow: 0 1px 4px rgba(1, 130, 196, 0.07);
}

.acciones {
    margin-top: 1.7rem;
}

footer {
    text-align: center;
    color: #e3eafe;
    font-size: 0.98rem;
    margin: 2.5rem 0 1.2rem 0;
}

footer a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

.customer-info {
    background: #f8f9ff;
    border: 1px solid #E9F8FF;
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    color: #0182C4;
}

.customer-info p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #E9F8FF;
    border-top: 4px solid #0182C4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.oculto {
    display: none !important;
}

/* Estilos para páginas de setup y dashboard */
.card-setup,
.card-dashboard {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(1, 130, 196, 0.10), 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 2.2rem 2rem 1.7rem 2rem;
    margin: 0 auto;
    max-width: 100%;
    animation: fadeIn 0.7s;
    color: #222;
}

.card-setup h2,
.card-dashboard h2 {
    font-size: 2.1rem;
    color: #0182C4;
    margin-bottom: 0.7rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #0182C4;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #E9F8FF;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #0182C4;
    box-shadow: 0 0 0 3px rgba(1, 130, 196, 0.1);
}

.form-group textarea {
    width: 100%;
    min-height: 120px;
    padding: 0.8rem 1rem;
    border: 2px solid #E9F8FF;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    resize: vertical;
}

.form-group textarea:focus {
    outline: none;
    border-color: #0182C4;
    box-shadow: 0 0 0 3px rgba(1, 130, 196, 0.1);
}

.form-actions {
    margin-top: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.message {
    padding: 1rem;
    border-radius: 12px;
    margin: 1rem 0;
    font-weight: 600;
}

.message.success {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.message.info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
    text-align: center;
}

.message.info p {
    margin: 0.5rem 0;
}

/* Estilos específicos del dashboard */
.dashboard-header {
    border-bottom: 2px solid #E9F8FF;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-content {
    display: grid;
    gap: 2rem;
}

.api-section,
.usage-section,
.documentation-section,
.auth-section {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #E9F8FF;
}

.api-section h3,
.usage-section h3,
.documentation-section h3,
.auth-section h3 {
    color: #0182C4;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.api-credentials {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.credential-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.credential-item label {
    font-weight: 600;
    color: #0182C4;
    font-size: 0.9rem;
}

.credential-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid #E9F8FF;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    word-break: break-all;
    min-height: 2.5rem;
}

.credential-value span {
    flex: 1;
    color: #333;
    font-weight: 500;
}

.btn-copy {
    background: #0182C4;
    color: white;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-copy:hover {
    background: #014C71;
}

.usage-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-item {
    background: #fff;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #E9F8FF;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0182C4;
}

.doc-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.doc-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    padding: 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: #222;
    border: 1px solid #E9F8FF;
    transition: transform 0.2s, box-shadow 0.2s;
}

.doc-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(1, 130, 196, 0.1);
}

.doc-icon {
    font-size: 2rem;
    min-width: 3rem;
    text-align: center;
}

.doc-link strong {
    color: #0182C4;
    font-size: 1.1rem;
}

.doc-link p {
    margin: 0.3rem 0 0 0;
    color: #666;
    font-size: 0.9rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-input {
    padding: 0.8rem;
    border: 2px solid #E9F8FF;
    border-radius: 10px;
    background: #fff;
    font-size: 1rem;
}

.auth-input:focus {
    outline: none;
    border-color: #0182C4;
    box-shadow: 0 0 0 3px rgba(1, 130, 196, 0.1);
}

.btn-auth {
    background: #0182C4;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-auth:hover {
    background: #014C71;
}

.btn-auth:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.auth-result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #E9F8FF;
}

.success-result {
    color: #2e7d32;
    background: #e8f5e8;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.9rem;
}

.error-result {
    color: #c62828;
    background: #ffebee;
    padding: 1rem;
    border-radius: 8px;
}

.dashboard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #E9F8FF;
}

.btn-primary {
    background: #0182C4;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
    background: #014C71;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #e9e9e9;
}

.status-active {
    color: #4CAF50;
    font-weight: 600;
}

/* ============================
   Modal de Confirmación
============================= */
#confirmacion {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    /* Fondo oscuro */
    padding: 1rem;
    box-sizing: border-box;
}

#confirmacion .card-confirmacion {
    background: #fff;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(30, 90, 215, 0.20);
    animation: popupIn 0.4s ease-out;
    z-index: 10000;
    position: relative;
    text-align: center;
}

@keyframes popupIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}


@media (max-width: 800px) {
    main {
        max-width: 95%;
        width: 95%;
        padding: 1rem 0.5rem;
        margin: 0.1rem auto;
    }

    .card-oferta,
    .card-confirmacion,
    .card-finalizacion,
    .card-setup,
    .card-dashboard {
        max-width: 100%;
        padding: 1.2rem 0.7rem 1rem 0.7rem;
    }

    .logo {
        width: 100%;
    }

    .caracteristicas {
        flex-direction: column;
        gap: 0.5rem;
    }

    .dashboard-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .usage-stats {
        grid-template-columns: 1fr;
    }

    .credential-value {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .credential-value span {
        width: 100%;
        text-align: left;
    }

    .btn-copy {
        align-self: flex-end;
    }
}

/* ========================================
   Estilos para Endpoints de Validación
   ======================================== */

.validation-endpoints-section {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.validation-endpoints-section h3 {
    color: #0182C4;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.validation-endpoints {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.endpoint-card {
    background: #f8f9fb;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #0182C4;
    transition: all 0.3s ease;
}

.endpoint-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 130, 196, 0.15);
}

.endpoint-card.endpoint-basic {
    border-left-color: #28a745;
}

.endpoint-card.endpoint-professional {
    border-left-color: #007bff;
}

.endpoint-card.endpoint-enterprise {
    border-left-color: #6f42c1;
}

.endpoint-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.endpoint-header h4 {
    margin: 0;
    color: #222;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.plan-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
}

.plan-badge.basic {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.plan-badge.professional {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.plan-badge.enterprise {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
}

.endpoint-method {
    background: #0182C4;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.endpoint-description {
    color: #555;
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.endpoint-url-container {
    margin-bottom: 1rem;
}

.endpoint-url-container label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.endpoint-url {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

.endpoint-features {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.endpoint-features strong {
    color: #0182C4;
    display: block;
    margin-bottom: 0.5rem;
}

.endpoint-features ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #555;
}

.endpoint-features li {
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

.endpoint-pricing {
    background: #e8f4f8;
    border-radius: 8px;
    padding: 1rem;
    color: #222;
    font-size: 0.95rem;
    line-height: 1.8;
}

.endpoint-pricing strong {
    color: #0182C4;
}

.endpoint-pricing code {
    background: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #d63384;
    font-size: 0.9rem;
}

.endpoint-pricing small {
    color: #666;
}

/* ========================================
   Estilos para Tabla de Dimensiones
   ======================================== */

.dimensions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.dimensions-table thead {
    background: #0182C4;
    color: #fff;
}

.dimensions-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.dimensions-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
    color: #333;
}

.dimensions-table tbody tr:hover {
    background: #f8f9fb;
}

.dimensions-table tbody tr:last-child td {
    border-bottom: none;
}

.dimensions-table code {
    background: #f8f9fb;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #d63384;
    font-size: 0.9rem;
}

/* ========================================
   Estilos para Documentación Mejorada
   ======================================== */

.documentation-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.documentation-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.documentation-item strong {
    color: #0182C4;
    display: block;
    margin-bottom: 0.5rem;
}

.documentation-item p {
    margin: 0.5rem 0 0 0;
    color: #555;
    line-height: 1.6;
}

.documentation-item a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.documentation-item a:hover {
    text-decoration: underline;
}

/* ========================================
   Responsive para Endpoints
   ======================================== */

@media (max-width: 768px) {
    .endpoint-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .endpoint-header h4 {
        font-size: 1.1rem;
    }

    .plan-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }

    .dimensions-table {
        font-size: 0.85rem;
    }

    .dimensions-table th,
    .dimensions-table td {
        padding: 0.5rem;
    }
}