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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Helvetica', Arial, sans-serif;
    color: #444;
    background-color: #fff;
    line-height: 1.6;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #174495;
    color: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.logo img {
    max-height: 70px;
    margin: 5px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    margin: 0 10px;
    position: relative;
}

.main-nav ul li a {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 300;
    font-size: 1rem !important;
    white-space: nowrap;
    display: inline-block;
    text-align: center;
    line-height: 1.5;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.main-nav ul li a:hover {
    color: #9EA2A2;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

.main-nav ul li a.active-section {
    color: #9EA2A2;
    border-bottom: 2px solid #9EA2A2;
}

.stacked-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stacked-text span {
    display: block;
    line-height: 1.2;
    font-size: 1rem;
}

.contact-info a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.9rem;
}

.contact-info a:hover {
    color: #3059a7;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: none;
    border: none;
    color: #FFFFFF;
    width: 40px;
    height: 40px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #FFFFFF;
    margin: 4px 0;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background-color: #174495;
;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    z-index: 999;
    transition: transform 0.5s ease;
    transform: translateX(-100%);
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
}

.mobile-menu.active {
    display: flex;
    transform: translateX(0);
}

.close-menu {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    color: #000000;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-menu:hover {
    color: #919191;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    width: 100%;
    text-align: left;
}

.mobile-menu ul li {
    margin: 15px 0;
    transform: translateX(20px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.mobile-menu.active ul li {
    transform: translateX(0);
    opacity: 1;
}

.mobile-menu.active ul li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active ul li:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active ul li:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active ul li:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu.active ul li:nth-child(5) { transition-delay: 0.5s; }
.mobile-menu.active ul li:nth-child(6) { transition-delay: 0.6s; }
.mobile-menu.active ul li:nth-child(7) { transition-delay: 0.7s; }
.mobile-menu.active ul li:nth-child(8) { transition-delay: 0.8s; }

.mobile-menu ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    display: block;
}

.mobile-menu ul li a:hover {
    color: #ffffff;
}

.mobile-menu ul li a.active-section {
    color: #7d7d7c;
    font-weight: bold;
}

.hero {
    color: #FFFFFF;
    text-align: center;
    padding: 20px 5%;
    min-height: 80vh;
    position: relative;
    overflow: hidden;
}

.hero-video {
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    z-index: 0;
}

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

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
}

.hero .btn {
    background-color: #174495;
    color: #FFFFFF;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.hero .btn:hover {
    background-color: #3059a7;
}

#servicios {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

#servicios h1 {
    font-size: 2.5rem;
    color: #004A99;
    margin-bottom: 40px;
    text-transform: uppercase;
    font-weight: 700;
}

#servicios .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

#servicios .service-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    text-align: left;
}

#servicios .service-card i {
    font-size: 2rem;
    color: #004A99;
    margin-bottom: 15px;
}

#servicios .service-card h3 {
    font-size: 1.25rem;
    color: #004A99;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

#servicios .service-card p {
    color: #444;
    font-size: 1rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

#servicios .service-card a.btn {
    background: #e0e0e0;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    color: #888;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    align-self: flex-end;
    transition: background 0.3s ease;
}

#servicios .service-card a.btn:hover {
    background: #004A99;
    color: #fff;
}

.services h2,
.contact-section h2,
.testimonial h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #174495;
    text-align: center;
    text-transform: capitalize;
}

.card-flip {
    perspective: 1000px;
    height: 380px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-flip.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-front {
    text-align: center;
    background-color: #FFFFFF;
}

.card-back {
    transform: rotateY(180deg);
    text-align: center;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    position: relative;
}

#nosotros .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

#nosotros .services-grid .card-flip {
    perspective: 1000px;
    width: 100%;
    height: 340px;
    margin: 0;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

#nosotros .services-grid .card-flip:nth-child(1) { animation-delay: 0.1s; }
#nosotros .services-grid .card-flip:nth-child(2) { animation-delay: 0.2s; }
#nosotros .services-grid .card-flip:nth-child(3) { animation-delay: 0.3s; }
#nosotros .services-grid .card-flip:nth-child(4) { animation-delay: 0.4s; }

#nosotros .services-grid .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

#nosotros .services-grid .card-flip:hover .card-inner {
    transform: rotateY(180deg);
}

