:root {
    --primary-color: #00a8cc;
    /* Slightly darker for contrast on white */
    --secondary-color: #7000ff;
    --text-color: #333333;
    --bg-color: #ffffff;
    --bg-alt-color: #f8f9fa;
    --font-main: 'Montserrat', sans-serif;
}

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

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

/* Typography */
h1,
h2,
h3,
h4 {
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-color);
    /* Removed gradient text for cleaner look, or keep subtle if preferred */
    background: linear-gradient(to right, #333, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-top: 1rem;
}

h4 {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    color: var(--text-color);
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 auto 1.5rem auto;
    max-width: 800px;
    color: #555;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3rem;
    z-index: 1000;
    background: rgba(225, 245, 254, 0.95);
    /* Pastel Blue */
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(179, 229, 252, 0.3);
    /* Subtle blue glow */
    transition: 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0277bd;
    /* Darker blue for contrast */
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-list {
    list-style: none;
    display: flex;
}

.nav-list li {
    margin-left: 2.5rem;
}

.nav-list a {
    text-decoration: none;
    color: #455a64;
    /* Dark blue-grey */
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0288d1;
    transition: width 0.3s ease;
}

.nav-list a:hover {
    color: #0288d1;
}

.nav-list a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 5px;
    padding: 10px 0;
    top: 100%;
    left: 0;
    text-align: left;
}

.dropdown-content li {
    margin-left: 0;
    display: block;
    margin: 0;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    text-transform: capitalize;
    /* Or keep uppercase if preferred */
    border-radius: 0;
}

.dropdown-content a::after {
    display: none;
    /* Remove underline effect for dropdown items */
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
    transition: all 0.3s ease-in-out;
}

/* Layout */
section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    position: relative;
}

.content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
    width: 100%;
    max-width: 1200px;
}

/* Specific Sections - Alternating Backgrounds */
#hero {
    background-image: url('images/bk.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: #fff;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Dark overlay */
    z-index: 1;
}

#hero .content {
    z-index: 2;
    position: relative;
}

#hero h1 {
    color: #fff;
    background: none;
    -webkit-text-fill-color: initial;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#hero p {
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#about {
    background-color: var(--bg-alt-color);
}

#web-design {
    background-color: var(--bg-color);
}

#software {
    background-color: var(--bg-alt-color);
}

#branding {
    background-color: var(--bg-color);
}

#contact {
    background-image: url('images/fondoblue.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: #fff;
}

#contact .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Dark overlay for better text contrast */
    z-index: 1;
}

#contact .content {
    position: relative;
    z-index: 2;
}

#contact h2,
#contact p,
#contact .section-icon {
    position: relative;
    z-index: 2;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* About Section Styles */
.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.mission-vision {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.mv-item {
    max-width: 400px;
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: transform 0.3s;
}

.mv-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
}

.value-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.value-card:hover {
    background: var(--primary-color);
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.value-card:hover i,
.value-card:hover h4 {
    color: #fff;
}

.value-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Service Layout */
.service-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    text-align: left;
}

.service-text {
    flex: 1;
}

.service-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Softer shadow */
    border: none;
    transition: transform 0.3s ease;
}

.service-image img:hover {
    transform: scale(1.02);
}

/* Alternating Layout */
#web-design .service-container {
    flex-direction: row;
}

#software .service-container {
    flex-direction: row-reverse;
}

#branding .service-container {
    flex-direction: row;
}

#digital-literacy {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

#digital-literacy .service-container {
    flex-direction: row-reverse;
}

#digital-literacy h2,
#digital-literacy p {
    color: white;
}

#digital-literacy .section-icon {
    color: #4facfe;
}

/* Icons */
.section-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.icon-large {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Buttons */
.cta-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: 0.3s;
    text-transform: uppercase;
}

.cta-button:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Contact Form */
.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #555;
    font-weight: 600;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #333;
    font-family: var(--font-main);
    transition: border-color 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
}

