/* Reset and Base Styles */
:root {
    --primary-color: #910213;
    --secondary-color: #3DC2C9;
    --accent-color: #E74C3C;
    --text-color: #333;
    --light-gray: #E3E3E3;
    --white: #ffffff;
    --max-width: 1200px;
}
@font-face {
    font-family: "Onest", sans-serif;
    src: url(fonts/Onest-Medium.ttf);
    line-height:0%;
} 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Onest', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

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

.logo a {
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
}

.contact-info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.menu-toggle {
    display: none;
}

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

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    padding: 12rem 0.1rem 9rem 0.1rem;
    background: url('../images/fondo.png') no-repeat center center;
    background-size: cover;
    color: var(--white);
    text-align: center;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    text-align: center; /* Default for mobile */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 3.8rem;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 100%;
    margin: 0 auto 2rem;
    padding-bottom: 10px;
}
@keyframes float {
    from {
      transform: rotate(0deg) translate3d(5px, 0, 0) rotate(0deg);
    }
    to {
      transform: rotate(360deg) translate3d(5px, 0, 0) rotate(-360deg);
    }
  }
.hero-image img {
    display: block;
    max-width: 100%;
    height:500px;
    margin: 0 auto;
    /*animation: float 3s infinite linear;  Center image on mobile */
}

.hero-image iframe {
    display: block;
    width: 100%;
    height: auto; /* Allow height to adjust based on content */
    min-height: 300px; /* Minimum height to ensure visibility */
    margin: 0 auto; /* Center iframe on mobile */
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center; /* Center buttons on mobile */
}

@media (min-width: 769px) {
    .hero-layout {
        grid-template-columns: 1fr 1fr; /* Two columns on larger screens */
        text-align: left; /* Align text to the left on larger screens */
    }

    .hero-content h1,
    .hero-content p {
         margin: 0 0 1.5rem 0; /* Adjust margins for left alignment */
         max-width: none;
    }
    

    .hero-image img {
        margin: 0; /* Remove auto margin on larger screens */
    }

    .cta-buttons {
        justify-content: flex-start; /* Align buttons to the left on larger screens */
    }
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn.primary {
    background-color:var(--secondary-color);
    color: var(--white);
    border-width: 0;
   font-size: 16px!important;
}

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

.btn.solicita {
    z-index: 99 !important;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    display: block;
    margin: 20px auto;
    width:300px;
    text-align: center;
    position: relative;
    top:60px;

    /* Add any specific styles for this button here if needed */
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 600;
}

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

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.service-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.service-card h3 {
    color:#910213;
    line-height: 1.5rem;
    padding-bottom: 10px;
    margin-bottom: 1rem;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Education Section */
.education {
    padding: 80px 0;
    position: relative; /* Add position relative for absolute positioning of children */
    overflow: hidden; /* Hide overflow if pattern goes outside bounds */
}

.education h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}
.education p {
    text-align: center;
    padding-bottom: 10px;
}

.background-pattern {
    position: absolute;
    top: 50px;
    left: -90px;
    width: 600px; /* Adjust size as needed */
    height: auto;
    z-index: 0; /* Ensure it stays in the background */
    opacity: 0.3; /* Adjust transparency as needed */
    pointer-events: none; /* Allow clicking through the image */
}

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

.education-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Slider Styles */
.slider-container {
    position: relative;
    overflow: hidden; /* Hide extra slides */
    max-width: 100%; /* Example max width for the slider */
    margin: 3rem auto 0; /* Center the slider */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 10px;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-slide {
    flex: 0 0 100%; /* Each slide takes up 100% width */
    display: flex;
    flex-direction: column; /* Stack content on mobile */
    align-items: center;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    padding:5% 10%;
}

.slide-image {
    flex: 1;
    width: 100%;
}

.slide-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.slide-content {
    flex: 1;
    padding: 2rem;
    text-align: left; /* Center text on mobile */
}

.slide-content h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.slide-content p {
    text-align: left !important; 
}

.btn-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Slider Navigation Buttons */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.5);
    color: rgb(46, 46, 46);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 100;
    font-size: 18px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.slider-prev:hover,
.slider-next:hover {
    background-color: rgba(155, 155, 155, 0.8);
}

@media (min-width: 769px) {
    .slider-slide {
        flex-direction: row; /* Image on left, text on right on desktop */
        text-align: left; /* Align text to the left */
    }

    .slide-image {
        flex: 1;
        max-width: 50%; /* Image takes up half the width */
    }

    .slide-content {
        flex: 1;
        max-width: 50%; /* Content takes up half the width */
        text-align: left; /* Align text to the left */
    }
    
     .slide-image img {
        height: 100%;
     }

     .btn-link {
         margin-top: 0;
     }

     /* Adjust button position on larger screens if needed */
     .slider-prev,
     .slider-next {
        padding: 15px 20px;
        font-size: 24px;
     }

}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--white);
}

