/* ===========================
   VARIABLES Y RESET
   =========================== */

:root {
    --background: #f8f8f8;
    --foreground: #1a1a1a;
    --card: #ffffff;
    --card-foreground: #1a1a1a;
    --secondary: #2a2a2a;
    --secondary-foreground: #ffffff;
    --muted: #f0f0f0;
    --muted-foreground: #666666;
    --accent: #ff9900;
    --accent-foreground: #ffffff;
    --border: #e5e5e5;
    --radius: 6px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

/* ===========================
   CONTAINER Y LAYOUT
   =========================== */

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

.section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
}

/* ===========================
   HEADER
   =========================== */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--card);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--foreground);
    font-weight: 600;
}

.logo-box {
    width: 40px;
    height: 40px;
    background-color: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-foreground);
    flex-shrink: 0;
}

.zap-icon {
    width: 24px;
    height: 24px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--foreground);
}

.logo-subtitle {
    font-size: 10px;
    color: var(--muted-foreground);
    letter-spacing: 0.05em;
}

/* Navigation */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-icon {
    width: 24px;
    height: 24px;
    color: var(--foreground);
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-mobile.active {
        display: flex;
    }
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

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

.btn-accent:hover {
    background-color: #ff8800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-foreground);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-foreground);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.6) 0%, rgba(42, 42, 42, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    color: white;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 32px;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===========================
   SECTION HEADER
   =========================== */

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--foreground);
}

.section-subtitle {
    font-size: 18px;
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
    }
}

/* ===========================
   CATEGORIES SECTION
   =========================== */

.categories-section {
    background-color: var(--card);
}

.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    flex: 0 0 calc(25% - 18px);
    min-width: 0;
}

.category-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
}

.category-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: var(--muted);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(42, 42, 42, 0.8), transparent);
}

.category-icon {
    position: absolute;
    bottom: 16px;
    left: 16px;
    width: 32px;
    height: 32px;
    color: var(--accent);
    z-index: 2;
}

.category-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--foreground);
    transition: color 0.3s ease;
}

.category-card:hover .category-title {
    color: var(--accent);
}

.category-description {
    font-size: 14px;
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    width: 32px;
    background-color: var(--accent);
    border-radius: 4px;
}

@media (max-width: 1024px) {
    .carousel-slide {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .carousel-slide {
        flex: 0 0 calc(100% - 0px);
    }

    .carousel-track {
        gap: 16px;
    }
}

/* ===========================
   BENEFITS SECTION
   =========================== */

.benefits-section {
    background-color: var(--muted);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.benefit-item {
    background-color: var(--card);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--accent);
}

.benefit-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--foreground);
}

.benefit-description {
    font-size: 14px;
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* ===========================
   CTA SECTION
   =========================== */

.cta-section {
    background-color: var(--card);
}

.cta-card {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    padding: 60px;
    border-radius: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.cta-content {
    display: flex;
    flex-direction: column;
}

.cta-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.cta-description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 24px;
    opacity: 0.9;
}

.cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .cta-card {
        grid-template-columns: 1fr;
        padding: 40px;
        gap: 24px;
    }

    .cta-image {
        display: none;
    }

    .cta-title {
        font-size: 28px;
    }
}

/* ===========================
   QUOTATION SECTION
   =========================== */

.quotation-section {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

.quotation-section .section-header {
    color: var(--secondary-foreground);
}

.quotation-section .section-title {
    color: var(--secondary-foreground);
}

.quotation-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.quotation-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.form-card {
    background-color: var(--card);
    color: var(--foreground);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--foreground);
}

.form-subtitle {
    font-size: 14px;
    color: var(--muted-foreground);
    margin-bottom: 24px;
}

.form-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--foreground);
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--foreground);
}

.required {
    color: #dc3545;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: var(--card);
    color: var(--foreground);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}

.form-checkbox input {
    margin-top: 4px;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 14px;
    color: var(--foreground);
    cursor: pointer;
    margin: 0;
}

/* Contact Info */
.contact-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.contact-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--secondary-foreground);
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background-color: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-foreground);
    flex-shrink: 0;
}

.contact-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--secondary-foreground);
}

.contact-value {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: var(--accent);
}

@media (max-width: 1024px) {
    .quotation-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 24px;
    }

    .contact-card {
        padding: 24px;
    }
}

/* ===========================
   FOOTER
   =========================== */

.footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 60px 0 20px;
    border-top: 1px solid var(--border);
}

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

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--accent);
}

.footer-text {
    font-size: 14px;
    color: #cccccc;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-copyright {
    font-size: 12px;
    color: #999999;
}

/* ===========================
   UTILITIES
   =========================== */

.w-full {
    width: 100%;
}

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

/* ===========================
   PÁGINA NOSOTROS
   =========================== */

.nosotros-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.nosotros-hero-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.nosotros-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.7) 0%, rgba(42, 42, 42, 0.6) 100%);
    z-index: 1;
}

.nosotros-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.nosotros-hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nosotros-hero-description {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Statistics Section */
.statistics-section {
    background: linear-gradient(135deg, var(--accent) 0%, #ff8800 100%);
    color: white;
    padding: 60px 0;
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.9;
}

/* History Section */
.history-section {
    background-color: var(--card);
}

.history-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.history-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.history-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--muted-foreground);
    margin-bottom: 16px;
}

/* Mission & Vision */
.mission-vision-section {
    background-color: var(--muted);
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.mission-vision-card {
    background-color: var(--card);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.mission-vision-card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
}

.mv-icon {
    width: 80px;
    height: 80px;
    background-color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
}

.mv-icon svg {
    width: 40px;
    height: 40px;
}

.mv-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--foreground);
}

.mv-text {
    font-size: 16px;
    color: var(--muted-foreground);
    line-height: 1.8;
}

/* Values Section */
.values-section {
    background-color: var(--card);
}

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

.value-item {
    background-color: var(--muted);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.value-item:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.value-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: var(--accent);
}

.value-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--foreground);
}

.value-description {
    font-size: 14px;
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* Quotation Hero */
.quotation-hero {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary) 0%, #1a1a1a 100%);
    color: white;
    overflow: hidden;
}

.quotation-hero-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="40" cy="40" r="1" fill="white" opacity="0.1"/><circle cx="60" cy="60" r="1" fill="white" opacity="0.1"/></svg>');
    opacity: 0.5;
}

.quotation-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
}

.quotation-hero-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.quotation-hero-description {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.9;
}

/* Benefits Box */
.benefits-box {
    background-color: var(--accent);
    color: var(--accent-foreground);
    padding: 24px;
    border-radius: 12px;
    margin-top: 24px;
}

.benefits-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.benefits-list li::before {
    content: '✓';
    font-weight: 700;
    font-size: 16px;
}

@media (max-width: 768px) {
    .nosotros-hero-title {
        font-size: 32px;
    }

    .history-content {
        grid-template-columns: 1fr;
    }

    .statistics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stat-number {
        font-size: 36px;
    }

    .quotation-hero-title {
        font-size: 28px;
    }
}

/* ===========================
   ANIMATIONS
   =========================== */

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero {
    animation: slideInLeft 0.8s ease-out;
}
