:root {
    --primary-color: #021fc4e0;
    --secondary-color: #ffffff;
    --accent-color: #000e91;
    --text-color: #333333;
    --light-gray: #bfc3c9;
    --gray: #dddddd;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    color: var(--text-color);
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
}

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

.logo-image {
    width: 150px;
    height: 120px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.logo-container:hover .logo-image {
    transform: scale(1.1);
}

.company-name {
    font-size: 1.5rem;
    font-weight: bold;
}

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

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-links a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }

    .logo-container {
        margin-bottom: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
        width: 100%;
        justify-content: space-around;
    }

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

.hero {
    height: 55vh;
    position: relative;
    overflow: hidden;
}

.split-images {
    display: flex;
    height: 100%;
}

.image-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.image-container.left {
    background: url('https://images.unsplash.com/photo-1531297484001-80022131f5a1?q=80&w=1120&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    position: relative;
}

.image-container.left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 17, 255, 0.22);
}

.image-container.right {
    background: url('https://images.unsplash.com/photo-1488590528505-98d2b5aba04b?q=80&w=1470&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
    margin-left: -5%;
    position: relative;
}

.image-container.right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 0, 255, 0.22);
}

.image-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--secondary-color);
    text-align: center;
    width: 80%;
    z-index: 1;
}

.image-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.image-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.cta-button:hover {
    background-color: var(--text-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.section {
    padding: 5rem 10%;
    margin-bottom: 2rem;
}

.section:nth-child(odd) {
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: center;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: center;
}

.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.feature {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 2rem;
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-10px);
}

.feature-icon {
    margin-bottom: 1rem;
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.product-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.product-card h3 {
    color: var(--primary-color);
    padding: 1rem 1rem 0.5rem;
}

.product-card p {
    padding: 0 1rem 1rem;
    flex-grow: 1;
}

.product-button {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    margin-top: auto;
}

.product-button:hover {
    background-color: var(--accent-color);
}

.certificates {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.certificate {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 2rem;
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.certificate-icon {
    margin-bottom: 1rem;
}

.certificate h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.help-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.faq,
.contact-form {
    flex: 1;
    min-width: 300px;
}

.accordion {
    margin-top: 1rem;
}

.accordion-item {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-sizing: border-box;
}

.accordion-header {
  display: block;          /* clave */
  width: 100%;             /* clave */
  text-align: left;
  border: 0;               /* quita borde nativo del button */
  background: var(--light-gray);
  padding: 1rem;
  box-sizing: border-box;  /* incluye padding en el ancho */
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);

}

a {
    text-decoration: none;
}

.accordion-content p {
    padding: 1rem;
    margin: 0;
    text-align: left;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--gray);
    border-radius: 4px;
    font-size: 1rem;
}

input,
textarea {
    background-color: var(--secondary-color);
}

select {
    background-color: var(--secondary-color);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.2);
}

.submit-button {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    background-color: var(--accent-color);
}


.service-section {
    position: relative;
    overflow: hidden;
    background-color: var(--light-gray);
}

.services-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.services-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.services-slider::-webkit-scrollbar {
    display: none;
}

.service-card {
    min-width: 280px;
    flex: 0 0 280px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    scroll-snap-align: center;
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--primary-color);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 30px 30px 0;
    border-color: transparent var(--primary-color) transparent transparent;
}

