/* =================================================================
   1. VARIABLES GLOBALES Y ESTILOS BASE
================================================================= */
:root {
    --color-primary: #D47760;   /* Terracota, para acción y llamado */
    --color-secondary: #9AA889; /* Verde Salvia, para calma y fondos */
    --color-text: #28536b;      /* Azul Petróleo, para textos legibles y profesionales */
    --color-background: #FFFFFF;
    --color-light-bg: #f8f9fa;  /* Un gris muy suave para secciones alternas */
    
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    --navbar-height: 80px;
}

body {
    font-family: var(--font-body);
    color: #555;
    line-height: 1.7;
    background-color: var(--color-background);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text);
}

/* =================================================================
   2. HEADER Y NAVEGACIÓN
================================================================= */
#main-navbar {
    padding: 15px 0;
    transition: all 0.4s ease-in-out;
}

#main-navbar.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    padding: 10px 0;
}

#main-navbar .navbar-brand {
    transition: all 0.4s ease-in-out;
}

#main-navbar .navbar-brand img {
    height: 100px;
    transition: height 0.4s ease-in-out;
}

#main-navbar.navbar-scrolled .navbar-brand img {
    height: 45px;
}

#main-navbar .nav-link {
    font-weight: 500;
    font-size: 1rem;
    color: white;
    margin: 0 10px;
    transition: color 0.3s ease;
}

#main-navbar.navbar-scrolled .nav-link {
    color: var(--color-text);
}

#main-navbar .nav-link:hover {
    color: var(--color-primary) !important;
}

.btn-brand-outline {
    border: 2px solid white;
    color: white;
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-brand-outline:hover {
    background-color: white;
    color: var(--color-primary);
}

#main-navbar.navbar-scrolled .btn-brand-outline {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

#main-navbar.navbar-scrolled .btn-brand-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

/* =================================================================
   3. SECCIÓN HERO
================================================================= */
#hero {
    height: 100vh;
    position: relative;
    color: white;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #D47760, #28536b);
    z-index: -1;
}

.hero-image-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh; 
    background-image: url('./img/cuestadelhuaco.png'); 
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom center;
    mix-blend-mode: multiply;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    height: 100%;
    position: relative;
    z-index: 1; 
}

#hero h1 {
    font-weight: 900;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: white;
    text-shadow: 0 3px 20px rgba(0,0,0, 0.4);
}

#hero .lead {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255,255,255,0.95);
    max-width: 700px;
    margin: 20px auto 0 auto;
    text-shadow: 0 2px 10px rgba(0,0,0, 0.3);
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid white;
    border-radius: 50px;
    z-index: 2;
}

.scroll-down-indicator span {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
    0% { top: 8px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* =================================================================
   4. SECCIONES GENERALES Y CONTADORES
================================================================= */
section {
    overflow: hidden;
}

.bg-light {
    background-color: var(--color-light-bg) !important;
}

.counter-item {
    text-align: center;
}
.counter-item .counter-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-primary);
}
.counter-item span {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary);
    vertical-align: super;
    margin-left: 2px;
}
.counter-item p {
    margin-top: -5px;
    font-weight: 500;
    color: #777;
}

/* =================================================================
   5. TARJETAS DE PROCESO Y SOLUCIONES
================================================================= */
.process-card {
    padding: 30px;
    background: white;
    border-radius: 10px;
    border-bottom: 4px solid var(--color-secondary);
    transition: all 0.3s ease;
}
.process-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-bottom-color: var(--color-primary);
}

.solution-card-v2 {
    display: flex;
    align-items: flex-end;
    position: relative;
    height: 450px;
    padding: 40px;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    background-size: cover;
    background-position: center;
    transition: all 0.4s ease;
}

.solution-card-v2::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 4px solid var(--color-primary);
    border-radius: 15px;
    opacity: 0;
    transform: scale(1.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.solution-card-v2:hover::after {
    opacity: 1;
    transform: scale(1);
}

.solution-card-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 50%);
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.solution-card-v2:hover::before {
    opacity: 1;
}

.solution-card-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.solution-card-v2 h3 {
    color: white;
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 10px;
}

