.hero-section {
    position: relative;
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    height: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: "Arial", sans-serif;
    padding: 0 10%; /* más espacio a los lados para el fondo */

}
.bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px; /* Puedes ajustar la altura para que el degradado sea más o menos pronunciado */
    background: linear-gradient(to bottom, rgba(14, 14, 14, 0) 0%, #0e0e0e 100%);
    pointer-events: none; /* Evita que bloquee clicks */
    z-index: 2; /* Asegúrate de que esté por encima del fondo pero debajo del contenido */
}


.hero-section .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}
.form-input::placeholder,
.form-textarea::placeholder {
    transition: color 0.3s ease;
}

.form-input:hover::placeholder,
.form-textarea:hover::placeholder {
    color: red;
}

.hero-section .content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1600px; /* más pequeño para dejar margen */
    width: 100%;
    border-radius: 20px;
    padding: 50px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px; /* más separación entre columnas */
    overflow: visible;
}

/* Texto columna */
.text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 0.7rem;
    text-align: left;

    color: #fff;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.form-subtitle {
    font-size: 1.6rem;
    color: #ddd;
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* Formulario columna */
.contact-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-question {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: #fff;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 68, 68, 0.6);
}

.contact-form {
    width: 100%;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row:nth-child(2) {
    margin-bottom: 25px;
}

.form-input,
.form-textarea {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-input:focus,
.form-textarea:focus {
    background: rgba(255, 255, 255, 0.25);
    outline: none;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.7);
}

.form-textarea {
    min-height: 160px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(45deg, #ff4444, #ff2222);
    color: white;
    border: none;
    padding: 16px 45px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 68, 68, 0.4);
    align-self: flex-start;
}

.submit-btn:hover {
    background: linear-gradient(45deg, #e63939, #c62828);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 57, 57, 0.6);
}

.submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 68, 68, 0.3);
}

@media (max-width: 760px) {
    .hero-section {
        padding: 80px 15px 40px 15px; /* top, right, bottom, left */
        justify-content: flex-start;
        height: auto;
        padding-top: 100px !important;

    }
    h1{
        padding-top: 70px !important;

    }

    .bottom-fade {
        height: 60px; /* un poco menos alto para no tapar mucho */
    }

    .hero-section .overlay {
        background: rgba(0, 0, 0, 0.75); /* un poco más oscuro para mejor contraste */
    }

    .hero-section .content-wrapper {
        display: flex !important;
        flex-direction: column !important;
        padding: 30px 20px !important;
        max-width: 100% !important;
        gap: 30px !important;
        grid-template-columns: none !important;
    }

    .text-content {
        text-align: center;
    }

    .form-title {
        font-size: 2.4rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.5rem !important;
    }

    .form-subtitle {
        font-size: 1.2rem !important;
        margin-bottom: 30px !important;
        display: block;
    }

    .contact-container {
        width: 100%;
        align-items: center;
    }

    .contact-question {
        font-size: 1.8rem !important;
        margin-bottom: 20px !important;
        text-align: center !important;
    }

    .contact-form {
        width: 100% !important;
    }

    .form-row {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .form-input,
    .form-textarea {
        width: 100% !important;
        padding: 14px 18px !important;
        font-size: 1rem !important;
    }

    .form-textarea {
        min-height: 140px !important;
    }

    .submit-btn {
        width: 100% !important;
        padding: 16px 0 !important;
        font-size: 1.1rem !important;
        border-radius: 25px !important;
        align-self: center !important;
    }
}

.hero-section .overlay {
    box-shadow: 0 20px 30px 10px rgba(14, 14, 14, 0.8);
    /* sombra grande, oscura */
    border-radius: 10px; /* si quieres bordes redondeados */
}



html, body {
    height: 500px;
    margin: 0;
    padding: 0;
    background-color: #0e0e0e;
    color: #fff;
    font-family: "Arial", sans-serif;
    line-height: 1.4;

}

/* Sección negra total */
.centered-section {
    padding: 80px 20px;
    color: #fff;
    font-family: 'Segoe UI', sans-serif;

}
.interactive-services-section {
    display: flex;
    gap: 3rem;
    padding: 4rem 2rem;
    color: white;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}

.card-outside-container {
    margin-top: 140px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    min-width: 1000px; /* ajusta al número de tarjetas */
}


.card-inner-container img {
    width: 100%;
    height: 70%;
    object-fit: cover;
}

.card-inner-container span {
    color: white;
    text-align: center;
    margin-top: 10px;
}

.card-inner-container:hover {
    box-shadow: 0 0 15px red;
}

.card-inner-container a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Contenedor de tarjetas */
.card-outside-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;

}

