/* ===================================
   VARIABLES Y CONFIGURACIÓN GLOBAL
   =================================== */

:root {
    /* Colores principales */
    --color-lavanda: #E0D1E7;
    --color-misty-rose: #FFE9E1;
    --color-cultured: #FAF4F2;
    --color-rich-black: #000607;
    --color-white: #FFFFFF;

    /* Colores adicionales */
    --color-accent: #C8B1E4;
    --color-gold: #D4AF37;
    --color-whatsapp: #25D366;

    /* Tipografía */
    --font-primary: 'Montserrat', sans-serif;
    --font-display: 'Playfair Display', serif;

    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;

    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 6, 7, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 6, 7, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 6, 7, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 6, 7, 0.15);

    /* Transiciones */
    --transition-base: all 0.3s ease;
    --transition-slow: all 0.5s ease;

    /* Bordes */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

/* ===================================
   RESET Y ESTILOS BASE
   =================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--color-rich-black);
    background-color: var(--color-cultured);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===================================
   UTILIDADES
   =================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: var(--color-rich-black);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: rgba(0, 6, 7, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   BOTONES
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 0.938rem;
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-lavanda) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-rich-black);
    border: 2px solid var(--color-lavanda);
}

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

.btn-whatsapp {
    background: var(--color-white);
    color: var(--color-accent);
    border: 2px solid var(--color-lavanda);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-lavanda) 100%);
    color: var(--color-white);
    border-color: transparent;
}

.btn-whatsapp i {
    font-size: 1.2rem;
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1rem;
}

/* ===================================
   NAVEGACIÓN
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(250, 244, 242, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-image {
    height: 50px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-rich-black);
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-link {
    font-weight: 500;
    color: var(--color-rich-black);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition-base);
}

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

.btn-nav {
    padding: 0.625rem 1.5rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-rich-black);
    border-radius: 3px;
    transition: var(--transition-base);
}

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

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(224, 209, 231, 0.85) 0%,
        rgba(255, 233, 225, 0.75) 50%,
        rgba(250, 244, 242, 0.85) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero-text {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 600;
    color: var(--color-rich-black);
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}

.brand-name {
    display: block;
    background: linear-gradient(135deg, var(--color-accent) 0%, #9B7CB6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 500;
    color: var(--color-rich-black);
    margin-bottom: var(--spacing-sm);
    font-style: italic;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: rgba(0, 6, 7, 0.8);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.hero-ctas {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.hero-scroll a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    color: var(--color-accent);
    font-size: 1.25rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===================================
   ABOUT SECTION
   =================================== */

.about {
    padding-top: 300px;
    padding-bottom: var(--spacing-xxl);
    background: var(--color-white);
}

.about-intro {
    font-size: 1.25rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    color: rgba(0, 6, 7, 0.8);
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.feature-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--color-cultured);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

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

.feature-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent), var(--color-lavanda));
    color: var(--color-white);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
}

.feature-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-rich-black);
}

.feature-content p {
    color: rgba(0, 6, 7, 0.7);
    line-height: 1.6;
}

/* ===================================
   SERVICES SECTION
   =================================== */

.services {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(180deg, var(--color-cultured) 0%, var(--color-white) 100%);
}

.services-categories {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.service-category {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.service-category:hover {
    box-shadow: var(--shadow-xl);
}

.category-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-lavanda);
}

.category-header h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-rich-black);
    margin-bottom: var(--spacing-sm);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.category-header p {
    font-size: 1.125rem;
    color: rgba(0, 6, 7, 0.7);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background: var(--color-cultured);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-base);
    cursor: pointer;
}

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

.service-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--color-lavanda), var(--color-misty-rose));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: var(--spacing-md);
}

.service-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-rich-black);
    margin-bottom: var(--spacing-xs);
}

.service-content p {
    font-size: 0.938rem;
    color: rgba(0, 6, 7, 0.7);
    line-height: 1.6;
}

/* ===================================
   TECHNOLOGY SECTION
   =================================== */

.technology {
    padding: var(--spacing-xxl) 0;
    background: var(--color-white);
}

.technology-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.technology-text p {
    font-size: 1.125rem;
    color: rgba(0, 6, 7, 0.7);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.tech-highlights {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.tech-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.tech-item i {
    color: var(--color-accent);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.tech-item span {
    font-size: 1rem;
    color: rgba(0, 6, 7, 0.8);
    line-height: 1.6;
}

.technology-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.technology-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===================================
   TESTIMONIALS SECTION
   =================================== */

.testimonials {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(180deg, var(--color-cultured) 0%, var(--color-lavanda) 100%);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

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

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: var(--spacing-md);
}

.testimonial-rating i {
    color: var(--color-gold);
    font-size: 1.125rem;
}

.testimonial-text {
    font-size: 1rem;
    font-style: italic;
    color: rgba(0, 6, 7, 0.8);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-lavanda);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-lavanda), var(--color-misty-rose));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--color-white);
    font-size: 1.25rem;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-rich-black);
}

.author-info p {
    font-size: 0.875rem;
    color: rgba(0, 6, 7, 0.6);
}

/* ===================================
   CONTACT SECTION
   =================================== */

.contact {
    padding: var(--spacing-xxl) 0;
    background: var(--color-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-card {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--color-cultured);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent), var(--color-lavanda));
    color: var(--color-white);
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
}

.contact-details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-rich-black);
}

.contact-details p {
    font-size: 0.938rem;
    color: rgba(0, 6, 7, 0.7);
    line-height: 1.6;
}

.contact-details a {
    color: var(--color-accent);
    font-weight: 500;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-link {
    display: inline-block;
    margin-top: var(--spacing-xs);
    font-size: 0.875rem;
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 400px;
}

.social-media {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--color-cultured);
    border-radius: var(--radius-lg);
}

.social-media h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--color-rich-black);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-accent);
    font-size: 1.5rem;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

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

.social-link.facebook:hover {
    background: #1877F2;
    color: var(--color-white);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF);
    color: var(--color-white);
}

.social-link.tiktok:hover {
    background: #000000;
    color: var(--color-white);
}

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

.footer {
    background: var(--color-rich-black);
    color: var(--color-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

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

.footer-brand .logo {
    margin-bottom: var(--spacing-md);
}

.logo-image-footer {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-brand .logo-text,
.footer-brand .logo-subtitle {
    color: var(--color-white);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-base);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-lavanda);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-sm);
}

.footer-contact i {
    color: var(--color-lavanda);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.footer-credits {
    margin-top: var(--spacing-sm);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7) !important;
}

.abp-link {
    color: var(--color-lavanda) !important;
    font-weight: 700;
    transition: var(--transition-base);
    text-decoration: none;
}

.abp-link:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* ===================================
   WHATSAPP FLOAT BUTTON
   =================================== */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--color-whatsapp);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-xl);
    z-index: 999;
    transition: var(--transition-base);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #1da851;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

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

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

    .contact-map {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        height: calc(100vh - 70px);
        background: var(--color-cultured);
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-xl);
        transition: var(--transition-base);
        align-items: flex-start;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

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

    .about-features {
        grid-template-columns: 1fr;
    }

    .testimonials-slider {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links ul {
        align-items: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    .hero {
        min-height: 80vh;
    }

    .service-category {
        padding: var(--spacing-md);
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin: 0 auto;
    }
}
