/* ----------------------------------------------------
   DESIGN SYSTEM & VARIABLES
---------------------------------------------------- */
:root {
    /* Color Palette */
    --primary-color: #1A3A8C;
    --accent-color: #E87C27;
    --detail-color: #E87C27;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-dark: #0A142F;
    --bg-dark-card: #121F42;
    
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-light: #F1F5F9;
    --text-muted: #94A3B8;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #1A3A8C 0%, #0D2054 100%);
    --accent-gradient: linear-gradient(135deg, #E87C27 0%, #C96213 100%);
    --gold-gradient: linear-gradient(135deg, #E87C27 0%, #C96213 100%);
    --primary-glow: rgba(26, 58, 140, 0.15);
    --accent-glow: rgba(232, 124, 39, 0.15);
    
    --border-color: #E2E8F0;
    --border-light: rgba(255, 255, 255, 0.08);
    
    /* Typography */
    --font-title: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;
    
    /* Borders & Spacing */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----------------------------------------------------
   RESET & BASE STYLES
---------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-white);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.02em; /* Spaced kerning for professional look */
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

li {
    list-style: none;
}

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

/* ----------------------------------------------------
   LAYOUT & REUSABLE COMPONENTS
---------------------------------------------------- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-heading {
    margin-bottom: 3.5rem;
    text-align: center;
}

.section-pre {
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em; /* Expanded spacing for editorial look */
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.6rem;
}

.section-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.01em; /* Less compressed, more professional spacing */
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em; /* Slightly spaced button texts */
    cursor: pointer;
    border: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--bg-white);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 124, 39, 0.3);
}

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

.btn-secondary:hover {
    background: rgba(26, 58, 140, 0.05);
    transform: translateY(-2px);
}

.btn-whatsapp-header {
    background: #25D366;
    color: var(--bg-white);
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp-header:hover {
    background: #20ba59;
    transform: scale(1.03);
}

/* Badges */
.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    background: rgba(26, 58, 140, 0.08);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

/* ----------------------------------------------------
   HEADER & NAVIGATION
---------------------------------------------------- */
.header {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 68px;
    width: auto;
    object-fit: contain;
    display: block;
    border-radius: 10px;
    transition: transform var(--transition-fast);
}

.brand-logo:hover {
    transform: scale(1.02);
}

.nav-list {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em; /* Premium spaced menu tabs */
    color: var(--text-secondary);
    position: relative;
    padding: 0.4rem 0;
    transition: color var(--transition-fast);
}

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

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ----------------------------------------------------
   HERO SECTION
---------------------------------------------------- */
.hero-section {
    padding: 140px 0 80px 0;
    background: radial-gradient(circle at 80% 20%, rgba(10, 20, 47, 0.05) 0%, var(--bg-white) 60%);
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-family: var(--font-title);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0.01em; /* Open, premium serif kerning */
    color: var(--primary-color);
    margin-bottom: 1.2rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    letter-spacing: 0.02em; /* Spaced out body copy */
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.stat-num {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-color);
}

.stat-lbl {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.03em; /* Spaced statistics labels */
}

.divider {
    width: 1px;
    height: 40px;
    background-color: var(--border-color);
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(232, 124, 39, 0.1) 0%, rgba(255,255,255,0) 70%);
    filter: blur(30px);
    z-index: 1;
    animation: floatGlow 6s ease-in-out infinite alternate;
}

.hero-frame {
    width: 100%;
    max-width: 450px; /* Enlarge slightly */
    height: 410px;    /* Enlarge slightly */
    border-radius: var(--border-radius-lg);
    box-shadow: 0 50px 25px -25px rgba(10, 20, 47, 0.3); /* Underneath & backwards shadow projection only */
    position: relative;
    z-index: 2;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

/* Rotating Conic-Gradient Border */
.hero-frame::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        var(--accent-color) 0deg,
        var(--primary-color) 90deg,
        var(--accent-color) 180deg,
        var(--primary-color) 270deg,
        var(--accent-color) 360deg
    );
    animation: rotate-border 6s linear infinite;
    z-index: 0;
}

/* Inner frame directly attached to image (acts as a mask to leave a 4px border) */
.hero-frame-inner {
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border-radius: calc(var(--border-radius-lg) - 4px);
    overflow: hidden;
    z-index: 1;
    background: var(--bg-light);
}

.hero-image-container:hover .hero-frame {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 65px 30px -30px rgba(10, 20, 47, 0.35); /* Extended floating shadow on hover */
}

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


/* Hero Image Styling */
.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 20, 47, 0.05), rgba(255, 255, 255, 0.35));
    z-index: 2;
    pointer-events: none;
}

.hero-overlay-card {
    position: absolute;
    top: 25px;
    left: 25px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.8rem 1.2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 3;
    backdrop-filter: blur(4px);
}