/* Tarjeta individual */
.card-inner-container {
    background-color: #111;
    border-radius: 15px;
    flex: 1 1 260px;
    max-width: 260px;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 2px solid #7f1d1d;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);

}

/* Sin efectos de hover colorines */
.card-inner-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4),
    0 0 10px rgba(255, 0, 0, 0.2),
    inset 0 0 5px rgba(255, 0, 0, 0.1);
}

.card-inner-container img {
    width: 100%;
    height: 300px; /* Fuerza la altura */
    object-fit: cover; /* Recorta la imagen para que llene el espacio sin deformarse */
    border-radius: 10px;
    margin-bottom: 15px;
}


/* Texto dentro de tarjeta */
.card-inner-container span {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

/* Enlace invisible sobre la tarjeta */
.card-inner-container a {
    position: absolute;
    inset: 0;
    z-index: 2;
}


p {
    color: #ccc; /* color base gris claro para que se note el cambio */
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

p:hover, span:hover {
    color: #fff; /* blanco puro al hacer hover */
    text-shadow:
            0 0 5px rgba(255, 0, 0, 0.8),
            0 0 10px rgba(255, 0, 0, 0.6),
            0 0 20px rgba(255, 0, 0, 0.4);
    cursor: pointer;
}
h1, h2, h3, h4, p {
    text-align: center;
    color: white;
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
    cursor: default;
}
.servicios-titulo{
    color: white;
}

h1:hover, h2:hover, h3:hover, h4:hover, p:hover {
    color: #fff; /* blanco puro */
    text-shadow:
            0 0 5px rgba(255, 0, 0, 0.8),
            0 0 10px rgba(255, 0, 0, 0.6),
            0 0 20px rgba(255, 0, 0, 0.4);
    transform: translateY(-8px);
    cursor: pointer;
}

/* Tarjeta individual */
.clients-inner-container {
    background-color: #111;
    border-radius: 15px;
    flex: 1 1 260px;
    max-width: 260px;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
    border: 2px solid #7f1d1d;
}
.clients-outside-container {
    display: flex;
    flex-wrap: wrap;              /* Permite que las imágenes bajen si no caben */
    justify-content: flex-end;    /* Alinea las imágenes hacia la derecha */
    gap: 20px;                    /* Espacio entre las tarjetas */
    padding: 20px 0;
}

/* Sin efectos de hover colorines */
.clients-inner-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4),
    0 0 10px rgba(255, 0, 0, 0.2),
    inset 0 0 5px rgba(255, 0, 0, 0.1);
}

.clients-inner-container img {
    width: 100%;
    height: auto; /* Fuerza la altura */
    object-fit: cover; /* Recorta la imagen para que llene el espacio sin deformarse */    max-height: 220px;
    border-radius: 10px;
    justify-content: center;
}
.seccion-quienes-somos {
    background-color: #0e0e0e;
    color: #fff;
    padding: 60px 20px;
    font-family: 'Poppins', sans-serif;
}

.cabecera-somos {
    text-align: center;
    margin-bottom: 50px;
}

.titulo-seccion {
    font-size: 3rem;
    color: white;
    margin-bottom: 10px;
}