#nosotros .services-grid .card-front,
#nosotros .services-grid .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#nosotros .services-grid .card-front {
    background: #FFFFFF;
    border: 2px solid #174495;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    text-align: center;
}

#nosotros .services-grid .card-back {
    background-size: cover;
    background-position: center;
    transform: rotateY(180deg);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    position: relative;
    text-align: center;
}

#nosotros .services-grid .card-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 0;
    border-radius: 12px;
}

#nosotros .services-grid .card-back-content {
    position: relative;
    z-index: 1;
    padding: 15px;
    color: #FFFFFF;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

#nosotros .services-grid .card-back-content h3,
#nosotros .services-grid .card-back-content p {
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

#nosotros .services-grid .card-back-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#nosotros .services-grid .card-back-content h3 span {
    display: block;
    text-align: center;
}

#nosotros .services-grid .card-back-content p {
    font-size: 0.8rem;
    margin-bottom: 15px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#nosotros .services-grid .card-back-content .btn {
    background-color: #ffffff;
    color: #174495;
    padding: 10px 20px;
    border: 2px solid #174495;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: 100%;
    text-align: center;
    display: inline-block;
    margin-bottom: 20px;
}

#nosotros .services-grid .card-back-content .btn:hover {
    background-color: #174495;
    color: #feffff;
    border: 2px solid #174495;
}

#nosotros .services-grid .card-front img.full-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

#nosotros .services-grid .card-front h3 {
    font-size: 1.1rem;
    margin: 10px 0;
    color: #9EA2A2;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

#nosotros .services-grid .card-front h3 span {
    display: block;
    text-align: center;
}

#blindaje .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

#blindaje .services-grid .service-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    text-align: left;
}

#blindaje .services-grid .service-card i {
    font-size: 2rem;
    color: #004A99;
    margin-bottom: 15px;
}

#blindaje .services-grid .service-card h3 {
    font-size: 1.25rem;
    color: #004A99;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

#blindaje .services-grid .service-card p {
    color: #444;
    font-size: 1rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

#blindaje .services-grid .service-card a.btn {
    background: #e0e0e0;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    color: #888;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    align-self: flex-end;
    transition: background 0.3s ease;
}

#blindaje .services-grid .service-card a.btn:hover {
    background: #004A99;
    color: #fff;
}

.contact-section {
    padding: 60px 5%;
    background-color: #FFFFFF;
    text-align: center;
}

.contact-section p {
    font-size: 1rem;
    margin-bottom: 30px;
    color: #4B5563;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.bloques-info {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.tarjeta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f7f7f7;
    border: 2px solid #174495;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px 30px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.tarjeta__title {
    flex: 0 0 40%;
}

.tarjeta__title h3 {
    font-size: 18px;
    color: #174495;
    font-weight: 700;
    text-transform: uppercase;
}

.tarjeta__content {
    flex: 0 0 55%;
}

.tarjeta__content p {
    font-size: 16px;
    color: #9EA2A2;
}

.contact-section form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.contact-section input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.contact-section input:focus {
    border-color: #174495;
    outline: none;
}

.contact-section button {
    background-color: #ffffff;
    color: #174495;
    padding: 12px 30px;
    border: 2px solid #174495;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
}

.contact-section button:hover {
    background-color: #174495;
    color: #ffffff;
    border: 2px solid #174495;
}

