:root {
    --primary-color: #008bd0;
    --white: #fff;
    --dark-blue: #f9e833ff;
    --light-blue: #ffff;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: #f9e833ff;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #f9e833ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html,
body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    background-color: var(--white);
    color: #333;
}

/* Header */
header {
    background-color: var(--white);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
header.scrolled {
    padding: 10px 0;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-l {
    color: #008bd0; /* Azul */
}

.logo-and {
    color: gray; /* Blanco */
}

.logo-e {
    color: #f9e833; /* Amarillo */
}

.nav-links {
    display: flex;
    list-style: none;
}
.nav-links li {
    margin-left: 30px;
}
.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}
.nav-links a:hover {
    color: var(--primary-color);
}
.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-links a:hover::after {
    width: 100%;
}
.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #008bd0, #ff7e29); /* Azul a naranja */
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.1;
    z-index: 0;
}
.hero::before {
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
}
.hero::after {
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
}
.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    flex-wrap: wrap;
}
.hero-text {
    width: 50%;
    min-width: 280px;
}
.hero-text h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
    color: white;
}
.hero-text h1 span {
    color: var(--dark-blue);
}
.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
    color: white;
}
/* From Uiverse.io by Damithkumara */
.hero-1 {
    padding: 0.9em 1.8em;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 4px;
    color: transparent;
    border: 3px solid #f9e833ff;
    font-size: 14px;
    position: relative;
    font-family: inherit;
    background: transparent;
    cursor: pointer;
}

