@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --accent: #eab308;
    --accent-hover: #ca8a04;
    --text-main: #000000;
    --text-muted: #374151;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-inter);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-outfit);
    font-weight: 700;
    color: var(--text-main);
}

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

/* --- MICRO-ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes pulse-light {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 12px rgba(37, 99, 235, 0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.animate-fade-up, .animate-slide-left, .animate-slide-right, .animate-scale-in {
    opacity: 0;
}

.animate-fade-up.in-view {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-slide-left.in-view {
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slide-right.in-view {
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-scale-in.in-view {
    animation: scaleIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hover-shake:hover {
    animation: shake 0.3s ease-in-out;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Animación de entrada secuencial para elementos del slider */
.slide .slide-title,
.slide .slide-desc,
.slide .slide-actions,
.slide .slide-tag {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide.active .slide-tag {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.slide.active .slide-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.slide.active .slide-desc {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

.slide.active .slide-actions {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.0s;
}

/* --- TOP BAR & NAVIGATION --- */
.top-bar {
    background-color: var(--primary);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    font-size: 0.875rem;
    font-weight: 500;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact-info {
    display: flex;
    gap: 20px;
}

.top-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
}

.top-contact-item span {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    color: var(--white);
    font-size: 1.1rem;
    opacity: 0.8;
}

.social-icon:hover {
    color: var(--accent);
    opacity: 1;
    transform: translateY(-2px);
}

/* NAVBAR */
header {
    background-color: var(--bg-card);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

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

.logo-icon {
    font-size: 1.8rem;
    color: var(--primary);
    animation: float 4s ease-in-out infinite;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary);
}

.logo-text span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-item a {
    font-weight: 600;
    color: var(--text-main);
    position: relative;
    padding: 8px 0;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

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

.nav-item.active a {
    color: var(--primary);
}

.nav-cta {
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.nav-cta:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

/* --- BANNER DE PÁGINA (HERO INTRO) --- */
.page-intro {
    background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.page-intro::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37,99,235,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.page-intro h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.page-intro p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* --- SLIDER DE BIENVENIDA (INDEX) --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
    background-color: var(--primary-light);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9) contrast(0.95);
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.65) 20%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 20px;
}

.slide-tag {
    background-color: var(--accent);
    color: var(--text-main);
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 15px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-sm);
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.slide-title span {
    color: var(--accent);
}

.slide-desc {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: #f1f5f9;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.slide-actions {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-inter);
    border: none;
}

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

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

.btn-accent {
    background-color: var(--accent);
    color: var(--text-main);
    box-shadow: var(--shadow-md);
}

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

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

.btn-secondary:hover {
    background-color: #f8fafc;
    color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* Controles del slider */
.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.slider-prev:hover, .slider-next:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* --- SECCIÓN 24 HORAS & SERVICIOS --- */
.section {
    padding: 80px 0;
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-tag {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 15px;
}

.section-desc {
    color: var(--text-muted);
}

/* Cuadrícula de Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.2);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 25px;
    transition: var(--transition);
}

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

.service-card-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.service-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.service-card-link i {
    transition: var(--transition);
}

.service-card:hover .service-card-link i {
    transform: translateX(5px);
}

/* Banner de Emergencia 24 Horas */
.emergency-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    color: var(--white);
    border-radius: 24px;
    padding: 50px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.emergency-banner::after {
    content: '';
    position: absolute;
    right: -10%;
    bottom: -50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    border-radius: 50%;
}

.emergency-content h3 {
    font-size: 2.25rem;
    color: var(--white);
    margin-bottom: 10px;
}

.emergency-content p {
    font-size: 1.1rem;
    color: #ffffff;
    opacity: 1;
    max-width: 600px;
}

.emergency-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    z-index: 2;
}

.emergency-tel {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: var(--font-outfit);
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.emergency-tel:hover {
    color: var(--white);
    transform: scale(1.05);
}

/* --- NOSOTROS PAGE SPECIFICS --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img-container {
    position: relative;
}

.about-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary);
    color: var(--white);
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    font-family: var(--font-outfit);
    font-weight: 800;
    text-align: center;
}

.about-badge span {
    display: block;
    font-size: 2rem;
    color: #ffffff;
    line-height: 1;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.value-item {
    text-align: center;
    padding: 25px 15px;
    background-color: var(--primary-light);
    border-radius: 15px;
}

.value-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.value-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.value-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- GALERIA SECCION --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    position: relative;
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(37, 99, 235, 0.8) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    color: var(--white);
    font-size: 1.1rem;
    font-family: var(--font-outfit);
}

/* --- CONTACTO PAGE SPECIFICS --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 50px;
}

.contact-info-panel {
    background-color: var(--primary-light);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.contact-info-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-info-item {
    display: flex;
    gap: 15px;
}

.contact-info-icon {
    width: 45px;
    height: 45px;
    background-color: var(--white);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.contact-info-content h4 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.contact-info-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-form-container {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-inter);
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* --- WHATSAPP FLOATING BUTTON --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 90;
    animation: pulse-light 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

/* --- CHAT BOT IA FILTRADOR --- */
.ai-chat-bubble {
    position: fixed;
    bottom: 110px;
    right: 30px;
    background-color: var(--primary);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 90;
    cursor: pointer;
    transition: var(--transition);
}

.ai-chat-bubble:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--primary-hover);
}

.ai-chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent);
    color: var(--text-main);
    font-size: 0.75rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-chat-window {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 360px;
    height: 500px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 95;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.ai-chat-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chat-agent {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-chat-avatar {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 2px solid var(--accent);
}

.ai-chat-status h4 {
    font-size: 1rem;
    color: var(--white);
}

.ai-chat-status p {
    font-size: 0.75rem;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ai-chat-status p::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
}

.ai-chat-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
}

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

.ai-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: var(--bg-main);
}

.chat-msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-msg.bot {
    background-color: var(--white);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 3px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.chat-msg.user {
    background-color: var(--primary-light);
    color: var(--primary);
    align-self: flex-end;
    border-bottom-right-radius: 3px;
    font-weight: 600;
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.chat-option-btn {
    background-color: var(--white);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 12px;
    border-radius: 8px;
    text-align: left;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: var(--font-inter);
    font-weight: 600;
    transition: var(--transition);
}

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

.ai-chat-input-area {
    padding: 15px 20px;
    background-color: var(--white);
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
}

.ai-chat-input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px 15px;
    outline: none;
    font-family: var(--font-inter);
    font-size: 0.9rem;
}

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

.ai-chat-send {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
}

.ai-chat-send:hover {
    background-color: var(--primary-hover);
}

/* --- cPANEL DASHBOARD --- */
.dashboard-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    background-color: var(--bg-main);
}

.sidebar {
    background-color: var(--white);
    border-right: 1px solid var(--border);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    padding-left: 10px;
}

.sidebar-logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 10px;
    font-weight: 600;
    color: var(--text-muted);
}

.sidebar-item a:hover,
.sidebar-item.active a {
    background-color: var(--primary-light);
    color: var(--primary);
}

.dashboard-main {
    padding: 40px;
    overflow-y: auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-title h2 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.dashboard-title p {
    color: var(--text-muted);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-info h5 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat-change {
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 5px;
}

.stat-change.up { color: #22c55e; }
.stat-change.down { color: #ef4444; }

.stat-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* Charts & SEO grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 30px;
    margin-bottom: 40px;
}

.chart-card, .seo-card, .table-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.2rem;
}

/* SEO rankings */
.seo-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.seo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.seo-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.keyword-info h6 {
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.keyword-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.rank-badge {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
}

.rank-top3 {
    background-color: #fef08a;
    color: #a16207;
}

.rank-top10 {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Data Table */
.data-table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    padding: 15px;
    border-bottom: 2px solid var(--border);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-sent {
    background-color: #dcfce7;
    color: #15803d;
}

.status-pending {
    background-color: #fef9c3;
    color: #a16207;
}

/* Footer cpanel info */
.dashboard-footer {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

/* --- FOOTER MAIN --- */
.main-footer {
    background-color: var(--white);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

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

.footer-col h4 {
    font-size: 1.15rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 15px;
    margin-bottom: 20px;
}

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

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-contact-item i {
    color: var(--primary);
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 992px) {
    .navbar {
        padding: 15px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-card);
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        padding: 20px;
        gap: 15px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-cta {
        display: inline-block;
        text-align: center;
        width: 100%;
    }
    
    .hero-slider {
        height: 580px;
    }
    
    .slide-title {
        font-size: 2.5rem;
    }
    
    .slide-desc {
        font-size: 1.1rem;
    }
    
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .emergency-banner {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }
    
    .emergency-actions {
        flex-direction: column;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .top-bar {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-slider {
        height: 500px;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-desc {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .slide-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-chat-window {
        width: calc(100% - 40px);
        bottom: 90px;
        right: 20px;
    }
    
    .ai-chat-bubble, .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .ai-chat-bubble {
        bottom: 95px;
    }
    
    .whatsapp-float {
        bottom: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
