/* Frontend Styles for Gestión Ambiental */

/* Container */
.ambiental-registro-container,
.ambiental-login-container,
.ambiental-dashboard-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Cards */
.ambiental-registro-card,
.ambiental-login-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.ambiental-login-card {
    max-width: 450px;
}

.ambiental-registro-card h2,
.ambiental-login-card h2 {
    margin: 0 0 10px 0;
    color: #1d2327;
}

.ambiental-registro-card>p,
.ambiental-login-card>p {
    color: #646970;
    margin: 0 0 30px 0;
}

/* Forms */
.ambiental-form {
    margin-top: 20px;
}

.ambiental-form-section {
    margin-bottom: 30px;
}

.ambiental-form-section h3 {
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f1;
    color: #1d2327;
}

.ambiental-form-group {
    margin-bottom: 20px;
}

.ambiental-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1d2327;
}

.ambiental-form-group input[type="text"],
.ambiental-form-group input[type="email"],
.ambiental-form-group input[type="tel"],
.ambiental-form-group input[type="password"],
.ambiental-form-group textarea,
.ambiental-form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.ambiental-form-group input:focus,
.ambiental-form-group textarea:focus,
.ambiental-form-group select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Planes Grid */
.ambiental-planes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ambiental-plan-card {
    position: relative;
}

.ambiental-plan-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.ambiental-plan-card label {
    display: block;
    padding: 25px;
    border: 2px solid #dcdcde;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
}

.ambiental-plan-card input[type="radio"]:checked+label {
    border-color: #2271b1;
    background: #f0f6fc;
    box-shadow: 0 0 0 1px #2271b1;
}

.ambiental-plan-card h4 {
    margin: 0 0 10px 0;
    color: #1d2327;
}

.ambiental-plan-price {
    font-size: 28px;
    font-weight: 700;
    color: #2271b1;
    margin: 15px 0;
}

.ambiental-plan-price span {
    font-size: 14px;
    font-weight: 400;
    color: #646970;
}

.ambiental-plan-description {
    color: #646970;
    font-size: 14px;
    margin: 10px 0 0 0;
}

/* Buttons */
.ambiental-button {
    display: inline-block;
    padding: 12px 24px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.ambiental-button:hover {
    background: #135e96;
    color: #fff;
}

.ambiental-button-primary {
    background: #2271b1;
}

.ambiental-button-small {
    padding: 8px 16px;
    font-size: 13px;
}

.ambiental-form-actions {
    margin-top: 30px;
}

.ambiental-form-note {
    margin-top: 15px;
    font-size: 13px;
    color: #646970;
    text-align: center;
}

/* Alerts */
.ambiental-alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.ambiental-alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.ambiental-alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Login Footer */
.ambiental-login-footer {
    margin-top: 20px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f1;
}

.ambiental-login-footer a {
    color: #2271b1;
    text-decoration: none;
}

.ambiental-login-footer a:hover {
    text-decoration: underline;
}

/* Dashboard */
.ambiental-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f1;
}

.ambiental-dashboard-header h1 {
    margin: 0;
    color: #1d2327;
}

.ambiental-dashboard-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ambiental-dashboard-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.ambiental-dashboard-section h2 {
    margin: 0 0 20px 0;
    color: #1d2327;
}

.ambiental-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.ambiental-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ambiental-info-item strong {
    color: #646970;
    font-size: 13px;
}

.ambiental-info-item span {
    color: #1d2327;
    font-size: 15px;
}

.ambiental-subscription-card {
    background: #f0f6fc;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 25px;
}

.ambiental-subscription-info h3 {
    margin: 0 0 15px 0;
    color: #1d2327;
}

.ambiental-subscription-status {
    font-weight: 600;
    margin: 10px 0;
}

.ambiental-status-active {
    color: #155724;
}

.ambiental-status-inactive {
    color: #856404;
}

.ambiental-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.ambiental-module-card {
    background: #fff;
    border: 2px solid #dcdcde;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
}

.ambiental-module-card:hover {
    border-color: #2271b1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ambiental-module-card h3 {
    margin: 0 0 10px 0;
    color: #1d2327;
}

.ambiental-module-coming-soon {
    opacity: 0.6;
}

.ambiental-module-coming-soon p {
    color: #646970;
    font-style: italic;
}

/* Responsive */
@media screen and (max-width: 782px) {
    .ambiental-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .ambiental-planes-grid,
    .ambiental-info-grid,
    .ambiental-modules-grid {
        grid-template-columns: 1fr;
    }

    .ambiental-registro-card,
    .ambiental-login-card {
        padding: 25px;
    }
}