.hero-1::before {
    content: "Nuestros Servicios";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f9e833ff;
    color: rgb(0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s;
}

.hero-1:hover::before {
    left: 100%;
    transform: scale(0) rotateY(360deg);
    opacity: 0;
}

.hero-1::after {
    content: "Nuestros Servicios";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #ebeaea;
    color: #363636;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s;
    transform: scale(0) rotateY(0deg);
    opacity: 0;
}

.hero-1:hover::after {
    left: 0;
    transform: scale(1) rotateY(360deg);
    opacity: 1;
}

.cont {
    padding: 0.9em 1.8em;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 4px;
    color: transparent;
    border: 3px solid #f9e833ff;
    font-size: 14px;
    position: relative;
    font-family: inherit;
    background: transparent;
    cursor: pointer;
    overflow: hidden; /* importante para ocultar el contenido fuera */
}

.cont::before {
    content: "Contáctanos";
    position: absolute;
    top: 0;
    left: 0; /* inicia visible */
    width: 100%;
    height: 100%;
    background-color: #f9e833ff;
    color: rgb(0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s;
}

.cont:hover::before {
    left: -100%; /* se mueve a la izquierda */
    transform: scale(0) rotateY(360deg);
    opacity: 0;
}

.cont::after {
    content: "Contáctanos";
    position: absolute;
    top: 0;
    left: 100%; /* inicia fuera, a la derecha */
    width: 100%;
    height: 100%;
    background-color: #ebeaea;
    color: #363636;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s;
    transform: scale(0) rotateY(0deg);
    opacity: 0;
}

.cont:hover::after {
    left: 0; /* entra a la posición visible */
    transform: scale(1) rotateY(360deg);
    opacity: 1;
}

/* DOOOOOOOOOOOOOOOOOOOA */

.mas {
    padding: 0.9em 1.8em;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 4px;
    color: transparent;
    border: 3px solid #f9e833ff;
    font-size: 14px;
    position: relative;
    font-family: inherit;
    background: transparent;
    cursor: pointer;
    overflow: hidden; /* importante para ocultar el contenido fuera */
}

.mas::before {
    content: "Ver Más Servicios";
    position: absolute;
    top: 0;
    left: 0; /* inicia visible */
    width: 100%;
    height: 100%;
    background-color: #f9e833ff;
    color: rgb(0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s;
}

.mas:hover::before {
    left: -100%; /* se mueve a la izquierda */
    transform: scale(0) rotateY(360deg);
    opacity: 0;
}

.mas::after {
    content: "Ver Más Servicios";
    position: absolute;
    top: 0;
    left: 100%; /* inicia fuera, a la derecha */
    width: 100%;
    height: 100%;
    background-color: #ebeaea;
    color: #363636;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s;
    transform: scale(0) rotateY(0deg);
    opacity: 0;
}

.mas:hover::after {
    left: 0; /* entra a la posición visible */
    transform: scale(1) rotateY(360deg);
    opacity: 1;
}

/* mooooooooooooooo */
/*Redes sociales*/
.hero-social {
    margin-top: 28px;
    display: flex;
    gap: 24px;
}

.social-l {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
    font-size: 1.5rem;
    transition: background 0.3s, color 0.3s, transform 0.2s;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
    border: 1.5px solid #fff2;
}

.social-l:hover {
    background: #f9e833ff;
    color: #16205b;
    transform: scale(1.1) rotate(-7deg);
    border: 1.5px solid #f9e833ff;
}

/* Hero Image */
.hero-image {
    width: 45%;
    min-width: 200px;
}
.hero-image img {
    width: 100%;
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.cursor {
    display: inline-block;
    color: white;
    font-weight: bold;
    animation: blink 0.8s infinite;
    font-size: 48px;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.white-text {
    color: white;
}

.yellow-text {
    color: #f9e833;
}

/* Services */
.services {
    padding: 110px 0 80px 0;
    background: linear-gradient(120deg, var(--light-blue) 60%, #eaf4fb 100%);
    min-height: 100vh;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 65px;
    animation: fadeInDown 1s;
}
.section-title h2 {
    font-size: 2.7rem;
    color: var(--dark-blue);
    margin-bottom: 18px;
    letter-spacing: 1px;
    font-weight: bold;
}
.section-title h2 span {
    color: var(--primary-color);
    font-weight: 800;
}
.section-title p {
    font-size: 1.18rem;
    color: #567;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 500;
}

/* Grid de servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
    margin-top: 48px;
    animation: fadeInUp 1.3s;
}

/* Tarjeta de servicio */
.service-card {
    background: var(--card-gradient);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 32px 28px 30px 28px;
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.25s;
    will-change: transform;
    z-index: 1;
    animation: serviceCardIn 0.7s;
}

.service-card::before {
    content: "";
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    z-index: 0;
    border-radius: 25px;
    background: linear-gradient(120deg, var(--primary-color), var(--accent), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.service-card:hover::before {
    opacity: 0.15;
}

.service-card:hover {
    box-shadow: 0 20px 48px rgba(30, 90, 180, 0.16), 0 1.5px 8px #c0e7ff;
    /* 3D scale is handled by JS */
}

.service-image {
    height: 200px;
    margin-bottom: 22px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    z-index: 2;
    background: #f2f5fa;
    box-shadow: 0 4px 14px rgba(29,114,184,0.10);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(.17,.67,.83,.67), filter 0.4s;
    border-radius: 10px;
}

.service-card:hover .service-image img {
    transform: scale(1.13) rotate(-2deg);
    filter: brightness(1.07) contrast(1.06) saturate(1.15);
}

.service-icon {
    position: absolute;
    bottom: 17px;
    right: 17px;
    background: rgba(29,114,184,0.92);
    color: #fff;
    border-radius: 50%;
    padding: 12px;
    font-size: 1.45rem;
    box-shadow: 0 2px 12px rgba(29,114,184,0.17);
    transition: background 0.3s, color 0.3s;
    z-index: 3;
    pointer-events: none;
}

/* Contenido */
.service-content h3 {
    font-size: 1.33rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 13px;
    line-height: 1.35;
    letter-spacing: 0.2px;
    transition: color 0.3s;
}
.service-content p {
    color: #555;
    line-height: 1.63;
    font-size: 1.01rem;
    margin-bottom: 20px;
    font-weight: 500;
}
.service-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    font-size: 1.01rem;
    border-bottom: 2px solid transparent;
    transition: color 0.22s, border-color 0.22s;
}
.service-card a i {
    margin-left: 7px;
    transition: transform 0.22s;
}
.service-card a:hover {
    color: var(--dark-blue);
    border-color: var(--primary-color);
}
.service-card a:hover i {
    transform: translateX(7px) scale(1.1);
}

/* "Ver Más Servicios" Button */
.services-btn-container {
    text-align: center;
    margin-top: 48px;
}
.mas {
    background: linear-gradient(90deg, var(--primary-color), var(--accent));
    color: #fff;
    font-size: 1.07rem;
    font-weight: 700;
    padding: 15px 38px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(18,194,233,0.13);
    transition: background 0.3s, transform 0.3s;
    letter-spacing: 0.7px;
}
.mas:hover {
    background: linear-gradient(90deg, var(--accent), var(--primary-color));
    transform: translateY(-3px) scale(1.06);
}

/* Animaciones */
@keyframes fadeInDown {
    0% { opacity:0; transform: translateY(-50px);}
    100% { opacity:1; transform: translateY(0);}
}
@keyframes fadeInUp {
    0% { opacity:0; transform: translateY(60px);}
    100% { opacity:1; transform: translateY(0);}
}
@keyframes serviceCardIn {
    from { opacity: 0; transform: scale(0.94);}
    to { opacity: 1; transform: scale(1);}
}

/* Responsive */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }
    .service-card {
        padding: 26px 18px 25px 18px;
    }
    .service-image {
        height: 170px;
    }
}
@media (max-width: 600px) {
    .section-title h2 {
        font-size: 1.5rem;
    }
    .service-content h3 {
        font-size: 1.10rem;
    }
    .service-image {
        height: 130px;
    }
    .service-card {
        padding: 16px 8px 18px 8px;
    }
    .services-btn-container {
        margin-top: 28px;
    }
}

/* Projects */
.projects {
    padding: 100px 0;
    background-color: var(--white);
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.project-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.project-img {
    width: 100%;
    height: 200px;
    background-color: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.project-img:hover img {
    transform: scale(1.05);
}
.project-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}
.modal-content {
    position: relative;
    margin: 2% auto;
    width: 90%;
    max-width: 1000px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: modalFade 0.3s ease;
}
@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    z-index: 1010;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}
.modal-image-container {
    width: 100%;
    height: 60vh;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}
#modalImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.modal-details {
    padding: 30px;
}
.modal-details h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}
.modal-details p {
    color: #333;
    line-height: 1.6;
}
.project-info {
    padding: 20px;
}
.project-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}
.project-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}
.project-tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}
.project-tag {
    padding: 5px 10px;
    background-color: var(--light-blue);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 12px;
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Mission & Vision */
.mission-vision {
    padding: 100px 0;
    background-color: var(--light-blue);
}
.mission-vision-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}
.mission,
.vision {
    flex: 1;
    min-width: 240px;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}