.overlay-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.hero-overlay-card h4 {
    font-size: 0.85rem;
    font-weight: 700;
}

.hero-overlay-card p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ----------------------------------------------------
   ¿POR QUÉ ELEGIRNOS?
---------------------------------------------------- */
.why-us-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.why-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    border-color: var(--primary-color);
}

.why-icon-box {
    width: 55px;
    height: 55px;
    background: rgba(232, 124, 39, 0.1);
    color: var(--accent-color);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.why-card:hover .why-icon-box {
    background: var(--accent-gradient);
    color: var(--bg-white);
}

.why-card h3 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.why-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ----------------------------------------------------
   SERVICIOS
---------------------------------------------------- */
.services-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

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

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(10, 20, 47, 0.07);
    border-color: rgba(10, 20, 47, 0.15);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ----------------------------------------------------
   SOBRE NOSOTROS
---------------------------------------------------- */
.about-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.about-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: start;
}

.about-ruc {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(10, 20, 47, 0.06);
    color: var(--primary-color);
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-types {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2.5rem;
}

.about-types i {
    color: var(--accent-color);
    margin-right: 0.4rem;
}

.about-values h3 {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
}

.values-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.value-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.value-item i {
    color: var(--detail-color);
}

.about-vision-mission {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(10, 20, 47, 0.08);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
}

.about-card h3 {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ----------------------------------------------------
   NUESTRO EQUIPO
---------------------------------------------------- */
.team-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.team-intro {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.team-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.01);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.team-avatar {
    width: 180px;
    height: 180px;
    background: #FFFFFF;
    border: 3px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transition: transform var(--transition-smooth);
}

.team-card:hover .team-avatar {
    transform: scale(1.05);
}

.team-img-circle {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.team-card h3 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
}

.team-specialty {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 1.2rem;
}

.team-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ----------------------------------------------------
   FAMILIAS FELICES / TESTIMONIOS
---------------------------------------------------- */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

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

.testimonial-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.01);
    display: flex;
    flex-direction: column;
}

.quote-icon {
    font-size: 1.8rem;
    color: var(--detail-color);
    opacity: 0.6;
    margin-bottom: 1rem;
}

.testimonial-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.client-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-icon {
    width: 45px;
    height: 45px;
    background: rgba(232, 124, 39, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.client-profile h4 {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--primary-color);
}

.client-location {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.testimonials-cta {
    text-align: center;
    margin-top: 4rem;
}

.cta-motto {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 800;
    font-style: italic;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.social-followers-banner {
    display: inline-block;
    background: var(--primary-gradient);
    color: var(--bg-white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(10, 20, 47, 0.2);
    font-size: 1rem;
}

.social-followers-banner i {
    color: var(--detail-color);
    margin: 0 0.2rem;
}

.social-followers-banner strong {
    color: var(--detail-color);
}

/* ----------------------------------------------------
   CONTACTO / CTA FINAL
---------------------------------------------------- */
.contact-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: start;
}

.contact-intro-text {
    font-family: var(--font-title);
    font-size: 1.35rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.4;
}

.contact-phones h3, .contact-social-channels h3 {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
}

.contact-phones ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.contact-phones li a {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius-sm);
    width: 100%;
    max-width: 320px;
}

.contact-phones li a i {
    color: var(--accent-color);
}

.contact-phones li a:hover {
    border-color: var(--accent-color);
    background: var(--bg-white);
    box-shadow: 0 4px 12px rgba(232, 124, 39, 0.08);
}

.contact-social-channels p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 400px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--bg-white);
}

