/* Ekomon Website - Vasos Reutilizables CSS */

:root {
    --primary-color: #2ecc71;
    --secondary-color: #27ae60;
    --success-color: #28a745;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --font-family: 'Raleway', 'Poppins', sans-serif;
    --text-color: #666;
}

/* Statistics Section Styles */
.statistics-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.stats-header {
    margin-bottom: 40px;
}

.stats-title {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-subtitle {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stats-discover {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0;
}

.stats-row {
    margin-top: 40px;
}

.stat-counter {
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

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

.statistics-section .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #17a2b8 !important;
    margin-bottom: 10px;
    line-height: 1;
    font-family: 'Poppins', 'Arial', sans-serif;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.statistics-section .stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .stats-title {
        font-size: 1.2rem;
        padding: 12px 20px;
    }
    
    .statistics-section .stat-number {
        font-size: 2.2rem !important;
    }
    
    .statistics-section .stat-label {
        font-size: 0.8rem;
    }
}

/* Page Hero Styles */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-hero .lead {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Navigation Active State */
.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Header styles */
.header-main {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Navbar styles for clientes.html */
.navbar-nav {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

.navbar-nav .nav-item {
    margin-left: 0.5rem;
}

.navbar-nav .nav-link {
    white-space: nowrap;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.9rem;
}

/* Navbar styles for index.html */
.main-navigation .nav {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

.main-navigation .nav-item {
    margin-left: 0.25rem;
}

.main-navigation .nav-link {
    white-space: nowrap;
    padding: 0.5rem 0.6rem !important;
    font-size: 0.9rem;
}

@media (max-width: 1200px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 0.5rem !important;
        font-size: 0.85rem;
    }
    
    .main-navigation .nav-link {
        padding: 0.5rem 0.4rem !important;
        font-size: 0.85rem;
    }
}

@media (max-width: 992px) {
    .navbar-nav {
        flex-direction: column !important;
    }
    
    .navbar-nav .nav-item {
        margin-left: 0;
    }
}

/* Clientes page specific styles */
.clientes-section {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.hero-section {
    padding: 0.5rem 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.hero-section h1 {
    margin-bottom: 0.25rem !important;
    margin-top: 0 !important;
}

.hero-section p {
    margin-bottom: 0 !important;
}

.main-content {
    padding-top: 56px; /* Account for fixed navbar */
    margin-top: 0;
}

.client-form-container {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.form-section {
    margin-bottom: 1rem !important;
}

/* Reduce spacing between form elements */
.form-section .mb-3 {
    margin-bottom: 0.75rem !important;
}

.form-section .mb-4 {
    margin-bottom: 1rem !important;
}

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

.main-navigation .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.main-navigation .nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(46, 204, 113, 0.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--light-color) 0%, #ffffff 100%);
    padding: 4rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons .btn {
    margin-right: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 30px;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Main content styles */
main {
    min-height: calc(100vh - 200px);
}

/* Products Section */
.productos-section {
    background: white;
}

.productos-section h2 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 3rem;
}

.product-card {
    height: 100%;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.product-range-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.product-card .fa-wine-glass-alt {
    color: var(--primary-color);
}

.product-card .fa-recycle {
    color: var(--success-color);
}

.product-card .fa-palette {
    color: var(--warning-color);
}

/* Empresa Section */
.empresa-section {
    background: var(--light-color);
}

.empresa-section h2 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--secondary-color);
    font-weight: 500;
}

/* Contacto Section */
.contacto-section {
    background: white;
}

.contacto-section h2 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 3rem;
}

.contact-form .form-control {
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 204, 113, 0.25);
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Servicios Section */
.servicios-section {
    min-height: 400px;
}

.servicios-section h2 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 3rem;
}

/* Product specific styles */
.product-image {
    height: 200px;
    object-fit: contain;
    background-color: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.product-icon-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.price {
    font-weight: 700;
    margin-bottom: 1rem;
}

.btn-group .btn {
    border-radius: 0;
    border-color: var(--primary-color);
}

.btn-group .btn:first-child {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.btn-group .btn:last-child {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

.btn-group .btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-group .btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Service section cards */
.feature-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.benefit-card {
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.benefit-card .card-title {
    color: var(--dark-color);
    font-weight: 600;
}

.service-section {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.service-section h3 {
    color: var(--primary-color);
    font-weight: 700;
}

.service-section h4 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Dropdown menu styles */
.dropdown-menu {
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    background-color: white;
    min-width: 200px;
}

.dropdown-item {
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    text-decoration: none;
    display: block;
    clear: both;
    font-weight: 400;
    line-height: 1.5;
    white-space: nowrap;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* Navigation dropdown toggle */
.nav-link.dropdown-toggle::after {
    margin-left: 0.5em;
}

/* Ensure dropdown shows on hover for better UX */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Testimonials Section */
.testimonials-section {
    background-color: #f8f9fa;
}

.testimonial-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

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

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 0;
    line-height: 1.6;
}

.testimonial-author {
    border-top: 2px solid var(--primary-color);
    padding-top: 1rem;
    text-align: right;
}

.testimonial-author strong {
    color: var(--primary-color);
    font-weight: 600;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Trusted Brands Section */
.trusted-brands-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.trusted-brands-section .section-header h2 {
    color: white;
}

.trusted-brands-section .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.brand-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.brand-placeholder:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.brand-placeholder i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.brand-placeholder span {
    display: block;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.brand-logo:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.brand-logo svg {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Client Registration Form */
.clientes-section {
    background-color: #f8f9fa;
}

.client-form-container {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.client-form .section-title {
    color: var(--primary-color);
    font-weight: 700;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.client-form .form-label {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.client-form .form-control,
.client-form select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.client-form .form-control:focus,
.client-form select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 144, 220, 0.25);
}

.client-form .form-check-input {
    margin-top: 0.25rem;
}

.client-form .form-check-label {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.4;
}

.client-form .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 30px;
    padding: 1rem 3rem;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(52, 144, 220, 0.4);
    transition: all 0.3s ease;
}

.client-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 144, 220, 0.5);
}

.client-form .required-field::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

/* Form validation styles */
.client-form .is-invalid {
    border-color: #dc3545;
}

.client-form .is-valid {
    border-color: #28a745;
}

.client-form .invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.client-form .valid-feedback {
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success message styles */
.client-success-message {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 2rem;
    display: none;
}

.client-success-message h4 {
    margin-bottom: 0.5rem;
}

.client-success-message p {
    margin-bottom: 0;
    opacity: 0.9;
}

/* Quiénes Somos Section */
.quienes-somos-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.quienes-somos-section .section-header h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.quienes-somos-section .section-header h3 {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.5rem;
}

.about-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.about-content h4 {
    color: var(--primary-color);
    font-weight: 600;
}

.about-content p {
    line-height: 1.6;
    color: var(--text-color);
}

.about-stats {
    padding: 1rem;
}

.stat-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

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

.stat-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1rem;
    width: 60px;
    text-align: center;
}

.stat-content h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.stat-content p {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.stat-content small {
    color: var(--text-color);
    font-size: 0.8rem;
}

.product-info-section {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-info-section h4 {
    color: var(--primary-color);
    font-weight: 700;
}

.info-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    height: 100%;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.info-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-card h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-color);
    line-height: 1.6;
}

.quality-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem;
    border-radius: 50px;
    display: inline-block;
    margin-top: 1rem;
}

.quality-badge i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.quality-badge p {
    margin: 0;
    font-size: 1.1rem;
}

/* Card hover effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Button styles */
.btn {
    border-radius: 5px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Icon styles */
.fa-3x {
    margin-bottom: 1rem;
}

/* Code block styles */
pre {
    border: 1px solid #e9ecef;
    font-size: 0.9rem;
    overflow-x: auto;
}

/* Alert styles */
.alert {
    border-radius: 8px;
    border: none;
}

/* Footer styles */
footer {
    margin-top: auto;
}

/* Responsive design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .btn {
        margin-bottom: 0.5rem;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.border-radius-lg {
    border-radius: 15px;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
}

/* Animation classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slide-up {
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.6s forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Language Selector Styles */
.language-selector {
    padding: 10px 0;
}

.language-btn {
    border: 2px solid transparent;
    background: transparent;
    padding: 5px 10px;
    margin: 0 5px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.language-btn:hover {
    background-color: rgba(46, 204, 113, 0.1);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.language-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
}

.language-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}