button[type="submit"] {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

button[type="submit"]:hover {
    transform: scale(1.05);
}

/* Social Media Sidebar */
.social-sidebar {
    position: fixed;
    bottom: 120px;
    right: 45px;
    /* Aligned with WhatsApp button center (60px width -> center at 30px + 40px right = 70px from edge? No, right:40px. Center of button is at right: 70px. Button width 60px.
       If button is right: 40px, width 60px.
       Sidebar items: width 50px.
       To center align:
       WhatsApp center: 40px + 30px = 70px from right.
       Sidebar item center needs to be 70px from right.
       Sidebar item width 50px. Center is 25px.
       So right should be 70px - 25px = 45px.
    */
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.social-icon {
    width: 50px;
    height: 50px;
    background-color: #333;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    color: #fff;
}

.social-icon.facebook {
    background-color: #3b5998;
}

.social-icon.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-icon.x-twitter {
    background-color: #000;
    color: #fff;
    border: none;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    #navbar {
        padding: 1rem 1.5rem;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-list {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    }

    .nav-list.active {
        left: 0;
    }

    .nav-list li {
        margin: 1.5rem 0;
    }

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

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }

    .values-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .service-container {
        flex-direction: column !important;
        gap: 2rem;
        text-align: center;
    }

    .service-text {
        order: 1;
    }

    .service-image {
        order: 2;
    }
}

/* Differentiator Section */
#differentiator {
    background: linear-gradient(135deg, #e0f7fa 0%, #ffffff 100%);
    padding: 8rem 2rem;
}

.diff-container {
    /* Removed card styling for full-width section look */
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.diff-content-wrapper {
    display: flex;
    align-items: center;
    gap: 3rem;
    text-align: left;
}

.diff-text {
    flex: 1;
}

.diff-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Ensure carousel doesn't overflow */
}

.diff-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.diff-image img:hover {
    transform: scale(1.02);
}

/* Carousel Styles */
.carousel-container {
    width: 100%;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-slide {
    display: none;
    position: relative;
    width: 100%;
    animation: fade 1.5s;
}

.carousel-slide img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    border-radius: 15px;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 1rem;
    font-weight: 600;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 40px;
    /* Above caption */
    width: 100%;
    text-align: center;
    z-index: 10;
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active,
.dot:hover {
    background-color: #fff;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

/* Responsive for Differentiator */
@media (max-width: 768px) {
    .diff-content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .diff-image {
        order: -1;
        /* Image on top on mobile? Or bottom? Keeping default order (text first) or changing. Let's keep text first for message priority. */
        order: 2;
        /* Image below text on mobile */
        width: 100%;
    }
}

/* Removed .diff-container::before gradient border */

.diff-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.diff-icon {
    font-size: 4rem;
    color: var(--primary-color);
}

.diff-badge {
    font-size: 2rem;
    color: #25d366;
    position: absolute;
    bottom: -5px;
    right: -10px;
    background: #fff;
    border-radius: 50%;
    border: 3px solid #fff;
}

.highlight-text {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin: 1rem 0;
    letter-spacing: 3px;
}

/* Founder Section */
#founder {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 6rem 2rem;
    color: #fff;
}

.founder-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.founder-image {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.founder-info {
    margin-top: 1.5rem;
}

.founder-info h4 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.founder-info span {
    font-size: 1rem;
    color: #ccc;
    font-weight: 300;
}

.founder-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    /* Circular Image */
    object-fit: cover;
    border: 5px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.founder-image img:hover {
    transform: scale(1.05);
}

.founder-text {
    max-width: 600px;
}

.founder-text h2 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.founder-text p {
    color: #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.8;
}

.founder-info {
    margin-top: 2rem;
    text-align: center;
    /* Or left, depending on preference, but usually better aligned with text */
}

/* Align text left to match the layout */
.founder-text .founder-info {
    text-align: left;
}

.founder-info h4 {
    margin-top: 0;
    color: #fff;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.founder-info span {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .founder-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .founder-text blockquote {
        padding-left: 0;
        /* Remove border on mobile if centered */
        border-left: none;
    }
}

.pulse-button {
    background: linear-gradient(45deg, #00d4ff, #007bb5);
    color: #ffffff;
    /* White text for contrast */
    border: none;
    /* Remove border if it conflicts */
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7);
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(0, 212, 255, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
    }
}

/* Notification Toast */
#notification-container {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    transition: top 0.5s ease-in-out;
}

#notification-container.show {
    top: 20px;
}

.notification {
    background: linear-gradient(135deg, #0277bd 0%, #00a8cc 100%);
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    min-width: 300px;
    justify-content: center;
}

.notification i {
    font-size: 1.2rem;
}

/* Regions Section */
#regions {
    background-image: url('images/mapa.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 6rem 2rem;
}

#regions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Dark overlay */
    z-index: 1;
}

#regions .content {
    position: relative;
    z-index: 2;
}

#regions h2,
#regions p,
#regions .section-icon {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.regions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
    /* Reduced max-width slightly to keep icons tighter if needed */
    margin: 3rem auto 0;
    justify-content: center;
}

@media (max-width: 900px) {
    .regions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .regions-grid {
        grid-template-columns: 1fr;
    }
}

.region-card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    border: 1px solid #eff0f1;
}

.region-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 168, 204, 0.3);
    /* primary color transparent */
}

.region-card img {
    width: 60px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.region-card:hover img {
    transform: scale(1.1);
}

.region-card h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 0;
    font-weight: 600;
}

/* Highlight Card (Rest of Latam) */
.region-card.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.region-card.highlight h3 {
    color: #fff;
}

.region-card.highlight .icon-circle {
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.region-card.highlight i {
    font-size: 1.8rem;
    color: #fff;
}