.social-btn.fb { background-color: #1877F2; }
.social-btn.tk { background-color: #000000; }
.social-btn.ig { background-color: #E1306C; }
.social-btn.wa { background-color: #25D366; }

.social-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.contact-form-box {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 3.5rem 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.contact-form-box h3 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-primary);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 20, 47, 0.08);
}

.form-group textarea {
    height: 120px;
    resize: none;
}

.btn-submit {
    width: 100%;
    background: var(--primary-gradient);
    color: var(--bg-white);
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 20, 47, 0.3);
}

.form-response {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
}

.form-response.success {
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid #25d366;
    color: #20ba59;
}

.form-response.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.hidden {
    display: none;
}

/* ----------------------------------------------------
   FOOTER
---------------------------------------------------- */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 5rem 0 0 0;
    border-top: 1px solid var(--border-light);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.footer-brand-logo {
    height: 60px;
    width: auto;
    display: block;
    border-radius: 10px;
    transition: transform var(--transition-fast);
}

.footer-brand-logo:hover {
    transform: scale(1.02);
}

.footer-legal {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.footer-ruc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.footer-location {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-location i {
    color: var(--accent-color);
    margin-right: 0.3rem;
}

.footer-links h4, .footer-socials h4 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--bg-white);
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links li {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links li i {
    color: var(--accent-color);
}

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

.social-icons a {
    width: 40px;
    height: 40px;
    background: var(--bg-dark-card);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.social-icons a:hover {
    color: var(--bg-white);
    border-color: var(--accent-color);
    background: var(--accent-gradient);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ----------------------------------------------------
   DEPARTMENTS SECTION
---------------------------------------------------- */
.departments-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.dept-card {
    position: relative;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.dept-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    border-color: var(--primary-color);
}

.dept-status {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 0.4rem 1rem;
    border-radius: var(--border-radius-sm);
    color: var(--bg-white);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
}

.label-venta {
    background: var(--accent-gradient);
}

.label-alquiler {
    background: var(--primary-gradient);
}

.dept-img-placeholder {
    height: 200px;
    background: linear-gradient(135deg, rgba(26, 58, 140, 0.05) 0%, rgba(232, 124, 39, 0.05) 100%);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--primary-color);
    opacity: 0.6;
    transition: background var(--transition-smooth), opacity var(--transition-smooth);
}

.dept-card:hover .dept-img-placeholder {
    background: linear-gradient(135deg, rgba(26, 58, 140, 0.1) 0%, rgba(232, 124, 39, 0.1) 100%);
    opacity: 0.8;
}

.dept-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.dept-info h3 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.dept-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.dept-features {
    display: flex;
    gap: 1.2rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 0;
    margin-bottom: 1.5rem;
}

.dept-features span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dept-features i {
    color: var(--accent-color);
}

.dept-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dept-price {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-color);
}

.dept-footer .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

/* ----------------------------------------------------
   ANIMATIONS
---------------------------------------------------- */
@keyframes floatGlow {
    0% {
        transform: translateY(0) scale(1);
    }
    100% {
        transform: translateY(-15px) scale(1.05);
    }
}

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

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

/* Entry Load Animations (Staggered Hero) */
.hero-content .badge-tag {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content h1 {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.hero-subtitle {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-actions {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
}

.hero-stats {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.hero-image-container {
    opacity: 0;
    animation: fadeIn 1.2s ease 0.3s forwards;
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------------------------------------------
   RESPONSIVE DESIGN (MEDIA QUERIES)
---------------------------------------------------- */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content h1 {
        font-size: 2.85rem;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 260px;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        border-left: 1px solid var(--border-color);
        padding: 3rem 2rem;
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
        transition: right var(--transition-smooth);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 2rem;
    }
    
    .nav-link {
        font-size: 1.05rem;
    }
    
    .header-phone-text {
        display: none;
    }
    
    .btn-whatsapp-header {
        padding: 0.6rem;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-whatsapp-header i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .divider {
        display: none;
    }
    
    .contact-form-box {
        padding: 2rem 1.5rem;
    }
}

/* Floating WhatsApp Widget */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFFFFF;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    background-color: #20ba59;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 26px;
    }
}

/* Real Image Cover for Department Cards */
.duplex-card {
    cursor: pointer;
}

.dept-img-container {
    height: 200px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.dept-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.dept-card:hover .dept-card-img {
    transform: scale(1.08);
}

.dept-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 58, 140, 0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-fast);
    pointer-events: none;
}

.dept-card:hover .dept-img-overlay {
    opacity: 1;
}

.dept-img-overlay span {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transform: translateY(10px);
    transition: transform var(--transition-smooth);
}

.dept-card:hover .dept-img-overlay span {
    transform: translateY(0);
}

.dept-card-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-gallery {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.btn-gallery:hover {
    background: rgba(26, 58, 140, 0.05);
    border-color: var(--primary-color);
}

/* ----------------------------------------------------
   GALLERY MODAL STYLES
   ---------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 20, 47, 0.96); /* Dark navy translucent overlay */
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Make overlay unclickable when hidden */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.open .modal-container {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(10, 20, 47, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--bg-white);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10002;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.modal-close-btn:hover {
    transform: scale(1.1);
    background-color: var(--accent-color);
}

.modal-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.gallery-slider-container {
    position: relative;
    height: 500px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#gallery-active-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-active-img-changing {
    opacity: 0;
    transform: scale(0.98);
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 20, 47, 0.75);
    color: var(--bg-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.gallery-nav-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-50%) scale(1.08);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.gallery-info-bar {
    background: var(--bg-white);
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.gallery-caption-container {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex-grow: 1;
}

#gallery-image-title {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
}

#gallery-image-counter {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gallery-actions-bar {
    flex-shrink: 0;
}

.gallery-actions-bar .btn {
    padding: 0.7rem 1.4rem;
    font-size: 0.9rem;
}

/* Modal Responsive Sizing */
@media (max-width: 768px) {
    .gallery-slider-container {
        height: 350px;
    }
    
    .gallery-info-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 1.2rem;
        gap: 1.2rem;
        text-align: center;
    }
    
    .gallery-actions-bar .btn {
        width: 100%;
    }
    
    .gallery-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
}

@media (max-width: 480px) {
    .gallery-slider-container {
        height: 260px;
    }
    .modal-container {
        width: 95%;
    }
}

/* Gallery Thumbnails Styles */
.gallery-thumbnails {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: #0D162D;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
    width: 100%;
}

.gallery-thumb-item {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    transition: opacity var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.gallery-thumb-item:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.gallery-thumb-item.active {
    opacity: 1;
    border-color: var(--accent-color);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .gallery-thumbnails {
        padding: 0.8rem;
        gap: 0.5rem;
    }
    
    .gallery-thumb-item {
        width: 55px;
        height: 40px;
    }
}

/* ----------------------------------------------------
   INFINITE TESTIMONIALS CAROUSEL
---------------------------------------------------- */
.infinite-carousel-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 3rem 0;
    background: transparent;
    cursor: default;
    margin-bottom: 4rem;
}

.infinite-carousel-container::before,
.infinite-carousel-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.infinite-carousel-container::before {
    left: 0;
    background: linear-gradient(to right, #F8FAFC, rgba(248, 250, 252, 0));
}

.infinite-carousel-container::after {
    right: 0;
    background: linear-gradient(to left, #F8FAFC, rgba(248, 250, 252, 0));
}

.infinite-carousel-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 35s linear infinite;
}

.infinite-carousel-slide {
    width: 280px;
    height: 380px;
    margin-right: 24px;
    flex-shrink: 0;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.infinite-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.infinite-carousel-slide:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(232, 124, 39, 0.15);
    border-color: var(--accent-color);
}

.infinite-carousel-slide:hover img {
    transform: scale(1.05);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .infinite-carousel-container::before,
    .infinite-carousel-container::after {
        width: 60px;
    }
    
    .infinite-carousel-slide {
        width: 200px;
        height: 280px;
        margin-right: 16px;
    }
}

/* ──────────────────────────────────────────────────
   AI CHAT WIDGET
   ────────────────────────────────────────────────── */
#ai-chat-widget {
    position: fixed;
    bottom: 105px;
    right: 30px;
    z-index: 9999;
    font-family: var(--font-body);
}

#ai-chat-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #FFFFFF;
    border: none;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

#ai-chat-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(232, 124, 39, 0.3);
}

#ai-chat-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 360px;
    height: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(26, 58, 140, 0.15);
    border-radius: var(--border-radius-md);
    box-shadow: 0 15px 35px rgba(10, 20, 47, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-smooth);
}

#ai-chat-widget.ai-chat-open #ai-chat-window {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

#ai-chat-header {
    background: var(--primary-gradient);
    color: #FFFFFF;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.chat-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    object-fit: cover;
}

#ai-chat-header h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

#ai-chat-header span {
    font-size: 0.75rem;
    opacity: 0.85;
    display: block;
}

#ai-chat-close {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

#ai-chat-close:hover {
    opacity: 1;
}