.solution-card-v2 p {
    margin: 0;
    font-weight: 400;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.solution-card-v2:hover p {
    max-height: 100px;
    opacity: 0.9;
}

.arrow-icon {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
    margin-top: 15px;
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.4s ease;
}

.solution-card-v2:hover .arrow-icon {
    opacity: 1;
    transform: translateX(0);
}

/* =================================================================
   SECCIÓN "CLIENTES Y ALIANZAS"
================================================================= */
.logo-carousel-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.logo-scroller {
    max-width: 100%;
    margin: auto;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.logo-scroller-inner {
    display: flex;
    width: fit-content;
    animation: scroll-logos 25s linear infinite;
}
.logo-scroller-inner img {
    height: 100px;
    margin: 0 35px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}
.logo-scroller-inner:hover img {
    filter: grayscale(0%);
    opacity: 1;
}
@keyframes scroll-logos {
  to {
    transform: translateX(calc(-50%));
  }
}


/*
=================================================================
   TIENDA DESTACADA --- BORRAR SI NO SE USA
=================================================================
.product-showcase-card {
    display: block;
    position: relative;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.product-showcase-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(40, 83, 107, 0.2);
}
.product-showcase-card .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.product-showcase-card:hover .product-image {
    transform: scale(1.1);
}
.product-card-logo {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.product-card-logo img {
    width: 60%;
    transition: transform 0.5s ease-in-out;
}
.product-showcase-card:hover .product-card-logo img {
    transform: rotate(180deg);
}
.product-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 30px 30px 30px;
    color: white;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    transform: translateY(calc(100% - 80px));
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-showcase-card:hover .product-card-content {
    transform: translateY(0);
}
.product-card-content h3 {
    color: white;
    font-weight: 900;
    margin-bottom: 10px;
}
.product-card-content p {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}
.product-showcase-card:hover .product-card-content p {
    opacity: 0.9;
    transform: translateY(0);
}
.btn-ver-mas {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.3s;
}
.product-showcase-card:hover .btn-ver-mas {
    opacity: 1;
    transform: translateY(0);
}
*/
/* =================================================================
   7. FORMULARIO DE CONTACTO Y FOOTER
================================================================= */
#contact-form {
    background: var(--color-light-bg);
}

.form-control {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(212, 119, 96, 0.2);
}

.btn-brand-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-brand-primary:hover {
    background-color: #c06349;
    border-color: #c06349;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* =================================================================
   SECCIÓN MINERÍA  BORRAR SI NO SE USA
================================================================= 

#mineria-hero {
    position: relative;
    padding: 100px 0;
    color: white;
    overflow: hidden;
    background-color: #1a2328;
    background-image: url('./img/mina.jpg');
    background-size: cover;
    background-position: center;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150%;
    
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
    opacity: 0.4;
}
.hud-container {
    position: relative;
    z-index: 2;
}

.hud-content {
    background: rgba(10, 25, 40, 0.7);
    border: 1px solid rgba(0, 191, 255, 0.3);
    padding: 40px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
}

.hud-content h2 {
    color: white;
    font-weight: 900;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.hud-content .lead {
    color: rgba(255, 255, 255, 0.85);
}

.features-grid {
    margin-top: 30px;
    display: grid;
    gap: 20px;
}

.feature-item {
    border-left: 3px solid var(--color-primary);
    padding-left: 15px;
}

.feature-item .feature-title {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    margin-bottom: 5px;
}

.feature-item p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.scan-line {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--color-primary), transparent);
    box-shadow: 0 0 15px 3px var(--color-primary);
    opacity: 0.8;
    z-index: 1;
    animation: scan-animation 8s linear infinite;
}

@keyframes scan-animation {
    0% {
        top: -10%;
    }
    100% {
        top: 110%;
    }
}
*/


footer 
{ 
    background-color: var(--color-text); 
    color: rgba(255,255,255,0.7); 
}
footer .made-in { 
    color: var(--color-secondary); 
    font-weight: 500; }

/* =================================================================
"NOSOTRAS"
================================================================= */


/* Asegura que las esquinas redondeadas se apliquen a las imágenes */
#nosotrasCarousel .carousel-inner {
    border-radius: inherit; /* Hereda el 'border-radius' del contenedor .rounded */
}