.contact h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact > .container > p {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}
.contact-grid h2 {
    display: contents;
    text-align: left;
}
.contact-grid-text {
    position: relative;
    float: left;
    text-align: left;
}
.contact-info {
    display:grid;
    height:fit-content;
    gap: 3rem;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item p {
    font-size: 1.1rem;
    color: var(--text-color);
}

.contact-form {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image:
    linear-gradient(45deg, transparent 50%, gray 50%),
    linear-gradient(135deg, gray 50%, transparent 50%),
    linear-gradient(to right, #ccc, #ccc);
  background-position:
    calc(100% - 20px) calc(1.2em + 2px),
    calc(100% - 15px) calc(1.2em + 2px),
    calc(100% - 2.5em) 0.8em;
    background-size:
    5px 5px,
    5px 5px,
    1px 1.5em;
  background-repeat: no-repeat;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
        margin-bottom: 2rem;
    }
    .hero-content h1 {
        line-height: 2.4rem !important;
    }
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}
.footer-main {
    background: url('../images/fondo.png') no-repeat center center;
    background-size: cover;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    line-height: 2;
}

.social-icons {
    display:block;
    position:relative;
    float:right;
    gap: 1rem;
}

.social-icons a {
    color: var(--white);
    font-size: 1.5rem;
    margin-right: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-legal {
    margin-top: 1rem;
}

.footer-legal a {
    color: var(--white);
    text-decoration: none;
    margin: 0 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-info {
        display: none;
    }

    .menu-toggle {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--primary-color);
    }

    .main-nav {
        position: relative; /* Needed for absolute positioning of nav-links */
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        border-top: 1px solid #eee;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        display: none; /* Hide by default */
        transition: all 0.3s ease;
    }

    .main-nav.active .nav-links {
        display: flex; /* Show when active */
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .nav-links a {
        color: var(--primary-color);
        padding: 0.5rem 1rem;
        width: 100%;
        text-align: center;
    }

    .hero {
        padding: 140px 0 0px;
    }

    .hero h1 {
        font-size: 2rem;
    }
    .hero-image img {
        height: 300px;
    }
    .services h2 {
        margin-bottom: 3rem;
        font-weight: 600;
        line-height: 1.8rem;
        font-size: 20px;
    }
    .education h2 {
        margin-bottom: 3rem;
        font-weight: 600;
        line-height: 1.8rem;
        font-size: 20px;
    }
    .internal-communication h2 {
        margin-bottom: 3rem;
        font-weight: 600;
        line-height: 1.8rem;
        font-size: 20px;
    }
    .marketing-communication h2 {
        margin-bottom: 3rem;
        font-weight: 600;
        line-height: 1.8rem;
        font-size: 20px;
    }
    .ai-implementation h2 {
        margin-bottom: 3rem;
        font-weight: 600;
        line-height: 1.8rem;
        font-size: 20px;
    }
    .contact-grid h2 {
        margin-bottom: 3rem;
        font-weight: 600;
        line-height: 1.8rem;
        font-size: 20px;
    }
    .cta-buttons {
        flex-direction: column;
        max-width: 300px;
        margin: auto;
    }
    .btn {
        padding: 0.5rem 1rem;
        font-weight:400;
    }
    .hero-content p {
        font-size: 1rem;
        line-height: 1.5rem;
        font-weight: 100;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .slide-content h3 {
        text-align: center !important; 
    }
    .slide-content p {
        text-align: center !important; 
    }
}

@media (max-width: 480px) {
    .main-nav {
        padding: 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .services-grid,
    .education-grid {
        grid-template-columns: 1fr;
    }
    .slide-content p {
        text-align: center !important; 
    }
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.whatsapp-button i {
    font-size: 35px;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Add animation for the WhatsApp button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-button {
    animation: pulse 2s infinite;
}

/* Marketing and Communication Section */
.internal-communication {
    padding: 80px 0;
    position: relative; /* Add position relative for absolute positioning of children */
    overflow: hidden; /* Hide overflow if pattern goes outside bounds */
}

.internal-communication h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}
.internal-communication p {
    text-align: center;
    padding-bottom: 10px;
}
.marketing-communication {
    padding: 80px 0;
}

.marketing-communication h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}
.marketing-communication p {
    text-align: center;
    padding-bottom: 10px;
}
/* Styles for the internal communication slider */
#internal-comm-slider {
    position: relative;
    overflow: hidden;
    max-width: 100%; /* Adjust as needed */
    margin: 3rem auto 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 10px;
}

#internal-comm-slider .slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

#internal-comm-slider .slider-slide {
    flex: 0 0 100%; /* Each slide takes up 100% width */
    display: flex;
    flex-direction: column; /* Stack content on mobile */
    align-items: center;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    padding: 5% 10%;
}

#internal-comm-slider .slide-image {
    flex: 1;
    width: 100%;
}

#internal-comm-slider .slide-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

#internal-comm-slider .slide-content {
    flex: 1;
    padding: 2rem;
    text-align: center; /* Center text on mobile */
}

