/* style.css - Estilos para el sistema de consentimientos EnyGas */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 5px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.language-selector a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 2px;
    text-decoration: none;
    color: #666;
    font-weight: bold;
    font-size: 12px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.language-selector a:hover {
    background: #f0f0f0;
}

.language-selector a.active {
    background: #4CAF50;
    color: white;
}

.container {
    max-width: 600px;
    margin: 40px auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.lock-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.header h1 {
    font-size: 24px;
    margin: 10px 0;
    font-weight: 600;
}

.header h2 {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.9;
}

.intro {
    padding: 30px 30px 20px;
    background: #f9f9f9;
}

.intro p {
    color: #333;
    margin-bottom: 15px;
}

.info-box {
    background: #e8f5e9;
    border-left: 4px solid #4CAF50;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.info-box p {
    margin: 8px 0;
    color: #2e7d32;
    font-size: 14px;
}

form {
    padding: 20px 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.checkbox-section {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.checkbox-section p {
    margin-bottom: 15px;
    color: #333;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 12px;
    margin: 8px 0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-label:hover {
    background: #e8f5e9;
    transform: translateX(5px);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
}

.checkbox-label span {
    color: #333;
    font-size: 15px;
}

.obligatorio {
    color: #666;
    font-size: 13px;
    font-style: italic;
    margin: 15px 0;
}

.btn-submit,
.btn-warning,
.btn-secondary {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit {
    background: #4CAF50;
    color: white;
}

.btn-submit:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.btn-warning {
    background: #ff9800;
    color: white;
}

.btn-warning:hover {
    background: #f57c00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

.btn-secondary {
    background: #9e9e9e;
    color: white;
}

.btn-secondary:hover {
    background: #757575;
}

.btn-link {
    display: inline-block;
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
}

.btn-link:hover {
    text-decoration: underline;
}

.footer {
    padding: 30px;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

.footer h3 {
    color: #333;
    font-size: 16px;
    margin-bottom: 10px;
}

.footer p {
    color: #666;
    font-size: 14px;
    margin: 10px 0;
}

.mas-info {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.links-legales {
    list-style: none;
    padding: 0;
}

.links-legales li {
    margin: 8px 0;
}

.links-legales a {
    color: #4CAF50;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.links-legales a:hover {
    color: #45a049;
    text-decoration: underline;
}

.revocar {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
    color: #666;
}

.revocar a {
    color: #4CAF50;
    text-decoration: none;
}

.revocar a:hover {
    text-decoration: underline;
}

/* Página de gracias */
.success-icon,
.warning-icon,
.error-icon {
    font-size: 80px;
    text-align: center;
    padding: 30px 0 10px;
}

.success-icon {
    color: #4CAF50;
}

.warning-icon {
    color: #ff9800;
}

.error-icon {
    color: #f44336;
}

.info-section {
    padding: 20px 30px;
}

.info-section h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

.info-list li:last-child {
    border-bottom: none;
}

.resumen-section {
    padding: 20px 30px;
    background: #f9f9f9;
}

.resumen-section h3 {
    color: #333;
    margin-bottom: 15px;
}

.resumen-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.resumen-row {
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.resumen-row:last-child {
    border-bottom: none;
}

.resumen-label {
    font-weight: 600;
    color: #666;
    display: inline-block;
    min-width: 120px;
}

.resumen-value {
    color: #333;
}

.autorizaciones {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.check {
    color: #4CAF50;
    font-weight: bold;
}

.cross {
    color: #999;
}

.warning-section {
    padding: 20px 30px;
    background: #fff3e0;
}

.warning-section h3 {
    color: #f57c00;
    margin-bottom: 15px;
}

.warning-list {
    list-style: none;
    padding: 0;
}

.warning-list li {
    padding: 8px 0;
    color: #666;
}

.error-section {
    padding: 20px 30px;
    background: #ffebee;
    border-left: 4px solid #f44336;
    margin: 20px 30px;
    border-radius: 4px;
}

.error-section h3 {
    color: #c62828;
    margin-bottom: 10px;
}

.error-section ul {
    list-style: none;
    padding-left: 0;
}

.error-section li {
    padding: 5px 0;
    color: #666;
}

.revoked {
    background: #ffebee;
    border-left: 4px solid #f44336;
    padding: 20px;
    margin: 20px 30px;
    border-radius: 4px;
}

.revoked-list {
    list-style: none;
    padding: 0;
}

.revoked-list li {
    padding: 8px 0;
    color: #c62828;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        margin: 20px auto;
    }

    .header h1 {
        font-size: 20px;
    }

    .intro,
    form,
    .info-section,
    .resumen-section,
    .footer {
        padding: 20px;
    }

    .language-selector {
        top: 10px;
        right: 10px;
    }
}