@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
    --primary-navy: #0a192f;
    --primary-blue: #112240;
    --accent-teal: #00c9b1;
    --accent-gold: #64ffda;
    --text-dark: #0a192f;
    --text-light: #8892b0;
    --text-white: #e6f1ff;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e1e8ed;
    --shadow-sm: 0 2px 8px rgba(10, 25, 47, 0.08);
    --shadow-md: 0 4px 16px rgba(10, 25, 47, 0.12);
    --shadow-lg: 0 8px 32px rgba(10, 25, 47, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.875rem;
    margin-left: 50px;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    width: 50%;
    margin: 0 auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    color: black;
}

/* Header */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.header-content img {
    margin-left: -120px;
    margin-top: -0px;
}

.main-nav li {
    font-size: 50px;
}


.main-nav {
    font-size: 20px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 0.75rem;
    /* font-weight: 700; */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-navy);
}

.logo-accent {
    color: var(--accent-teal);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    width: 600px;
    /* font-size: 3.5rem; */
    font-weight: 900;
    margin-top: -40px;
}

.main-nav a {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
    color: var(--text-dark);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-teal);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-teal);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--bg-white);
    padding: 0.875rem 1.75rem;
    border-radius: var(--border-radius-md);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

/* Sections */
.section {
    padding: 4rem 0;
    border-bottom: 10px solid black;
    /* margin-bottom: 0px; */
    padding-bottom: 30px;
}

.section-alt {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-teal);
    border-radius: 3px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 1rem auto 0;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
    color: var(--text-white);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius-md);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-teal) 0%, #00a896 100%);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(0, 201, 177, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 201, 177, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-teal);
    border: 2px solid var(--accent-teal);
}

.btn-secondary:hover {
    background-color: var(--accent-teal);
    color: var(--bg-white);
}

/* Projects - ESTILO COMPLETO CORREGIDO */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.project-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(10, 25, 47, 0.9) 0%, rgba(17, 34, 64, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-view-btn {
    color: var(--bg-white);
    font-weight: 600;
    font-size: 1.125rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-teal) 0%, #00a896 100%);
    border-radius: var(--border-radius-md);
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.project-content {
    padding: 2rem;
}

.project-category {
    display: inline-block;
    background-color: rgba(0, 201, 177, 0.1);
    color: var(--accent-teal);
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.project-description {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.project-link {
    color: var(--accent-teal);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-size: 0.95rem;
}

.project-client {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-teal);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-teal);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.service-price {
    font-weight: 700;
    color: var(--accent-teal);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: block;
}


.modal-description{
    text-align: justify;
}


/* Footer */
.footer {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    color: #096cea;
    padding: 2rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
   /* margin-bottom: 3rem;*/
    color: black;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.footer img {
    margin-left: 20px;
}

.hero-footer {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
    color: #ffffff;
    /* padding: 3rem 0; */
    /* position: relative; */
    overflow: hidden;
    margin-top: 20px;
    padding-top: 10px;
    /* margin: 0 auto; */
    padding-left: 180px;
    height: 50px;
}

.container-footer {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    color: rgb(255, 255, 255);
}

.hero-subtitle-footer {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: white;
}


.footer-description {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    color: green;
}

.footer-col h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #35a93f;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-teal);
}

.footer-links {
    list-style: none;
    color: black;
}

.footer-links li {
    margin-bottom: 0.875rem;
}

.footer-links a {
    color: black;
    opacity: 0.8;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-teal);
    opacity: 1;
    padding-left: 5px;
}

.office-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.office-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.office-city {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000000;
}

.office-address,
.office-phone,
.office-email {
    color: #000000;
    opacity: 0.8;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    display: block;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 201, 177, 0.05) 0%, rgba(100, 255, 218, 0.05) 100%);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0, 201, 177, 0.1);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(0, 201, 177, 0.1) 0%, rgba(100, 255, 218, 0.1) 100%);
    border-color: var(--accent-teal);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-teal);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

.footer-col {
    width: 250px;
    color: black;
}




/* ========================================
   CORRECCIÓN WHATSAPP WIDGET - FUNCIONALIDAD 100%
   ======================================== */

/* Estado minimizado: solo muestra el círculo verde */
.whatsapp-widget.minimized {
    width: 70px !important;
    height: 70px !important;
    border-radius: 50% !important;
    bottom: 30px !important;
    right: 30px !important;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7) !important;
    animation: pulse 2s infinite !important;
    cursor: pointer !important;
    position: fixed !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;

}

