/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #e5e7eb;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: white;
    color: #1a1a1a;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

/* Navigation Styles */
.nav {
    display: flex;
    align-items: center;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 1001;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-toggle:hover {
    background-color: #f3f4f6;
}

.nav-toggle:active {
    background-color: #e5e7eb;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: #1a1a1a;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: #1a1a1a;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Hamburger animation when active */
.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav a:hover {
    background-color: #f3f4f6;
    color: #3b82f6;
}

/* Main Content Styles */
.main-content {
    background-color: #e5e7eb;
}

.section {
    padding: 4rem 0;
    background-color: #e5e7eb;
}

.section:nth-child(even) {
    background-color: #f9fafb;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.text-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.text-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.text-content p {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Vision and Mission Section */
.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.vision-card, .mission-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #3b82f6;
}

.vision-card h3, .mission-card h3 {
    color: #1a1a1a;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.vision-card p, .mission-card p {
    color: #4b5563;
    line-height: 1.7;
}

/* Services Section - Full Width */
.services-section {
    max-width: 800px;
    margin: 0 auto;
}

/* Services Accordion */
.services-accordion {
    margin-top: 2rem;
}

.service-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.service-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.service-header:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.service-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.service-header i {
    transition: transform 0.3s ease;
}

.service-item.active .service-header i {
    transform: rotate(180deg);
}

.service-content {
    padding: 1.5rem;
    background: white;
    color: #4b5563;
    line-height: 1.7;
}

/* Illustrations */
.illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.quienes-somos-img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.quienes-somos-img:hover {
    transform: scale(1.02);
}

.razon-proposito-img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.razon-proposito-img:hover {
    transform: scale(1.02);
}

.meeting-illustration, .work-illustration {
    position: relative;
    width: 300px;
    height: 250px;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.person {
    position: absolute;
}

.person .head {
    width: 30px;
    height: 30px;
    background: #fbbf24;
    border-radius: 50%;
    margin: 0 auto 5px;
}

.person .body {
    width: 40px;
    height: 50px;
    background: #3b82f6;
    border-radius: 8px;
    margin: 0 auto;
}

.podium {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.podium .body {
    background: #1e3a8a;
}

.speech-bubble {
    position: absolute;
    top: -20px;
    right: -30px;
    font-size: 1.5rem;
}

.table {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 60px;
    background: #8b5cf6;
    border-radius: 8px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 20px;
}

.seated {
    position: relative;
    top: -30px;
}

.seated .body {
    background: #6366f1;
}

.lightbulb {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    animation: pulse 2s infinite;
}

.desk {
    position: relative;
    width: 250px;
    height: 180px;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    border-radius: 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
}

.working {
    position: relative;
    top: -40px;
}

.working .body {
    background: #6366f1;
}

.laptop, .documents, .chart {
    position: absolute;
    font-size: 1.5rem;
}

.laptop {
    top: 20px;
    left: 20px;
}

.documents {
    top: 20px;
    right: 20px;
}

.chart {
    bottom: 20px;
    left: 20px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    text-align: center;
}

.contact-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fbbf24;
}

.contact-item p {
    font-size: 1.1rem;
    color: white;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 99999 !important;
    width: 60px !important;
    height: 60px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

.whatsapp-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    background: #25d366 !important;
    color: white !important;
    border-radius: 50% !important;
    text-decoration: none !important;
    font-size: 30px !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4) !important;
    transition: all 0.3s ease !important;
    animation: pulse-whatsapp 2s infinite !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    text-align: center !important;
    line-height: 1 !important;
}

.whatsapp-link:hover {
    background: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-link:active {
    transform: scale(0.95);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 15px;
    }
    
    .logo-img {
        height: 50px;
    }
    
    /* Mobile Navigation */
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }
    
    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-menu li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu li:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu li:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu li:nth-child(4) { transition-delay: 0.4s; }
    
    .nav a {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        display: block;
        text-align: center;
        border-radius: 8px;
        transition: all 0.3s ease;
        min-width: 200px;
    }
    
    .nav a:hover {
        background-color: #3b82f6;
        color: white;
        transform: scale(1.05);
    }
    
    .nav a:active {
        transform: scale(0.95);
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .vision-mission-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .vision-card, .mission-card {
        padding: 1rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .text-content h2 {
        font-size: 2rem;
    }
    
    .text-content h3 {
        font-size: 1.3rem;
    }
    
    .text-content p {
        font-size: 1rem;
    }
    
    .illustration {
        min-height: 200px;
    }
    
    .quienes-somos-img {
        max-width: 90%;
    }
    
    .razon-proposito-img {
        max-width: 90%;
    }
    
    .meeting-illustration, .work-illustration {
        width: 250px;
        height: 200px;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .service-header {
        padding: 1rem;
    }
    
    .service-header h4 {
        font-size: 1rem;
    }
    
    .service-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .header .container {
        padding: 0.5rem 10px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav a {
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem;
        min-width: 180px;
    }
    
    .text-content h2 {
        font-size: 1.8rem;
    }
    
    .text-content h3 {
        font-size: 1.2rem;
    }
    
    .text-content p {
        font-size: 0.95rem;
    }
    
    .section {
        padding: 1.5rem 0;
    }
    
    .service-header {
        padding: 0.8rem;
    }
    
    .service-header h4 {
        font-size: 0.9rem;
    }
    
    .service-content {
        padding: 0.8rem;
    }
    
    .vision-card, .mission-card {
        padding: 0.8rem;
    }
    
    .footer {
        padding: 2rem 0;
    }
    
    .footer h2 {
        font-size: 1.5rem;
    }
    
    .contact-item h3 {
        font-size: 1rem;
    }
    
    .contact-item p {
        font-size: 0.9rem;
    }
}

/* Responsive WhatsApp Button */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px !important;
        right: 20px !important;
        z-index: 99999 !important;
        width: 50px !important;
        height: 50px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        position: fixed !important;
    }
    
    .whatsapp-link {
        width: 100% !important;
        height: 100% !important;
        font-size: 25px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        overflow: visible !important;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 15px !important;
        right: 15px !important;
        z-index: 99999 !important;
        width: 45px !important;
        height: 45px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        position: fixed !important;
    }
    
    .whatsapp-link {
        width: 100% !important;
        height: 100% !important;
        font-size: 22px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        overflow: visible !important;
    }
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Ensure WhatsApp button is always visible - Override any potential hiding */
.whatsapp-float[style*="display: none"],
.whatsapp-float[style*="visibility: hidden"],
.whatsapp-float[style*="opacity: 0"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    z-index: 99999 !important;
}

.whatsapp-link[style*="display: none"],
.whatsapp-link[style*="visibility: hidden"],
.whatsapp-link[style*="opacity: 0"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Mobile menu overlay */
.nav-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: -1;
}

/* Force WhatsApp button to always be visible - Final override */
.whatsapp-float,
.whatsapp-float *,
.whatsapp-link,
.whatsapp-link * {
    z-index: 99999 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    position: fixed !important;
}

.whatsapp-link {
    display: flex !important;
}

.whatsapp-link * {
    display: inline-block !important;
}

/* Additional WhatsApp button fixes for all browsers */
.whatsapp-float {
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    -webkit-perspective: 1000 !important;
    perspective: 1000 !important;
}

.whatsapp-link {
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    -webkit-perspective: 1000 !important;
    perspective: 1000 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Ensure WhatsApp icon is always visible on all devices */
.whatsapp-float i,
.whatsapp-link i {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: inherit !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

/* Extra small screens */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }
    
    .header .container {
        padding: 0.5rem 8px;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .nav a {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
        min-width: 160px;
    }
    
    .text-content h2 {
        font-size: 1.6rem;
    }
    
    .text-content h3 {
        font-size: 1.1rem;
    }
    
    .text-content p {
        font-size: 0.9rem;
    }
    
    .section {
        padding: 1rem 0;
    }
    
    .service-header {
        padding: 0.7rem;
    }
    
    .service-header h4 {
        font-size: 0.85rem;
    }
    
    .service-content {
        padding: 0.7rem;
    }
    
    .vision-card, .mission-card {
        padding: 0.7rem;
    }
    
    .footer {
        padding: 1.5rem 0;
    }
    
    .footer h2 {
        font-size: 1.3rem;
    }
    
    .contact-item h3 {
        font-size: 0.9rem;
    }
    
    .contact-item p {
        font-size: 0.85rem;
    }
    
    .whatsapp-float {
        bottom: 10px !important;
        right: 10px !important;
        z-index: 99999 !important;
        width: 40px !important;
        height: 40px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        position: fixed !important;
    }
    
    .whatsapp-link {
        width: 100% !important;
        height: 100% !important;
        font-size: 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        overflow: visible !important;
    }
}