.service-card::after{
  content: "";
  position: absolute;
  inset: 0;                      /* ocupa todo el contenedor */
  background: var(--primary-color);  /* azul detrás del flip */
  border-radius: inherit;
  z-index: 0;                    /* por detrás de las caras */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    margin: 0 auto 1.5rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
}
/* --- Flip card --- */
.service-card{
  perspective: 1000px;        /* profundidad 3D */
  height: 300px;               /* fija la altura para que el slider no salte */
  padding: 0;                  /* el padding se mueve a las caras para evitar overflow al girar */
  overflow: visible;           /* deja respirar la sombra de las caras */
}
.card-inner{
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
}
.service-card .card-inner{
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .8s;
  transform-style: preserve-3d;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* Mantén tu efecto de elevar al hover y añade el giro */
.service-card:hover{
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.service-card:hover .card-inner,
.service-card.flip .card-inner{   /* .flip se usa en móvil por tap */
  transform: rotateY(180deg);
}

/* Caras delantera y trasera */
.card-face{
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 10px;
  background-color: var(--secondary-color);
  border-top: 4px solid var(--primary-color);
  padding: 2rem;                         /* recupera el padding original */
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.75rem;
  box-sizing: border-box;
}
.card-front{
  z-index: 2;
}
.card-back{
  transform: rotateY(180deg);
  background: #f8fbff;                   /* leve contraste en la cara trasera */
  border-top-color: var(--primary-color);
}

/* Icono y textos dentro de las caras */
.card-face .service-icon{
  margin: 0 auto .5rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-face h3{
  color: var(--primary-color);
  margin: 0;
  font-size: 1.15rem;
}
.card-face p{
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.55;
}

/* Lista detrás */
.card-back h4{
  margin: 0;
  font-size: 1rem;
  color: #ffffff;
}
.card-back ul{
  margin: .5rem 0 0 1.2rem;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: .95rem;
}



.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-control:hover {
    background-color: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

@media (max-width: 768px) {
    .service-card {
        min-width: 85%;
        flex: 0 0 85%;
    }
}

/* ===== Paleta del footer (ajústala a tu marca) ===== */
footer{
  --footer-bg: #021fc4e0;               
  --footer-text: #EAF0FF;              /* texto */
  --footer-muted: #A6B0C6;             /* texto secundario */
  --footer-accent: var(--primary-color); /* subrayados/detalles */
  background: var(--footer-bg);
  color: var(--footer-text);
}

/* ===== Layout ===== */
.footer-content{
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.3fr; /* Logo | Enlaces | Contacto | Mapa */
  gap: 28px;
  align-items: start;
  
}
@media (max-width: 1024px){
  .footer-content{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px){
  .footer-content{ grid-template-columns: 1fr; }
}

/* ===== Marca ===== */
.footer-logo .logo-container{
  display:flex; align-items:center; gap:12px;
}
.footer-logo .logo-image{ width:48px; height:auto; display:block; }
.footer-logo .brand{
  font-weight:800; letter-spacing:.2px; line-height:1.1;
  color: var(--footer-text);
}

/* ===== Títulos con barra acento ===== */
.footer-links h4,
.footer-contact h4,
.footer-map h4{
  font-weight:800; margin: 2px 0 12px;
  position:relative;
}
.footer-links h4::after,
.footer-contact h4::after,
.footer-map h4::after{
  content:""; display:block; width:36px; height:3px; border-radius:2px;
  background: var(--footer-accent); margin-top:6px;
}

/* ===== Enlaces ===== */
.footer-links ul{ list-style:none; margin:0; padding:0; }
.footer-links li{ margin:10px 0; }
.footer-links a{
  color: var(--footer-text); text-decoration:none; opacity:.9;
  transition: opacity .2s, transform .2s;
}
.footer-links a:hover{ opacity:1; transform: translateX(2px); }

/* ===== Contacto ===== */
.footer-contact p{ margin:.4rem 0; color: var(--footer-muted); }
.footer-contact a{ color: var(--footer-text); text-decoration:none; }
.footer-contact a:hover{ text-decoration: underline; }



/* ===== Mapa ===== */
.footer-map .map-container{
  border-radius:12px; overflow:hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.08);
}
.footer-map iframe{ display:block; width:100%; height:200px; border:0; }

/* ===== Franja inferior ===== */
copyright, .copyright{ /* por si usas <copyright> o .copyright */
  background: transparent;
}
.copyright{
  border-top:1px solid rgba(255,255,255,.12);
}
.copyright p{
  max-width:1200px; margin:0 auto; padding:14px 16px;
  color: var(--footer-muted);
  font-size:.95rem; text-align:center;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.about-container {
    display: flex;
    flex-direction: column;
    max-width: 900px;
    margin: 0 auto 3rem;
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.about-tabs {
    display: flex;
    background-color: var(--primary-color);
}

.tab-button {
    flex: 1;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
}

.tab-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.tab-button.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.tab-content {
    padding: 2rem;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.tab-panel h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.tab-panel p {
    line-height: 1.8;
    text-align: left;
}

.valores-list {
    list-style: none;
}

.valores-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: baseline;
    line-height: 1.6;
}

.valores-list li span {
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

#nosotros{
  --primary-color: #021fc4e0;   /* <— tu nuevo color */
}
/* --- Tabs bar --- */
.about-tabs{
  background: var(--primary-color);
  border-radius: 10px 10px 0 0;
}

.tab-button{
  color: rgba(255,255,255,.85);   /* texto claro siempre */
}

.tab-button.active{
  /* Antes: background: var(--secondary-color) (blanco) */
  background: rgba(255,255,255,.18);  /* resalta sin volverse blanca */
  color: #fff;
}

/* --- Panel inferior (quita el blanco) --- */
.tab-content{
  background: #EEF3FF; /* azul muy suave, cámbialo si quieres */
  border-radius: 0 0 12px 12px;
  padding: 2rem;
}

.tab-panel{ background: transparent; } /* evita fondos blancos internos */

/* Colores de texto tal cual */
.tab-panel h3{ color: var(--primary-color); }
.tab-panel p{ color: var(--text-color); }



.photo-gallery {
    max-width: 900px;
    margin: 0 auto;
}

.photo-gallery h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.gallery-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.gallery-item {
    width: 250px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    animation: slideIn 0.8s ease forwards;
    animation-delay: var(--delay);
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.team-photo {
    width: 100%;
    height: 200px;
    background-color: var(--light-gray);
}

.gallery-caption {
    padding: 1rem;
    text-align: center;
}

.gallery-caption h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }

    .logo-container {
        margin-bottom: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
        width: 100%;
        justify-content: space-around;
    }

    .nav-links li {
        margin: 0;
    }

    .hero {
        height: 60vh;
    }

    .split-images {
        flex-direction: column;
    }

    .image-container.left,
    .image-container.right {
        clip-path: none;
        margin-left: 0;
        height: 50%;
    }

    .section {
        padding: 3rem 5%;
    }

    .feature,
    .certificate {
        min-width: 100%;
    }

    .help-content {
        flex-direction: column;
    }
}