/* Common Styles for AID SOLUTIONS Website */

/* Base Styles */
:root {
    /* Nueva paleta de colores más moderna */
    --primary-color: #0F4C81; /* Azul oscuro más profundo */
    --primary-light: #3498db; /* Azul claro más vibrante */
    --secondary-color: #2ecc71; /* Verde esmeralda */
    --accent-color: #f39c12; /* Naranja ámbar para acentos */
    --gray-dark: #2c3e50; /* Gris azulado oscuro */
    --gray-medium: #7f8c8d; /* Gris medio */
    --gray-light: #ecf0f1; /* Gris muy claro */
    --white: #ffffff;
    --black: #1a1a1a;
    --danger: #e74c3c; /* Rojo para alertas */
    --success: #27ae60; /* Verde para éxito */
    --warning: #f1c40f; /* Amarillo para advertencias */
    --info: #3498db; /* Azul para información */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--gray-dark);
    line-height: 1.6;
    background-color: #f8fafc;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

/* Navigation Styles */
.nav-link {
    font-weight: 500;
    color: var(--gray-color);
    padding: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    font-weight: 500;
    color: var(--gray-color);
    transition: color 0.3s ease;
}

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

/* Button Styles */
.btn-primary, .btn-secondary, .btn-white, .btn-accent {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::after, .btn-secondary::after, .btn-white::after, .btn-accent::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::after, .btn-secondary:hover::after, .btn-white:hover::after, .btn-accent:hover::after {
    height: 100%;
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

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

.btn-secondary:hover {
    background-color: #27ae60;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

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

.btn-white:hover {
    color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

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

.btn-accent:hover {
    background-color: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Service Card Styles */
.service-card, .partner-card, .team-card {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-bottom: 4px solid transparent;
    height: 100%;
}

.service-card:hover, .partner-card:hover, .team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--secondary-color);
}

.icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.service-card:hover .icon-container {
    background-color: var(--primary-color);
    color: white;
    transform: rotate(5deg) scale(1.1);
}

/* Partner Card Styles */
.partner-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 1rem;
    background-color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
}

.partner-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--accent-color);
}

.partner-card .w-20 {
    width: 4rem;
    height: 4rem;
}

.partner-card .h-20 {
    width: 4rem;
    height: 4rem;
}

.partner-card svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Form Styles */
.form-input, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    background-color: #f8fafc;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: var(--gray-dark);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-dark);
}

/* Image Styles */
img {
    max-width: 100%;
    height: auto;
}

/* Section Styles */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 0;
    width: 3rem;
    height: 0.25rem;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-light));
    border-radius: 9999px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-medium);
    margin-bottom: 3rem;
    max-width: 700px;
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a365d 100%);
    position: relative;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm63 31c1.657 0 3-1.343 3-3s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM34 90c1.657 0 3-1.343 3-3s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.657 0 3-1.343 3-3s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
}

/* Stats */
.stat-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

/* Footer */
footer {
    background-color: var(--gray-dark);
    color: var(--gray-light);
}

.footer-heading {
    color: white;
    font-weight: 600;
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 2rem;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-link {
    color: var(--gray-light);
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-link:hover {
    color: white;
    transform: translateX(5px);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--gray-light);
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 1rem;
    height: 1rem;
}

.social-icon:hover {
    background-color: var(--primary-light);
    color: white;
    transform: translateY(-3px);
}

footer svg {
    width: 1rem;
    height: 1rem;
}

/* About Us Section Icons */
#nosotros .w-16 {
    width: 3rem;
    height: 3rem;
}

#nosotros .h-16 {
    width: 3rem;
    height: 3rem;
}

#nosotros .w-16 svg, #nosotros .h-16 svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Contact Section Icons */
#contacto .w-12 {
    width: 2.5rem;
    height: 2.5rem;
}

#contacto .h-12 {
    width: 2.5rem;
    height: 2.5rem;
}

#contacto .w-12 svg, #contacto .h-12 svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .btn-primary, .btn-secondary, .btn-white, .btn-accent {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .service-card, .partner-card, .team-card {
        padding: 1.5rem;
    }
    
    .icon-container {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Estilos para la tienda en línea */
.product-card {
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.product-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-badge.featured {
    background-color: var(--accent-color);
    color: white;
}

.product-badge.sale {
    background-color: var(--danger);
    color: white;
}

.product-badge.new {
    background-color: var(--secondary-color);
    color: white;
}

.category-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    color: var(--gray-dark);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-btn:hover {
    color: var(--primary-color);
    background-color: rgba(15, 76, 129, 0.1);
}

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

/* Carrito de compras */
#cart-sidebar {
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

#cart-items {
    max-height: calc(100vh - 250px);
}

.cart-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 1rem 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    overflow: hidden;
}

.quantity-btn {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background-color: #e2e8f0;
}

.quantity-input {
    width: 2.5rem;
    height: 2rem;
    border: none;
    text-align: center;
    font-weight: 500;
}

/* Animaciones para la tienda */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.6s ease forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Notificaciones */
.notification {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 50;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Estilos para el checkout */
.checkout-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
}

.payment-method {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: var(--primary-color);
}

.payment-method.selected {
    border-color: var(--primary-color);
    background-color: rgba(15, 76, 129, 0.05);
}