#internal-comm-slider .slide-content h3 {
    margin-top: 1.5rem; /* Add space between points on mobile */
    margin-bottom: 0.5rem;
}

/* Navigation Buttons for internal communication slider */
.internal-comm-prev,
.internal-comm-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.5);
    color: rgb(46, 46, 46);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 100;
    font-size: 18px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.internal-comm-prev {
    left: 10px;
}

.internal-comm-next {
    right: 10px;
}

.internal-comm-prev:hover,
.internal-comm-next:hover {
    background-color: rgba(155, 155, 155, 0.8);
}

@media (min-width: 769px) {
    #internal-comm-slider .slider-slide {
        flex-direction: row; /* Image on left, text on right on desktop */
        text-align: left; /* Align text to the left */
    }

    #internal-comm-slider .slide-image {
        flex: 1;
        max-width: 50%; /* Image takes up half the width */
    }

    #internal-comm-slider .slide-content {
        flex: 1;
        max-width: 50%; /* Content takes up half the width */
        text-align: left;
    }

    #internal-comm-slider .slide-image img {
        height: 100%;
    }

    /* Adjust button position on larger screens */
    .internal-comm-prev,
    .internal-comm-next {
        padding: 15px 20px;
        font-size: 24px;
    }
}

/* AI Implementation Section */
.ai-implementation {
    padding: 80px 0;
    background-color: var(--light-gray);
    background-image: url('../images/background2.png'); /* Add background image */
    background-size:auto; /* Cover the entire section */
    background-position: top center; /* Center the image */
    background-repeat: no-repeat; /* Do not repeat the image */
}

.ai-implementation h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.ai-implementation > .container > p {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-number {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    left: 50%;
    margin-left: -25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 1;
}

.timeline-content {
    width: calc(50% - 50px);
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-content h5 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.timeline-content p {
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-number {
        left: 30px;
        margin-left: -25px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }
}

/* Product Tabs Section */
.products-tabs {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.products-tabs h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.tab-navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid #ddd;
}

.tab-button {
    background-color: transparent;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-color);
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.tab-content > p {
    text-align: center;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure slider styles within tabs are correct */
.products-tabs .slider-container {
    margin-top: 2rem;
}

.background-pattern-2 {
    position: absolute;
    top: 0;
    right: -40px;
    width: 500px; /* Adjust size as needed */
    height: auto;
    z-index: 0; /* Ensure it stays in the background */
    opacity: 0.3; /* Adjust transparency as needed */
    pointer-events: none; /* Allow clicking through the image */
} 
/* Chatbot */
.chat-window-toggle {
    background: #3cc2c9 !important;
}
.chat-header {
    background: #3cc2c9 !important;
    color: #24292e !important;
}
.chat-header h1 {
    color: #24292e !important;
}
.footer-logo svg>path {
    fill: white !important;
}