.mission:hover,
.vision:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.mission h3,
.vision h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
}
.mission h3 i,
.vision h3 i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 30px;
}
.mission p,
.vision p {
    color: #666;
    line-height: 1.6;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}
.testimonials::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.1;
}
.testimonials-slider {
    margin-top: 50px;
    position: relative;
}
.testimonial-cards {
    display: flex;
    transition: transform 0.5s ease;
}
.testimonial-card {
    min-width: 100%;
    padding: 40px;
    /* background-color: var(--light-blue); */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 30px;
}
.testimonial-text {
    font-style: italic;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}
.testimonial-author {
    font-weight: 600;
    color: #333;
}
.testimonial-position {
    color: var(--primary-color);
    font-size: 14px;
}
.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.dot.active {
    background-color: var(--primary-color);
}
.testimonial-rating {
    margin: 5px 0;
    font-size: 1rem;
}
.testimonial-rating i {
    margin-right: 2px;
}

/* Blog */
.blog {
    padding: 100px 0;
    background-color: var(--light-blue);
}
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.blog-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.blog-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
}
.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blog-content {
    padding: 20px;
}
.blog-date {
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.blog-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}
.blog-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}
.blog-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}
.blog-content a i {
    margin-left: 5px;
    transition: all 0.3s ease;
}
.blog-content a:hover {
    color: var(--dark-blue);
}
.blog-content a:hover i {
    transform: translateX(5px);
}

/* Contact Section Mejorada */
.contact {
    padding: 100px 0 70px 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}