/* Ocultar elementos internos cuando está minimizado */
.whatsapp-widget.minimized .whatsapp-widget-body,
.whatsapp-widget.minimized .whatsapp-minimize,
.whatsapp-widget.minimized .whatsapp-info,
.whatsapp-widget.minimized .whatsapp-status,
.whatsapp-widget.minimized .whatsapp-footer {
    display: none !important;
}

/* Mostrar solo el avatar cuando está minimizado */
.whatsapp-widget.minimized .whatsapp-avatar {
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    background-image: url(img/logow.png);
}

/* Header con azul marino (NO negro) */
.whatsapp-widget-header {
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%) !important;
    /* Azul marino */
    color: #e6f1ff !important;
}

/* Badge de alerta visible */
.whatsapp-alert {
    display: none !important;
    position: absolute !important;
    top: -6px !important;
    right: -6px !important;
    width: 22px !important;
    height: 22px !important;
    background: #ff4d4d !important;
    border-radius: 50% !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.75rem !important;
    font-weight: bold !important;
    color: white !important;
    box-shadow: 0 2px 6px rgba(255, 77, 77, 0.4) !important;
    animation: bounce 1s infinite !important;
    z-index: 10 !important;
    border: 2px solid white !important;
}

/* Animaciones */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-3px) scale(1.1);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Mensajes con mejor diseño */
.message {
    max-width: 85% !important;
    margin-bottom: 1rem !important;
    padding: 1rem 1.25rem !important;
    border-radius: 18px !important;
    line-height: 1.5 !important;
    font-size: 0.95rem !important;
    animation: messageSlideIn 0.3s ease-out !important;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message.received {
    background-color: #ffffff !important;
    border: 1px solid #e1e8ed !important;
    align-self: flex-start !important;
    border-bottom-left-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.message.sent {
    background: linear-gradient(135deg, #00c9b1 0%, #00a896 100%) !important;
    color: #ffffff !important;
    align-self: flex-end !important;
    border-bottom-right-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(0, 201, 177, 0.2) !important;
}

/* Input mejorado */
#whatsappInput {
    flex: 1 !important;
    padding: 0.875rem 1.25rem !important;
    border: 2px solid #e1e8ed !important;
    border-radius: 50px !important;
    /* Bordes redondeados */
    font-family: 'Inter', sans-serif !important;
    font-size: 1rem !important;
    background-color: #f8fafc !important;
    transition: all 0.3s ease !important;
}

#whatsappInput:focus {
    outline: none !important;
    border-color: #00c9b1 !important;
    box-shadow: 0 0 0 3px rgba(0, 201, 177, 0.1) !important;
    background-color: #ffffff !important;
}

/* Botón enviar */
.send-btn {
    background: linear-gradient(135deg, #00c9b1 0%, #00a896 100%) !important;
    color: #ffffff !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    border: none !important;
    font-size: 1.4rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0, 201, 177, 0.3) !important;
    transition: all 0.3s ease !important;
}

.send-btn:hover {
    transform: scale(1.05) rotate(15deg) !important;
    box-shadow: 0 4px 12px rgba(0, 201, 177, 0.4) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-widget.minimized {
        width: 65px !important;
        height: 65px !important;
        bottom: 20px !important;
        right: 20px !important;
    }
}

.logoimagen {
    width: 80px;
}



/* ========================================
   WHATSAPP WIDGET - CÍRCULO VERDE CON ICONO OFICIAL
   ======================================== */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    animation: pulse 2s infinite;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-widget.expanded {
    width: 360px;
    height: 480px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    animation: none;
    bottom: 20px;
    right: 20px;
}

.whatsapp-widget-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
    color: var(--text-white);
    padding: 1rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
}