.descripcion-seccion {
    font-size: 1.2rem;
    color: #ccc;
}
.img-rounded {
    border-radius: 20px;
    display: block;
    width: 98vw; /* o 100vw si quieres que llegue al borde exacto */
    height: auto;
    margin-left: auto;
    margin-right: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}


.tabs-selector {
    margin-top: 20px; /* o el espacio que quieras */

    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-button {
    background: transparent;
    border: 2px solid #ff3c3c;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s ease;
}

.tab-button.active,
.tab-button:hover {
    background: #ff3c3c;
    box-shadow: 0 0 10px rgba(255, 60, 60, 0.4);
}


.info-box {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #7f1d1d;
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 20px rgba(255, 60, 60, 0.1);
    color: #f3f3f3;
    transition: all 0.3s ease-in-out;
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: left;
}

.info-box h3 {
    color: #ff3c3c;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

.valores-lista {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.valores-lista li {
    margin-bottom: 1rem;
    padding-left: 1rem;
    position: relative;
}

.valores-lista li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ff3c3c;
    font-weight: bold;
}


.bloque-diferencias {
    text-align: center;
}

.subtitulo-seccion {
    font-size: 2.2rem;
    color: #ff3c3c;
    margin-bottom: 30px;
}

.grid-diferencias {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    padding: 20px;
}

.item-diferencia {
    border: 2px solid #7f1d1d;

    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 25px;
    text-align: left;
    backdrop-filter: blur(10px);
    display: flex;
    gap: 20px;
    align-items: center;
    transition: transform 0.3s ease;
}

.item-diferencia:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4),
    0 0 10px rgba(255, 0, 0, 0.2),
    inset 0 0 5px rgba(255, 0, 0, 0.1);
}

.icono-dif {
    font-size: 2rem;
    color: #ff3c3c;
    min-width: 40px;
}

.item-diferencia h4 {
    margin: 0 0 8px;
    font-size: 1.3rem;
    color: #fff;
}

.item-diferencia p {
    margin: 0;
    font-size: 0.95rem;
    color: #ccc;
}

/* Responsive */

@media (max-width: 768px) {
    .bloque-vision-valores {
        flex-direction: column;
        align-items: center;
    }
}
.page-separator {
    height: 60px;
    background: linear-gradient(to bottom, #000, #0e0e0e);
    margin: 0;
    padding: 0;
}
.grid-diferencias {
    position: relative;
}

#linea-animada {
    position: absolute;
    left: -20px;
    width: 3px;
    background: #c30000;
    transition: all 0.4s ease;
}

/* Posiciones de la línea según opción activa */
.item-diferencia:nth-child(1).activo ~ #linea-animada { top: 10px; height: 60px; }
.item-diferencia:nth-child(2).activo ~ #linea-animada { top: 110px; height: 60px; }
.item-diferencia:nth-child(3).activo ~ #linea-animada { top: 210px; height: 60px; }
.item-diferencia:nth-child(4).activo ~ #linea-animada { top: 310px; height: 60px; }

.compact-form {
    max-width: 900px;
    margin: 40px auto;
}

.compact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 22px;
}

.compact-row input.form-input {
    flex: 1 1 calc(50% - 10px);
    min-width: 280px;
}

.compact-row textarea.form-textarea {
    flex: 1 1 100%;
    min-height: 180px;
}