.contact .container {
    max-width: 1200px;
    margin: auto;
}
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    letter-spacing: 1.5px;
}
.section-title .highlight {
    color: var(--primary-color, #f9e833);
}
.section-title p {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 0;
}
.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    align-items: flex-start;
}
.contact-info {
    flex: 1;
    min-width: 300px;
    background: rgba(249, 232, 51, 0.08);
    border-radius: 12px;
    padding: 35px 28px;
    box-shadow: 0 2px 16px -6px #e0e0e0;
    transition: box-shadow 0.3s;
}
.contact-info h3 {
    font-size: 1.6rem;
    margin-bottom: 24px;
    color: #222;
    font-weight: 600;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
}
.contact-icon {
    color: var(--primary-color, #f9e833);
    font-size: 2.1rem;
    margin-right: 12px;
    padding-top: 3px;
    min-width: 40px;
    text-align: center;
}
.contact-details h4 {
    font-size: 1.15rem;
    margin-bottom: 3px;
    color: #333;
    font-weight: 500;
}
.contact-details p, .contact-link {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0;
}
.contact-link {
    text-decoration: none;
    word-break: break-all;
    transition: color 0.3s;
}
.contact-link:hover {
    color: var(--primary-color, #f9e833);
}
.contact-social {
    margin-top: 28px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.social-link {
    font-size: 2.1rem;
    color: var(--primary-color, #f9e833);
    background: #222;
    border-radius: 50%;
    padding: 8px;
    transition: transform 0.25s, box-shadow 0.25s, color 0.25s;
    box-shadow: 0 2px 6px -2px #e0e0e0;
    margin-right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.social-link:hover {
    transform: scale(1.22) translateY(-4px);
    color: #222;
    background: var(--primary-color, #f9e833);
    box-shadow: 0 6px 16px -4px #f9e83344;
}

.contact-form {
    flex: 1;
    min-width: 320px;
    background-color: var(--light-blue, #f6faff);
    padding: 38px 32px 33px 32px;
    border-radius: 12px;
    box-shadow: 0 2px 16px -6px #e0e0e0;
    position: relative;
}
.contact-form form {
    width: 100%;
}
.form-group {
    margin-bottom: 21px;
}
.form-group label {
    display: block;
    margin-bottom: 7px;
    color: #222;
    font-weight: 500;
    font-size: 1rem;
}
.form-group label span {
    color: var(--primary-color, #f9e833);
    font-weight: 700;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.2px solid #ddd;
    border-radius: 6px;
    outline: none;
    font-size: 1rem;
    color: #333;
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color, #f9e833);
    box-shadow: 0 0 0 2px rgba(249, 232, 51, 0.18);
}
.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* Botón moderno animado */
.btn {
    padding: 0.9em 1.8em;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 4px;
    color: transparent;
    border: 2px solid var(--primary-color, #f9e833);
    font-size: 15px;
    font-family: inherit;
    background: transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 7px;
    font-weight: 600;
}

.btn::before {
    content: "Enviar Mensaje";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color, #f9e833);
    color: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s;
    z-index: 1;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 4px;
}

.btn:hover::before {
    left: 100%;
    transform: scale(0) rotateY(360deg);
    opacity: 0;
}

.btn::after {
    content: "Enviar Mensaje";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #ebeaea;
    color: #363636;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s;
    transform: scale(0) rotateY(0deg);
    opacity: 0;
    z-index: 1;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 4px;
}

.btn:hover::after {
    left: 0;
    transform: scale(1) rotateY(360deg);
    opacity: 1;
}

/* Mensaje de confirmación */
.confirmation-message {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #29c76a;
    background: #e7f8ed;
    border-radius: 8px;
    padding: 16px 18px;
    margin-top: 22px;
    box-shadow: 0 2px 8px -4px #29c76a33;
    font-weight: 600;
    gap: 14px;
    animation: confirmationFadeIn 0.8s;
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-container {
        flex-direction: column;
        gap: 32px;
        align-items: stretch;
    }
    .contact-info, .contact-form {
        min-width: 0;
        width: 100%;
    }
    .contact-info {
        margin-bottom: 0;
    }
}
@media (max-width: 600px) {
    .contact-form, .contact-info {
        padding: 19px 8px 15px 8px;
        border-radius: 7px;
        font-size: 0.95rem;
    }
    .section-title h2 {
        font-size: 2rem;
    }
}

/* Animación de confirmación */
@keyframes confirmationFadeIn {
    0% { opacity: 0; transform: translateY(-12px);}
    100% { opacity: 1; transform: translateY(0);}
}



/* Footer */
footer {
    background-color: #333;
    color: var(--white);
    padding: 60px 0 20px;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.footer-logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}
.footer-logo h2 {
    color: var(--primary-color);
    font-size: 20px;
}
.footer-about p {
    color: #ccc;
    line-height: 1.6;
}
.footer-links h3,
.footer-services h3,
.footer-contact h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}
.footer-links h3::after,
.footer-services h3::after,
.footer-contact h3::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}
.footer-links ul,
.footer-services ul {
    list-style: none;
}
.footer-links ul li,
.footer-services ul li {
    margin-bottom: 10px;
}
.footer-links ul li a,
.footer-services ul li a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}
.footer-links ul li a:hover,
.footer-services ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}
.footer-contact p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #ccc;
}
.footer-contact p i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 18px;
}
.whatsapp-.hero-1 {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    padding: 15px;
    font-size: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}
.whatsapp-.hero-1:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}
.whatsapp-.hero-1 .tooltip {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #f9e833ff;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 14px;
}
.whatsapp-.hero-1:hover .tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(-10px);
}
.social-icons {
    display: flex;
    margin-top: 20px;
    flex-wrap: wrap;
}
i {
    font-size: 2rem;
}
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #444;
    border-radius: 50%;
    margin-right: 10px;
    margin-left: 0;
    color: var(--white);
    transition: all 0.3s ease;
}
.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}
.footer-bottom p {
    color: #ccc;
}
.footer-bottom span {
    color: var(--primary-color);
}