.whatsapp-avatar {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.whatsapp-icon {
    width: 28px;
    height: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2325D366'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.521.149-.174.198-.298.298-.497.099-.199.05-.372-.025-.521-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.372-.01-.57-.01-.198 0-.521.074-.793.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.095 3.2 5.076 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.491h.004c-2.255-.001-4.321-1.171-5.573-3.036l-.297-.458c-.693-1.034-1.017-2.258-1.017-3.528 0-3.604 2.785-6.548 6.964-6.548 3.461 0 6.174 2.31 6.174 5.437 0 3.22-2.673 6.06-6.32 6.06-1.361 0-2.651-.354-3.694-.941l-.458-.252c-.949-.521-1.743-.896-2.482-.897z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.whatsapp-info {
    margin-left: 1rem;
}

.whatsapp-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.whatsapp-status {
    font-size: 0.875rem;
    color: var(--accent-gold);
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.whatsapp-status::before {
    content: '●';
    color: var(--accent-teal);
    font-size: 0.75rem;
}

.whatsapp-minimize {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.whatsapp-minimize:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.whatsapp-widget-body {
    display: none;
    flex-direction: column;
    width: 100%;
    height: calc(100% - 60px);
}

.whatsapp-widget.expanded .whatsapp-widget-body {
    display: flex;
}

.whatsapp-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background-color: #f0f2f5;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 85%;
    padding: 1rem 1.25rem;
    border-radius: 18px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.message.received {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.message.sent {
    background: linear-gradient(135deg, var(--accent-teal) 0%, #00a896 100%);
    color: var(--bg-white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 201, 177, 0.2);
}

.message-time {
    font-size: 0.7rem;
    color: var(--text-light);
    display: block;
    margin-top: 0.5rem;
    text-align: right;
    opacity: 0.8;
}

.whatsapp-input {
    display: flex;
    padding: 1rem;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    gap: 0.75rem;
}

#whatsappInput {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background-color: #f8fafc;
    transition: var(--transition);
}

#whatsappInput:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(0, 201, 177, 0.1);
    background-color: var(--bg-white);
}

.send-btn {
    background: linear-gradient(135deg, var(--accent-teal) 0%, #00a896 100%);
    color: var(--bg-white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 201, 177, 0.3);
    transition: var(--transition);
}

.send-btn:hover {
    transform: scale(1.05) rotate(15deg);
    box-shadow: 0 4px 12px rgba(0, 201, 177, 0.4);
}

.whatsapp-alert {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    background: #ff4d4d;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 2px 6px rgba(255, 77, 77, 0.4);
    animation: bounce 1s infinite;
    z-index: 10;
    border: 2px solid white;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-3px) scale(1.1);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ========================================
   PROJECT MODAL - IMAGEN IZQUIERDA + DESCRIPCIÓN DERECHA
   ======================================== */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--border-radius-xl);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.project-modal.active .modal-content {
    transform: scale(1);
}

.modal-image {
    height: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    padding: 2.5rem;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.modal-category {
    display: inline-block;
    background-color: rgba(0, 201, 177, 0.1);
    color: var(--accent-teal);
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-client {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.modal-description {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.modal-technologies {
    margin-top: 1.5rem;
}

.modal-technologies h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.tech-tag {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 auto;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--accent-teal);
    transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .hero {
        padding: 6rem 0 4rem;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-widget {
        width: 65px;
        height: 65px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-widget.expanded {
        width: 100%;
        max-width: 400px;
        height: 450px;
    }

    .modal-content {
        grid-template-columns: 1fr;
    }

    .modal-image {
        min-height: 300px;
    }
}

.team-card {
    background: var(--bg-white);
    padding: 1.5rem 1rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.35s ease;
    width: 330px;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

#whatsappWidget {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    animation: pulse 2s infinite;
}

#whatsappWidgetFull {
    display: flex;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 360px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(10, 25, 47, 0.16);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

#whatsappWidgetHeader {
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
    color: #e6f1ff;
    padding: 1rem;
    display: flex;
    align-items: center;
    cursor: pointer;
}

#whatsappWidgetBody {
    display: flex;
    flex-direction: column;
    height: 400px;
}


#whatsappWidgetHeader p {
    margin-left: -10px;
}



#whatsappWidgetHeader h3 {

    margin-left: 40px;

    color: white;

    display: block;

    font-size: 1.17em;

    margin-block-start: 1em;

    margin-block-end: 1em;

    margin-inline-start: 0px;

    margin-inline-end: 0px;

    font-weight: bold;

    unicode-bidi: isolate;

    /* margin: 10px; */

    margin-bottom: -1px;
}

#whatsappWidgetBody {
    display: flex;
    flex-direction: column;
    height: 400px;
}

#whatsappMessages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: #f0f2f5;
}