/*
BuzónSeguro.org - Estilos CSS Completos
Versión: 1.5.0
Fecha: 22 de Junio 2025
Archivo: styles.css v1.5.0
Descripción: Sistema completo con diseño gris, verde brillante y elementos prominentes
Esquema de colores: 
- Primario: #4c940b (Verde brillante - H1, logo, menús)
- Banner garantías: #65c112 (Verde claro que combina con primario)
- Títulos H2/H3: #3a7008 (Verde oscuro)
- Pasos progresivos: Azul → Azul medio → Naranja → Verde (viaje visual 1-4)
*/

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
    min-height: 100vh;
}

html {
    scroll-padding-top: 140px; /* Ajusta según altura de banner + header */
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Banner de Garantía - DESTACADO */
.guarantee-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #65c112, #4c940b);
    color: white;
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.5s ease-out;
    border-bottom: 3px solid #3a7008;
}

.guarantee-content {
    padding: 0.7rem 1rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Header */
header {
    background: rgba(237, 242, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 45px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    min-height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #4c940b;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4c940b, #3a7008);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: white;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #4c940b;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover {
    color: #3a7008;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(135deg, #4c940b, #3a7008);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Main Content */
main {
    margin-top: 130px;
}

section {
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.hero {
    background: rgba(247, 250, 252, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 2rem 0;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #4c940b;
    text-shadow: none;
}

.hero p {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
}

/* Content Sections */
.content-section {
    background: rgba(247, 250, 252, 0.95);
    border-radius: 15px;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Títulos */
h2, .section-title {
    font-size: 2.5rem;
    color: #3a7008;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

h3 {
    color: #3a7008;
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #4c940b, #3a7008);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Pasos de Uso - 2x2 con colores progresivos */
.usage-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.step {
    background: linear-gradient(135deg, #f7fafc, #e2e8f0);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
    min-height: 220px;
}

.step:hover {
    transform: translateY(-5px);
}

.step-number {
    background: linear-gradient(135deg, #718096, #4a5568);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Colores progresivos para los pasos */
.step:nth-child(1) .step-number {
    background: linear-gradient(135deg, #2c5282, #2a4365);
}

.step:nth-child(2) .step-number {
    background: linear-gradient(135deg, #3182ce, #2c5282);
}

.step:nth-child(3) .step-number {
    background: linear-gradient(135deg, #d69e2e, #b7791f);
}

.step:nth-child(4) .step-number {
    background: linear-gradient(135deg, #4c940b, #3a7008);
}

.step h3 {
    color: #3a7008;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.step p {
    color: #4a5568;
    line-height: 1.5;
}

/* Sección de Privacidad */
.privacy-section-title {
    font-size: 1.8rem;
    color: #3a7008;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

.anonymity-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.option-card {
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    min-height: 200px;
    position: relative;
}

.option-card:hover {
    transform: translateY(-3px);
    border-color: #4c940b;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.option-card.selected {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    border-color: #4c940b;
}

.option-card.selected::before {
    content: "✓";
    position: absolute;
    top: 15px;
    right: 15px;
    background: #4c940b;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.option-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    display: block;
}

.option-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #3a7008;
    text-align: center;
}

.option-card p {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.5;
    text-align: center;
}

.option-card input[type="radio"] {
    width: 25px;
    height: 25px;
    margin: 1.5rem auto 1rem auto;
    display: block;
    cursor: pointer;
    transform: scale(2);
    accent-color: #4c940b;
}

.option-selector label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 100%;
}

/* Campos Opcionales */
.optional-fields {
    background: rgba(247, 250, 252, 0.95);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    border: 2px solid #4c940b;
    box-shadow: 0 4px 15px rgba(76, 148, 11, 0.1);
}

/* Formulario */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #3a7008;
}

.required {
    color: #e53e3e;
}

input, textarea, select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: #f7fafc;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #4c940b;
    box-shadow: 0 0 0 3px rgba(76, 148, 11, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Archivos */
.files-section {
    background: rgba(247, 250, 252, 0.95);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.files-title h3 {
    color: #3a7008;
    margin-bottom: 0.5rem;
}

.files-title p {
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.file-upload-area {
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border: 3px dashed #a0aec0;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.file-upload-area:hover {
    border-color: #4c940b;
    background: linear-gradient(135deg, #edf2f7, #e2e8f0);
    transform: translateY(-2px);
}

.file-upload-area.drag-over {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    border-color: #4c940b;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    color: #a0aec0;
    margin-bottom: 1rem;
    display: block;
}

.upload-text {
    color: #4a5568;
}

.upload-text strong {
    color: #2d3748;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.file-input {
    display: none;
}

.files-preview {
    margin-top: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(237, 242, 247, 0.8);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border-left: 4px solid #4c940b;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-icon {
    color: #4c940b;
    font-size: 1.2rem;
}

.file-details {
    display: flex;
    flex-direction: column;
}

.file-name {
    font-weight: 500;
    color: #2d3748;
    font-size: 0.9rem;
}

.file-size {
    color: #718096;
    font-size: 0.8rem;
}

.remove-file {
    color: #e53e3e;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.2rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.remove-file:hover {
    background-color: rgba(229, 62, 62, 0.1);
}

/* reCAPTCHA */
.recaptcha-container {
    margin: 2rem 0;
    text-align: center;
}

/* Botones */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #4c940b, #3a7008);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3a7008, #2d3748);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.submit-section {
    text-align: center;
    margin: 2rem 0;
}

.submit-note {
    margin-top: 1rem;
    color: #4a5568;
    font-size: 0.9rem;
}

/* Notificaciones */
.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(45, 55, 72, 0.95);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    max-width: 500px;
    width: 90%;
    text-align: center;
    backdrop-filter: blur(10px);
}

.notification.success {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.notification.error {
    background: linear-gradient(135deg, #f56565, #e53e3e);
}

.notification.info {
    background: linear-gradient(135deg, #4c940b, #3a7008);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.notification h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #3a7008;
}

.notification.success h3,
.notification.error h3,
.notification.info h3 {
    color: white;
}

.notification-content {
    margin-bottom: 1rem;
}

.close-notification {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.close-notification:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Características de Seguridad */
.security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.security-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.security-item:hover {
    transform: translateY(-5px);
}

.security-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.security-item h3 {
    color: #3a7008;
    margin-bottom: 1rem;
}

.security-item p {
    color: #4a5568;
    line-height: 1.5;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2d3748, #1a202c);
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Banner mejorado para móvil */
    .guarantee-content {
        font-size: 0.9rem;
        padding: 0.4rem 0.5rem;
        line-height: 1.2;
    }
    
    /* Header ajustado para móvil */
    header {
        top: 40px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 2rem 0;
    }

    .logo {
        font-size: 1.5rem;
        color: #4c940b;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    nav a {
        font-size: 0.9rem;
        color: #4c940b;
    }

    /* Main con margen ajustado para móvil */
    main {
        margin-top: 120px;
    }

    .hero h1 {
        font-size: 1.7rem;
        color: #4c940b;
    }

    .section-title, h2 {
        font-size: 2rem;
        color: #3a7008;
    }

    .content-section {
        padding: 2rem 1rem;
    }

    /* Título de privacidad en móvil */
    .privacy-section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* Steps ajustados para móvil - en columna */
    .usage-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: none;
    }

    .step {
        min-height: auto;
        padding: 1.5rem;
    }

    .step h3, h3 {
        font-size: 1.1rem;
        color: #3a7008;
    }

    .anonymity-options {
        grid-template-columns: 1fr;
    }
    
    /* Option cards para móvil */
    .option-card {
        padding: 2rem;
        min-height: 150px;
    }
    
    .option-card h3 {
        font-size: 1.3rem;
    }
    
    .option-card p {
        font-size: 1rem;
    }
    
    .option-card input[type="radio"] {
        transform: scale(1.5);
        margin: 1rem auto 0.5rem auto;
    }
    
    .option-card.selected::before {
        top: 10px;
        right: 10px;
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }
    
    .option-icon {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }
    
    /* Campos opcionales en móvil */
    .optional-fields {
        padding: 1.5rem 1rem;
        margin: 1.5rem 0;
    }
    
    .optional-fields h3 {
        font-size: 1.3rem;
        margin: 1.5rem 0 1rem 0;
    }
    
    /* Archivos mejorados para móvil */
    .files-section {
        padding: 1.5rem 1rem;
    }
    
    .file-upload-area {
        padding: 2rem 1rem;
    }
    
    .upload-icon {
        font-size: 2rem;
    }
    
    .upload-text strong {
        font-size: 1rem;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .remove-file {
        align-self: flex-end;
    }
    
    .notification {
        padding: 1.5rem;
        margin: 1rem;
        width: auto;
        left: 1rem;
        right: 1rem;
        transform: translateY(-50%);
    }

    .security-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .usage-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    animation: fadeInUp 0.6s ease-out;
}

/* Fin del archivo styles.css v1.5.0 - COMPLETO */