.contact-social {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.contact-social .social {
    font-size: 1.8rem;
    color: #ccc;
    background-color: #444;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-social .social:hover {
    color: #fff;
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

/* Confirmation Message */
.confirmation-message {
    background-color: #4caf50;
    color: white;
    padding: 10px;
    border-radius: 5px;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 9999;
}

/* Animations & Effects */
.floating {
    animation: float 6s ease-in-out infinite;
}
.scale-up {
    transition: transform 0.3s ease;
}
.scale-up:hover {
    transform: scale(1.05);
}
.btn-cta {
    position: relative;
    overflow: hidden;
}
.btn-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: all 0.3s ease;
}
.btn-cta:hover::before {
    left: 100%;
}

/* RESPONSIVE QUERIES */
/* Large tablets (max-width: 1200px) */
@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }
    .section-title h2 {
        font-size: 32px;
    }
    .hero-text h1 {
        font-size: 40px;
    }
}

/* Tablets (max-width: 992px) */
@media (max-width: 992px) {
    .container {
        max-width: 95%;
    }
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text,
    .hero-image {
        width: 100%;
    }
    .hero-text {
        margin-bottom: 40px;
        margin-top: 10%;
    }
    .mission-vision-container,
    .contact-container {
        flex-direction: column;
    }
    .services-grid,
    .projects-grid,
    .blogs-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
    .modal-content {
        width: 98%;
    }
}