#ai-chat-messages {
    flex: 1;
    padding: 1.2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #F8FAFC;
}

.chat-message {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-message.bot {
    background: #FFFFFF;
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(26, 58, 140, 0.05);
}

.chat-message.user {
    background: var(--primary-color);
    color: #FFFFFF;
    align-self: flex-end;
    border-bottom-right-radius: 0;
    box-shadow: 0 2px 6px rgba(26, 58, 140, 0.1);
}

.chat-message.typing {
    background: #FFFFFF;
    color: var(--text-muted);
    align-self: flex-start;
    border-bottom-left-radius: 0;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(26, 58, 140, 0.05);
}

/* Typing dot animation */
.typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.typing-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

#ai-chat-input-container {
    padding: 0.8rem 1rem;
    background: #FFFFFF;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.8rem;
}

#ai-chat-input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition-fast);
}

#ai-chat-input:focus {
    border-color: var(--primary-color);
}

#ai-chat-send {
    background: var(--accent-gradient);
    color: #FFFFFF;
    border: none;
    border-radius: var(--border-radius-sm);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

#ai-chat-send:hover {
    transform: scale(1.05);
}

/* Media Queries for Mobile Responsive Chat */
@media (max-width: 768px) {
    #ai-chat-widget {
        bottom: 80px;
        right: 20px;
    }
    #ai-chat-trigger {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    #ai-chat-window {
        width: calc(100vw - 40px);
        height: 420px;
        bottom: 65px;
    }
}