/* Personalización de los indicadores (los puntos de abajo) */
#nosotrasCarousel .carousel-indicators button {
    background-color: var(--color-primary); /* Color terracota de la marca */
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid white;
    opacity: 0.6;
    transition: all 0.3s ease;
}

#nosotrasCarousel .carousel-indicators .active {
    opacity: 1;
    transform: scale(1.2);
}

/* Personalización de las flechas de control (izquierda/derecha) */
#nosotrasCarousel .carousel-control-prev-icon,
#nosotrasCarousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.4); /* Fondo semitransparente para que resalten */
    border-radius: 50%;
    padding: 20px;
    background-size: 50%; /* Hace el ícono de la flecha un poco más pequeño */
}


/* =================================================================
(MISIÓN, VISIÓN, VALORES)
================================================================= */
#filosofia .nav-pills .nav-link {
    background-color: #e9ecef;
    color: var(--color-text);
    font-weight: 700;
    margin: 0 5px;
    padding: 12px 25px;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

#filosofia .nav-pills .nav-link.active,
#filosofia .nav-pills .nav-link:hover {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

#filosofia .tab-content {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

#filosofia .tab-text {
    font-size: 1rem;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: auto;
}

#filosofia .valores-list {
    list-style: none;
    padding-left: 23px;
    display: grid;
    gap: 15px;
    max-width: 800px;
    margin: auto;
  
}

#filosofia .valores-list li {
    padding-left: 23px;
    position: relative;
    text-align: left
}

#filosofia .valores-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: traslate(-50%);

    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%
}

/* =================================================================
STAFF
================================================================= */
/* =================================================================
   NUEVA SECCIÓN: STAFF INTERACTIVO
================================================================= */
/* Contenedor principal de la foto grande */
.staff-display-container {
    position: relative;
    height: 550px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(40, 83, 107, 0.15);
}
.staff-display-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}
/* Marca de agua del isotipo */
.staff-display-container::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    background-image: url('./img/isotipo-icaa.svg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: 2;
}

/* Información detallada sobre la foto grande */
.staff-display-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    color: white;
    z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 80%);
    transition: opacity 0.5s ease-in-out;
}
.staff-display-info h3 {
    color: white;
    font-weight: 900;
}
.staff-display-info .role {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 10px;
}
.staff-display-info .description {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Selector de miembros a la derecha */
.staff-selector {
    display: grid;
    gap: 15px;
}
.team-selector-card {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--color-light-bg);
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}
.team-selector-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}
.selector-info h5 {
    font-size: 1.1rem;
    margin: 0;
}
.selector-info p {
    font-size: 0.9rem;
    margin: 0;
    color: #777;
}

/* Estilos para el miembro ACTIVO */
.team-selector-card.active {
    border-color: var(--color-primary);
    background-color: white;
}
.team-selector-card.active img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}
.team-selector-card:not(.active):hover {
    background-color: #e9e9e9;
}

.team-card {
    text-align: center;
    position: relative;
}

.team-photo {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 5px solid white;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-card:hover .team-photo img {
    transform: scale(1.1);
}

.team-photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(40, 83, 107, 0.7);
    background-image: url('./img/isotipo-icaa.svg');
    background-size: 60px;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-card:hover .team-photo::after {
    opacity: 1;
}

.team-info h5 {
    font-weight: 900;
    margin-bottom: 5px;
}

.team-info p {
    color: var(--color-primary);
    font-weight: 700;
}

/* =================================================================
   ESTILOS PARA EL MODAL DE CONTACTO
================================================================= */
#contact-modal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

#contact-modal .modal-header {
    border-bottom: none;
    padding: 20px 20px 0 20px;
    position: relative;
    justify-content: center;
}

.modal-logo {
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    position: absolute;
    top: -30px; /* Lo saca un poco para arriba */
    box-shadow: 0 5px 15px rgba(212, 119, 96, 0.5);
}

.modal-logo img {
    width: 100%;
    filter: brightness(0) invert(1); /* Convierte el isotipo a blanco */
}

#contact-modal .btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
}

#contact-modal .modal-body {
    padding: 10px 40px 40px 40px;
}

#contact-modal .modal-title {
    color: var(--color-text);
    font-weight: 900;
}