/* Small tablets & large phones (max-width: 768px) */
@media (max-width: 768px) {
    .container {
        width: 98%;
    }
    .section-title h2 {
        font-size: 26px;
    }
    .hero {
        padding-top: 60px;
    }
    .hero-text h1 {
        font-size: 32px;
    }
    nav {
        flex-direction: row;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }
    .hamburger {
        display: block;
    }
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Most phones (max-width: 600px) */
@media (max-width: 600px) {
    .container {
        width: 99%;
    }
    header,
    .hero,
    .services,
    .projects,
    .mission-vision,
    .testimonials,
    .blog,
    .contact,
    footer {
        padding-left: 0;
        padding-right: 0;
    }
    .section-title h2 {
        font-size: 22px;
    }
    .hero-text h1 {
        font-size: 24px;
    }
    .hero-text p,
    .section-title p,
    .service-card p,
    .blog-content p {
        font-size: 16px;
    }
    .services,
    .projects,
    .mission-vision,
    .testimonials,
    .blog,
    .contact {
        padding: 40px 0;
    }
    .mission,
    .vision,
    .contact-form,
    .contact-info {
        padding: 20px;
    }
    .project-img,
    .service-image,
    .blog-img {
        height: 140px;
    }
    .footer-logo h2 {
        font-size: 16px;
    }
    .footer-about p,
    .footer-links ul li a,
    .footer-services ul li a,
    .footer-contact p {
        font-size: 14px;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
    .social-icons a {
        width: 40px;
        height: 40px;
    }
    .testimonial-card {
        padding: 15px;
    }
    .modal-details {
        padding: 15px;
    }
    .modal-image-container {
        height: 30vh;
    }
}

/* Extra small phones (max-width: 400px) */
@media (max-width: 400px) {
    /* Logo images */
    .logo img,
    .footer-logo img {
        width: 30px;
        height: 30px;
    }

    /* Botones principales */
    .hero-1,
    .btn,
    .btn-outline,
    .cont {
        padding: 0.6em 0.6em;
        min-width: 95px;
        min-height: 34px;
        font-size: 11px;
        letter-spacing: 2px;
        margin-right: 7px;
        margin-bottom: 8px;
    }
    .hero-1:last-child,
    .btn:last-child,
    .btn-outline:last-child,
    .cont:last-child {
        margin-right: 0;
    }
    /* Animación para botón "Nuestros Servicios" */
    .hero-1::before,
    .hero-1::after {
        font-size: 11px;
        padding: 0;
    }
    .hero-1::before {
        content: "Nuestros Servicios";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #f9e833ff;
        color: rgb(0, 0, 0);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.5s;
    }
    .hero-1:hover::before {
        left: 100%;
        transform: scale(0) rotateY(360deg);
        opacity: 0;
    }
    .hero-1::after {
        content: "Nuestros Servicios";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background-color: #ebeaea;
        color: #363636;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.5s;
        transform: scale(0) rotateY(0deg);
        opacity: 0;
    }
    .hero-1:hover::after {
        left: 0;
        transform: scale(1) rotateY(360deg);
        opacity: 1;
    }


    /* Animación para botón "Contáctanos" */
    .cont::before {
        content: "Contáctanos";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #f9e833ff;
        color: rgb(0, 0, 0);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.5s;
        font-size: 11px;
    }
    .cont:hover::before {
        left: -100%;
        transform: scale(0) rotateY(360deg);
        opacity: 0;
    }
    .cont::after {
        content: "Contáctanos";
        position: absolute;
        top: 0;
        left: 100%;
        width: 100%;
        height: 100%;
        background-color: #ebeaea;
        color: #363636;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.5s;
        transform: scale(0) rotateY(0deg);
        opacity: 0;
        font-size: 11px;
    }
    .cont:hover::after {
        left: 0;
        transform: scale(1) rotateY(360deg);
        opacity: 1;
    }

  .mas {
    padding: 0.9em 1.8em;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 4px;
    color: transparent;
    border: 3px solid #f9e833ff;
    font-size: 11px;
    position: relative;
    font-family: inherit;
    background: transparent;
    cursor: pointer;
    overflow: hidden; /* importante para ocultar el contenido fuera */
}

.mas::before {
    content: "VerMás Servicios";
    position: absolute;
    top: 0;
    left: 0; /* inicia visible */
    width: 100%;
    height: 100%;
    background-color: #f9e833ff;
    color: rgb(0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s;
}

.mas:hover::before {
    left: -100%; /* se mueve a la izquierda */
    transform: scale(0) rotateY(360deg);
    opacity: 0;
}

.mas::after {
    content: "Ver Más Servicios";
    position: absolute;
    top: 0;
    left: 100%; /* inicia fuera, a la derecha */
    width: 100%;
    height: 100%;
    background-color: #ebeaea;
    color: #363636;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s;
    transform: scale(0) rotateY(0deg);
    opacity: 0;
}

.mas:hover::after {
    left: 0; /* entra a la posición visible */
    transform: scale(1) rotateY(360deg);
    opacity: 1;
}
 
    /* Botones contenedor: alineados lado a lado y centrados */
    .hero-btns,
    .hero-text > .botones-flex {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0;
    }

    /* Íconos de servicios */
    .service-icon {
        font-size: 28px;
    }

    /* Etiquetas de proyecto y fechas de blog */
    .project-tag,
    .blog-date {
        font-size: 10px;
    }

    /* Imagen de testimonial */
    .testimonial-img {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* Redes sociales HERO */
    .hero-social {
        gap: 10px;
        justify-content: center;
        margin-top: 14px;
    }
    .social-link {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    /* Ajustes imagen hero */
    .hero-image {
        min-width: 120px;
        width: 100%;
        margin-top: -28px;
        text-align: center;
        position: relative;
        left: -18px; /* mueve la imagen a la izquierda */
    }
    .hero-image img {
        width: 90%;
        max-width: 510px;
        margin: 0 auto;
    }

    /* Hero text: ocupa todo el ancho */
    .hero-text {
        width: 100%;
        min-width: unset;
        text-align: center;
    }
    .hero-text h1 {
        font-size: 22px;
        margin-bottom: 14px;
    }
    .hero-text p {
        font-size: 13px;
        margin-bottom: 18px;
    }

    /* Footer textos pequeños */
    .footer-logo h2,
    .footer-about p,
    .footer-links ul li a,
    .footer-services ul li a,
    .footer-contact p {
        font-size: 11px;
    }
}
/* Accessibility & Touch targets */
@media (pointer: coarse) {
    .btn,
    .btn-outline,
    .nav-links a,
    .service-card a,
    .blog-content a,
    .social-icons a,
    .dot {
        min-height: 48px;
        min-width: 48px;
        font-size: 1.1em;
    }
}

/* Utility for hiding on mobile */
.hide-mobile {
    display: block;
}
@media (max-width: 600px) {
    .hide-mobile {
        display: none;
    }
}
