/**
 * GALVADER - Estilos CSS
 * Diseño profesional para distribuidora de químicos industriales
 */

/* === VARIABLES Y RESET === */
:root {
    --primary-color: #1a3a52;
    --secondary-color: #2c5f7e;
    --accent-color: #d4af37;
    --danger-color: #c41e3a;
    --warning-color: #ff8c00;
    --text-dark: #1a1a1a;
    --text-light: #4a4a4a;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

/* === BANNER LEGAL === */
.legal-banner {
    background: linear-gradient(135deg, var(--danger-color), #8b0000);
    color: white;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.legal-banner.hidden {
    display: none;
}

.legal-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.legal-content p {
    margin: 0;
    flex: 1;
    font-size: 0.9em;
}

.btn-accept {
    background: white;
    color: var(--danger-color);
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
}

.btn-accept:hover {
    background: var(--bg-light);
}

/* === HEADER === */
.header {
    background: var(--primary-color);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    margin-top: 60px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 60px;
    width: auto;
    max-width: 250px;
}

.logo h1 {
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: 2px;
    display: none; /* Ocultar texto, solo mostrar logo */
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--secondary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
}

.mobile-nav {
    display: none;
    background: var(--secondary-color);
    padding: 20px 0;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
}

.mobile-nav a:hover {
    background: var(--primary-color);
}

/* === MAIN CONTENT === */
.main-content {
    min-height: calc(100vh - 400px);
}

/* === HERO SECTION === */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* === SECTIONS === */
section {
    padding: 60px 0;
}

section h2 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

/* === MISSION === */
.mission {
    background: white;
}

.mission-content p {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.mission-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pillar {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.pillar:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.pillar-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.pillar h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* === SECTORS === */
.sectors {
    background: var(--bg-light);
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.sector-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

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

.sector-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.sector-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* === CTA SECTION === */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.cta-note {
    font-size: 0.9em;
    margin-top: 15px;
    opacity: 0.9;
}

/* === CERTIFICATIONS === */
.certifications {
    background: white;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.cert-item {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.cert-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: #c19f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: var(--primary-color);
}

/* === PAGE HEADER === */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 1.2em;
    opacity: 0.95;
}

/* === WARNING BOXES === */
.warning-box {
    background: linear-gradient(135deg, var(--warning-color), var(--danger-color));
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
}

.warning-box h3 {
    margin-bottom: 15px;
}

.product-warning,
.contact-warning {
    background: white;
    padding: 30px 0;
}

/* === PRODUCTS === */
.product-main {
    background: white;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.product-card.featured {
    border: 3px solid var(--danger-color);
}

.product-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 30px;
    text-align: center;
}

.product-hazard {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.hazard-symbol {
    font-size: 3em;
}

.un-number {
    background: var(--danger-color);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.2em;
}

.product-body {
    padding: 40px;
}

.product-body > div {
    margin-bottom: 40px;
}

.product-body h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.specs-table th {
    background: var(--bg-light);
    font-weight: 600;
    width: 40%;
}

.safety-warnings {
    display: grid;
    gap: 15px;
}

.safety-item {
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid;
}

.safety-item.danger {
    background: #fee;
    border-color: var(--danger-color);
}

.safety-item.warning {
    background: #fff4e6;
    border-color: var(--warning-color);
}

.compliance-list {
    list-style: none;
}

.compliance-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.compliance-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: green;
    font-weight: bold;
    font-size: 1.2em;
}

.product-footer {
    background: var(--bg-light);
    padding: 30px;
}

.no-ecommerce-notice {
    text-align: center;
}

.no-ecommerce-notice p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.product-card-small {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.un-tag {
    background: var(--danger-color);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    display: inline-block;
    margin: 10px 0;
    font-size: 0.9em;
}

.catalog-cta {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 10px;
}

/* === COMPLIANCE PAGE === */
.regulation-cards {
    display: grid;
    gap: 30px;
}

.regulation-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.reg-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.regulation-card h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.regulation-card h4 {
    color: var(--text-light);
    font-weight: normal;
    margin-bottom: 20px;
}

.reg-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.reg-content li {
    margin: 10px 0;
}

.reg-reference {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
    color: var(--text-light);
}

.requirements-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.requirements-intro {
    font-size: 1.1em;
    margin-bottom: 30px;
    text-align: center;
}

.requirements-list {
    display: grid;
    gap: 30px;
}

.requirement-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 8px;
}

.req-number {
    background: var(--accent-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    flex-shrink: 0;
}

.req-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.req-content ul {
    margin: 10px 0;
    padding-left: 25px;
}

.requirements-note {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, var(--warning-color), var(--danger-color));
    color: white;
    border-radius: 8px;
}

.protocols-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.protocol-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.protocol-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.protocol-card ul {
    padding-left: 20px;
}

.protocol-card li {
    margin: 10px 0;
}

.cert-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.cert-item-detail {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--accent-color);
}

.cert-item-detail h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.cta-box {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}

.cta-box h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* === CONTACT FORM === */
.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.form-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-intro {
    color: var(--text-light);
    margin-bottom: 30px;
}

.form-errors {
    background: #fee;
    border-left: 4px solid var(--danger-color);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
}

.form-errors h4 {
    color: var(--danger-color);
    margin-bottom: 10px;
}

.form-errors ul {
    margin-left: 20px;
}

.contact-form {
    margin-top: 30px;
}

.form-section {
    margin-bottom: 40px;
}

.form-section h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1em;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    font-size: 0.9em;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkbox-group {
    padding: 15px;
    background: var(--bg-light);
    border-radius: 5px;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

.form-note {
    margin-top: 15px;
    color: var(--text-light);
    font-size: 0.9em;
}

.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-box {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.info-item {
    margin-bottom: 20px;
}

.info-item strong {
    color: var(--primary-color);
}

.info-box ul {
    padding-left: 20px;
}

.info-box li {
    margin: 8px 0;
}

.form-success {
    padding: 60px 0;
}

.success-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.success-box h2 {
    color: green;
    margin-bottom: 25px;
}

.success-box ol {
    text-align: left;
    max-width: 500px;
    margin: 20px auto;
}

.contact-map {
    background: white;
}

.map-placeholder {
    text-align: center;
}

/* === FOOTER === */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin: 8px 0;
}

.footer-section a {
    color: white;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.warning-text {
    color: var(--warning-color);
    font-weight: bold;
    margin-top: 15px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
}

.legal-disclaimer {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.copyright {
    text-align: center;
    font-size: 0.9em;
}

.copyright a {
    color: var(--accent-color);
    text-decoration: none;
}

/* === PRIVACY PAGE === */
.privacy-content {
    background: white;
}

.content-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.content-box h2 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: left;
}

.content-box ul {
    margin: 15px 0;
    padding-left: 30px;
}

.content-box li {
    margin: 10px 0;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 1.8em;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .legal-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5em;
    }
    
    .page-header h1 {
        font-size: 1.8em;
    }
    
    section {
        padding: 40px 0;
    }
}