.form-input,
.form-textarea {
    padding: 18px 22px;
    border: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.form-input:hover::placeholder,
.form-textarea:hover::placeholder {
    color: red;
}

.form-input:focus,
.form-textarea:focus {
    background: rgba(255, 255, 255, 0.25);
    outline: none;
    box-shadow: 0 0 18px rgba(255, 68, 68, 0.7);
}

.submit-btn {
    background: linear-gradient(45deg, #ff4444, #ff2222);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(255, 68, 68, 0.45);
}

.submit-btn:hover {
    background: linear-gradient(45deg, #e63939, #c62828);
    transform: translateY(-3px);
    box-shadow: 0 9px 28px rgba(230, 57, 57, 0.6);
}

.submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 5px rgba(255, 68, 68, 0.3);
}


@media screen and (max-width: 768px) {
    .titulo-servicios {
        padding-top: 200px; /* for example */
    }
    .hero-section {
        background-size: cover;
        background-position: center;
        padding: 60px 20px;
        position: relative;
        min-height: 100vh;
    }

    .overlay {
        position: relative;
        background: rgba(0, 0, 0, 0.6); /* para oscurecer la imagen y que el texto destaque */
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .two-column-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .text-content {
        color: #fff;
    }

    .text-content h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    .text-content .form-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
        display: block;
    }

    .contact-container {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 10px;
    }

    .form-input, .form-textarea, .submit-btn {
        width: 100%;
    }

    .bottom-fade {
        display: none; /* si estorba en mobile */
    }

}
@media (max-width: 760px) {
    .card-outside-container {
        flex-direction: column !important;
        gap: 1rem !important;
        min-width: auto !important; /* elimina el mínim amplada que obliga a fer scroll */
        padding: 0 1rem !important;
        width: 100% !important;
    }

    .card-inner-container {
        max-width: 360px !important;
        width: 100% !important;
        margin: 0 auto !important;
        flex: none !important;
    }
}
@media (max-width: 760px) {
    .clients-outside-container {
        flex-direction: column !important;
        gap: 1rem !important;
        padding-left: 1rem !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .clients-inner-container {
        max-width: 360px !important;
        width: 100% !important;
        margin: 0 auto !important;
        flex: none !important;
    }

    .clients-inner-container.clients-img img {
        width: 100%;
        height: auto;
        display: block;
    }
}
@media (max-width: 760px) {
    /* Contenidor principal passa a columna */
    div[style*="display: flex"][style*="align-items: flex-start"][style*="padding: 50px"] {
        flex-direction: column !important;
        padding: 20px !important;
    }

    /* Imatge ocupa tot l'amplada, menys padding */
    div[style*="flex: 1;"][style*="padding-right: 30px;"] {
        padding-right: 0 !important;
        max-width: 100% !important;
        margin-bottom: 20px;
    }

    /* Imatge dins del div */
    div[style*="flex: 1;"][style*="padding-right: 30px;"] img {
        max-width: 100% !important;
        height: auto !important;
        border-radius: 12px !important;
    }

    /* Bloc diferències ocupa tot l'amplada */
    .bloque-diferencias {
        flex: none !important;
        width: 100% !important;
    }

    /* Mida del títol més gran i centrat */
    .bloque-diferencias h2 {
        font-size: 28px !important;
        text-align: center !important;
    }

    /* Margen a la grid de diferencias para separar mejor */
    .grid-diferencias {
        margin-top: 20px !important;
        padding-left: 0 !important;
        position: relative !important;
    }

    /* Ajustes de cada item diferencia para que sean más estrechos */
    .item-diferencia {
        flex-direction: row !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
    }

    /* Iconos más pequeños */
    .icono-dif {
        padding: 8px !important;
        font-size: 16px !important;
    }
}
@media (max-width: 760px) {
    .differences-section {
        padding: 20px 15px !important;
    }

    .differences-section h2 {
        font-size: 1.8rem !important;
        text-align: center;
        margin-bottom: 20px;
    }

    .contact-form.compact-form {
        width: 100% !important;
        max-width: 100% !important;
    }

    .form-row.compact-row {
        flex-direction: column !important;
        gap: 12px !important;
        margin-bottom: 15px !important;
    }

    .form-input,
    .form-textarea {
        width: 100% !important;
        padding: 12px 15px !important;
        font-size: 1rem !important;
        border-radius: 8px !important;
    }

    .form-textarea {
        min-height: 120px !important;
    }

    .submit-btn {
        width: 100% !important;
        padding: 14px 0 !important;
        font-size: 1.1rem !important;
        border-radius: 25px !important;
        align-self: center !important;
    }
}
