/* CSS Variables */
:root {
    --primary-color: 220 100% 45%; /* #0066FF */
    --primary-light: 220 100% 85%; /* #CCE5FF */
    --primary-dark: 220 100% 25%; /* #003D99 */
    --secondary-color: 45 95% 50%; /* #FFA500 */
    --success-color: 142 76% 36%; /* #28a745 */
    --danger-color: 354 70% 54%; /* #dc3545 */
    --warning-color: 45 100% 51%; /* #ffc107 */
    --info-color: 188 78% 41%; /* #17a2b8 */
    --light-color: 210 17% 95%; /* #f8f9fa */
    --dark-color: 210 11% 15%; /* #212529 */
    --gray-100: 210 17% 98%; /* #f8f9fa */
    --gray-200: 210 14% 89%; /* #e9ecef */
    --gray-300: 210 11% 71%; /* #adb5bd */
    --gray-600: 210 9% 31%; /* #495057 */
    --gray-800: 210 10% 23%; /* #343a40 */
    --white: 0 0% 100%; /* #ffffff */
    --font-family-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans);
    line-height: 1.6;
    color: hsl(var(--dark-color));
    background-color: hsl(var(--white));
    font-size: 16px;
}

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

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1.5;
}

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

.btn-primary:hover {
    background-color: hsl(var(--primary-dark));
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: hsl(var(--gray-800));
}

.btn-outline {
    background-color: transparent;
    color: hsl(var(--primary-color));
    border: 2px solid hsl(var(--primary-color));
}

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: hsl(var(--dark-color));
    color: hsl(var(--white));
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-buttons .btn {
    font-size: 0.9rem;
    padding: 8px 16px;
}

/* Cookie Modal */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1001;
}

.cookie-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-content {
    background-color: hsl(var(--white));
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid hsl(var(--gray-200));
    border-radius: var(--border-radius);
}

.cookie-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 5px;
}

.cookie-switch input {
    margin-right: 10px;
}

.cookie-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Header */
.header {
    background-color: hsl(var(--white));
    box-shadow: var(--box-shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.navbar {
    padding: 1rem 0;
}

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

.nav-brand a {
    text-decoration: none;
    color: hsl(var(--dark-color));
}

.nav-brand h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: hsl(var(--primary-color));
}

.nav-brand span {
    font-size: 0.9rem;
    color: hsl(var(--gray-600));
}

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

.nav-menu a {
    text-decoration: none;
    color: hsl(var(--dark-color));
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: hsl(var(--primary-color));
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: hsl(var(--dark-color));
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, hsl(var(--primary-light)), hsl(var(--white)));
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    color: hsl(var(--dark-color));
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: hsl(var(--gray-600));
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

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

.hero-image svg {
    max-width: 100%;
    height: auto;
}

/* Sections */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: hsl(var(--light-color));
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: hsl(var(--dark-color));
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: hsl(var(--gray-600));
    max-width: 600px;
    margin: 0 auto;
}

/* Empresa Section */
.empresa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.empresa-content h3 {
    color: hsl(var(--primary-color));
    margin-bottom: 1.5rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat h4 {
    font-size: 2rem;
    color: hsl(var(--primary-color));
    margin-bottom: 0.5rem;
}

.stat p {
    color: hsl(var(--gray-600));
    margin: 0;
}

.empresa-values h3 {
    color: hsl(var(--primary-color));
    margin-bottom: 1.5rem;
}

.value-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.value-item i {
    color: hsl(var(--primary-color));
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.value-item h4 {
    margin-bottom: 0.5rem;
}

.value-item p {
    color: hsl(var(--gray-600));
    margin: 0;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: hsl(var(--white));
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background-color: hsl(var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: hsl(var(--primary-color));
}

.service-card h3 {
    color: hsl(var(--dark-color));
    margin-bottom: 1rem;
}

.service-card p {
    color: hsl(var(--gray-600));
    margin-bottom: 1.5rem;
}

.service-card ul {
    list-style: none;
    text-align: left;
}

.service-card li {
    padding: 0.5rem 0;
    color: hsl(var(--gray-600));
    border-bottom: 1px solid hsl(var(--gray-200));
}

.service-card li:before {
    content: "✓";
    color: hsl(var(--success-color));
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: hsl(var(--white));
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

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

.product-image {
    padding: 2rem;
    background-color: hsl(var(--light-color));
    text-align: center;
}

.product-image svg {
    max-width: 100%;
    height: auto;
}

.product-info {
    padding: 2rem;
}

.product-info h3 {
    color: hsl(var(--dark-color));
    margin-bottom: 1rem;
}

.product-info p {
    color: hsl(var(--gray-600));
    margin-bottom: 1.5rem;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-features span {
    background-color: hsl(var(--primary-light));
    color: hsl(var(--primary-dark));
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: hsl(var(--white));
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.stars {
    margin-bottom: 1rem;
}

.stars i {
    color: hsl(var(--warning-color));
    margin-right: 0.25rem;
}

.testimonial-content p {
    font-style: italic;
    color: hsl(var(--gray-600));
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonial-author strong {
    color: hsl(var(--dark-color));
    display: block;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: hsl(var(--gray-600));
    font-size: 0.9rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    color: hsl(var(--primary-color));
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    color: hsl(var(--primary-color));
    font-size: 1.5rem;
    margin-top: 0.25rem;
    min-width: 24px;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: hsl(var(--dark-color));
}

.contact-item p {
    color: hsl(var(--gray-600));
    margin: 0;
}

.social-links {
    margin-top: 2rem;
}

.social-links h4 {
    color: hsl(var(--dark-color));
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: hsl(var(--primary-color));
    color: hsl(var(--white));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: hsl(var(--primary-dark));
    transform: translateY(-2px);
}

.contact-form h3 {
    color: hsl(var(--primary-color));
    margin-bottom: 2rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid hsl(var(--gray-300));
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: hsl(var(--primary-color));
    box-shadow: 0 0 0 3px hsla(var(--primary-color), 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background-color: hsl(var(--dark-color));
    color: hsl(var(--white));
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    color: hsl(var(--primary-color));
    margin-bottom: 1rem;
}

.footer-section p {
    color: hsl(var(--gray-300));
    margin-bottom: 1rem;
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: hsl(var(--gray-300));
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid hsl(var(--gray-600));
    padding-top: 1rem;
    text-align: center;
    color: hsl(var(--gray-300));
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: hsl(var(--white));
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--box-shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .empresa-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .service-card,
    .testimonial-card {
        padding: 1.5rem;
    }
}