.testimonial {
    display: flex;
    padding: 60px 5%;
    background: linear-gradient(to right, #FFFFFF, #E5E7EB);
    align-items: center;
}

.testimonial-content {
    width: 50%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-content p {
    font-size: 0.95rem;
    color: #4B5563;
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial-content .btn {
    background-color: #174495;
    color: #FFFFFF;
    padding: 10px 25px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

.testimonial-content .btn:hover {
    background-color: #3059a7;
}

footer {
    background-color: #174495;
    color: #FFFFFF;
    padding: 40px 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

footer h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

footer a {
    color: #E5E7EB;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
}

footer a:hover {
    color: #3059a7;
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

footer .btn {
    background-color: transparent;
    color: #FFFFFF;
    padding: 8px 20px;
    border: 2px solid #FFFFFF;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

footer .btn:hover {
    background-color: #FFFFFF;
    color: #174495;
}

#chatbot {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 300px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

#chat-log {
    height: 200px;
    overflow-y: auto;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
}

#chat-input {
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #E5E7EB;
}

#toggle-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #174495;
    color: #FFFFFF;
    border: none;
    padding: 15px 18px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
}

.container-fluid {
    padding: 3rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 5%;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.align-items-center {
    align-items: center;
}

.pb-1 {
    padding-bottom: 0.25rem;
}

.col-lg-5 {
    flex: 0 0 auto;
    width: 41.666667%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-lg-7 {
    flex: 0 0 auto;
    width: 58.333333%;
    padding-right: 15px;
    padding-left: 15px;
}

.mt-5 {
    margin-top: 3rem;
}

.mt-lg-0 {
    margin-top: 0;
}

.img-thumbnail {
    padding: 0.75rem;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 0.25rem;
    max-width: 100%;
    height: auto;
}

h1 {
    font-size: 2.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    color: #174495;
    text-transform: capitalize;
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.btn-primary {
    background-color: #174495;
    border-color: #174495;
}

.py-md-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.px-md-4 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.font-weight-semi-bold {
    font-weight: 600;
}

.contact-icon {
    margin-right: 10px;
    font-size: 1.2em;
}

.contact-section .service-card a {
    color: #174495;
    text-decoration: none;
}

.contact-section .service-card a:hover {
    color: #3059a7;
}

.contact-section .service-card ul {
    list-style: none;
    padding: 0;
}

.contact-section .service-card li {
    margin-bottom: 10px;
}

.service {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.titlepage {
    text-align: center;
    margin-bottom: 40px;
}

.titlepage h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #174495;
    margin-bottom: 15px;
    text-transform: capitalize;
}

.titlepage .yellow {
    color: #3059a7;
}

.titlepage .appp_l {
    font-size: 1.5rem;
    color: #4B5563;
}

.titlepage p {
    font-size: 1.1rem;
    color: #4B5563;
    max-width: 600px;
    margin: 0 auto;
}

.service_box {
    display: flex;
    align-items: center;
    background-color: #FFFFFF;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service_box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.service_image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.service_text {
    padding: 15px;
}

.service_text h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #174495;
    margin-bottom: 10px;
}

.service_text p {
    font-size: 0.9rem;
    color: #4B5563;
    line-height: 1.6;
}

.carousel-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-indicators {
    display: none;
}

.card {
    flex: 0 0 25%;
    margin: 0 10px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.5s ease;
    aspect-ratio: 3 / 2;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.card.center {
    flex: 0 0 40%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border: none;
    z-index: 1;
}

.card.side {
    flex: 0 0 20%;
    opacity: 0.9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(23, 68, 149, 0.8);
    color: #FFFFFF;
    padding: 10px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.card.center .text-overlay {
    opacity: 1;
}

.text-overlay h2 {
    margin: 0;
    font-size: clamp(1.2em, 3vw, 1.5em);
    font-weight: 600;
}

.text-overlay p {
    margin: 5px 0 0;
    font-size: clamp(0.8em, 2vw, 0.9em);
    line-height: 1.4;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #174495;
    border: none;
    font-size: 2em;
    color: #FFFFFF;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.3s ease;
}

.nav-button:hover {
    background: #3059a7;
}

.nav-button.prev {
    left: 10px;
}

.nav-button.next {
    right: 10px;
}

.service-card {
    background: #fff;
    border: 2px solid #174495;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.service-card i {
    font-size: 2rem;
    color: #004A99;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin: 15px 0;
    color: #9EA2A2;
    text-transform: capitalize;
}

.service-card p {
    font-size: 0.9rem;
    color: #9EA2A2;
    padding: 0 15px;
    margin-bottom: 20px;
}

.service-card .btn {
    display: inline-block;
    background-color: transparent;
    color: #174495;
    padding: 8px 20px;
    border: 2px solid #174495;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-bottom: 20px;
    align-self: center;
}

.service-card .btn:hover {
    background-color: #174495;
    color: #FFFFFF;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

#nosotros .services-grid,
#responsabilidad .services-grid,
#bolsa .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

#nosotros .services-grid .service-card,
#responsabilidad .services-grid .service-card,
#bolsa .services-grid .service-card {
    border: 2px solid #174495;
    border-radius: 12px;
}

#nosotros .services-grid .service-card img,
#responsabilidad .services-grid .service-card img,
#bolsa .services-grid .service-card img {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service_box,
.card-flip,
.service-card,
.tarjeta,
form,
h1,
h2,
.card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service_box.visible,
.card-flip.visible,
.service-card.visible,
.tarjeta.visible,
form.visible,
h1.visible,
h2.visible,
.card.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

@media (max-width: 991px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    #nosotros .services-grid,
    #responsabilidad .services-grid,
    #bolsa .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .service-card img {
        height: 150px;
    }

    #blindaje .services-grid {
        grid-template-columns: repeat(2, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .services h1,
    .services h2,
    .contact-section h2 {
        font-size: 1.8rem;
    }

    #servicios .services-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    #nosotros .services-grid,
    #responsabilidad .services-grid,
    #bolsa .services-grid,
    #blindaje .services-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    #nosotros .services-grid .service-card,
    #responsabilidad .services-grid .service-card,
    #bolsa .services-grid .service-card,
    #blindaje .services-grid .service-card {
        width: 90%;
        max-width: 300px;
        height: 400px; /* Aumenta la altura para hacer las tarjetas más largas */
        margin: 0 auto 30px; /* Centra las tarjetas y aumenta el margen inferior */
        padding: 20px 15px; /* Ajusta el padding para mantener el contenido equilibrado */
        border: 2px solid #174495;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    #nosotros .services-grid .service-card img,
    #responsabilidad .services-grid .service-card img,
    #bolsa .services-grid .service-card img,
    #blindaje .services-grid .service-card img {
        height: 200px; /* Aumenta la altura de la imagen para alargar la tarjeta */
        object-fit: cover;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }

    #nosotros .services-grid .service-card h3,
    #responsabilidad .services-grid .service-card h3,
    #bolsa .services-grid .service-card h3,
    #blindaje .services-grid .service-card h3 {
        font-size: 1.2rem;
        margin: 10px 0;
    }

    #nosotros .services-grid .service-card p,
    #responsabilidad .services-grid .service-card p,
    #bolsa .services-grid .service-card p,
    #blindaje .services-grid .service-card p {
        font-size: 0.85rem;
        margin-bottom: 15px;
        flex-grow: 1;
    }

    #nosotros .services-grid .service-card .btn,
    #responsabilidad .services-grid .service-card .btn,
    #bolsa .services-grid .service-card .btn,
    #blindaje .services-grid .service-card a.btn {
        font-size: 0.85rem;
        padding: 6px 15px;
        align-self: center;
    }

    .service-card {
        margin-bottom: 20px;
    }

    .service-card img {
        height: 130px;
    }

    .service-card .btn {
        font-size: 0.85rem;
        padding: 6px 15px;
    }

    .testimonial {
        flex-direction: column;
        text-align: center;
    }

    .testimonial-content {
        width: 100%;
        padding: 20px;
    }

    .testimonial-content .btn {
        align-self: center;
    }

    .carousel-container {
        padding: 10px 0;
    }

    .carousel {
        display: flex;
        justify-content: center;
    }

    .card {
        margin: 0 5px;
        display: none;
    }

    .card.center {
        display: block;
        flex: 0 0 80%;
        margin: 0 auto;
    }

    .card.side {
        display: none;
    }

    .nav-button {
        font-size: 1.5em;
    }

    .nav-button.prev {
        left: 5px;
    }

    .nav-button.next {
        right: 5px;
    }

    .tarjeta {
        flex-direction: column;
        text-align: center;
    }

    .tarjeta__title {
        flex: 0 0 100%;
        margin-bottom: 15px;
    }

    .tarjeta__content {
        flex: 0 0 100%;
    }
}

@media (max-width: 575px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .services h1,
    .services h2,
    .contact-section h2 {
        font-size: 1.5rem;
    }

    .contact-section input {
        padding: 10px;
        font-size: 0.85rem;
    }

    .contact-section button {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    #chatbot {
        width: 90%;
        right: 5%;
        bottom: 80px;
    }

    #toggle-chat {
        padding: 12px 15px;
        font-size: 18px;
    }

    .services-grid {
        padding: 0 5px;
    }

    .service-card img {
        height: 110px;
    }

    .service-card .btn {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .card.center {
        flex: 0 0 90%;
    }

    .text-overlay h2 {
        font-size: 1em;
    }

    .text-overlay p {
        font-size: 0.7em;
    }

    .nav-button.prev {
        left: 0;
    }

    .nav-button.next {
        right: 0;
    }
}