/*TÍTULO amarillo*/
body.repuestos .titulo-repuestos-principal {
	font-family: 'Raleway', sans-serif;
	font-size: 3.2rem;
	font-weight: 800;
	color: #fad201;
	letter-spacing: 4px;
	text-transform: uppercase;
	text-align: center;

	text-shadow:
		3px 3px 0 #000,
		6px 6px 10px rgba(0,0,0,0.45);

	opacity: 0;
	transform: translateY(-20px);
	position: relative;
	z-index: 1;
	pointer-events: none;
}


/*Texto introductorio*/
body.repuestos .texto-repuestos-intro {
	max-width: 820px;
	margin: 0 auto;
	text-align: center;
	font-size: 0.95rem;
	line-height: 1.7;
	color: #444;

	opacity: 0;
	transform: translateY(20px);
}

/*CUADROS*/
body.repuestos .repuestos-grid {
	display: flex;
	flex-direction: column;   /* UNO DEBAJO DE OTRO */
	gap: 30px;
	margin-top: 40px;
}


/* CARD */
body.repuestos .repuesto-card {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 28px 40px;   /* más aire lateral */
	border-radius: 16px;
	background: #fff;
	overflow: hidden;
	position: relative;

	box-shadow: 0 14px 38px rgba(0,0,0,0.08);
	transition: box-shadow 0.4s ease;

	max-width: 1200px;   /* 🔥 MÁS LARGO */
	width: 100%;         /* ocupa todo hasta el max */
	margin: 0 auto;
}


body.repuestos .repuesto-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 50px rgba(0,0,0,0.14);
}


/*Imagen*/
body.repuestos .img-repuesto {
	width: 150px;
	flex-shrink: 0;
	transition: transform 0.75s cubic-bezier(.4,0,.2,1);
}


body.repuestos .repuesto-card:hover .img-repuesto {
	transform: translateX(calc(100% + 750px));
}


body.repuestos .repuesto-card:hover .repuesto-info {
	transform: translateX(-20px);
}




/*Textos internos*/
body.repuestos .repuesto-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	transition: all 0.6s ease;

	padding-left: 20px;
	padding-top: 18px;   /* 🔥 BAJA EL TEXTO */
	align-items: flex-start;
	
		/* 🔥 NUEVO */
	transform: translateY(-14px); /* SUBE TODO EL BLOQUE */
	transition: all 0.6s ease;
}



body.repuestos .repuesto-texto,
body.repuestos .repuesto-ref,
body.repuestos .repuesto-link {
	opacity: 0;
	transform: translateY(10px);
	transition: all 0.4s ease;
	margin-left: -5px;
	position: relative;
	left: -10px; /* ESTE número manda */
}



body.repuestos .repuesto-texto {
	font-size: 0.92rem;
	color: #555;
	line-height: 1.6;
	margin-bottom: 6px;
}

body.repuestos .repuesto-ref {
	font-size: 0.82rem;
	color: #888;
	margin-bottom: 10px;
	display: block;
}


/* MOSTRAR INFO AL HACER HOVER */
body.repuestos .repuesto-card:hover .repuesto-texto,
body.repuestos .repuesto-card:hover .repuesto-ref,
body.repuestos .repuesto-card:hover .repuesto-link {
	opacity: 1;
	transform: translateY(0);
}


/*LEER MAS*/


body.repuestos .repuesto-link {
	display: inline-flex;          /* NO inline-block */
	align-self: flex-start;        /* EVITA QUE SE ESTIRE */
	width: auto;                   /* CLAVE */
	max-width: fit-content;        /* CLAVE */

	margin-top: 12px;
	padding: 6px 16px;
	border-radius: 20px;

	font-size: 0.85rem;
	font-weight: 700;
	color: #1f1f1f;
	background: #fad201;
	text-decoration: none;

	transition: all 0.3s ease;
}


body.repuestos .repuesto-link:hover {
	background: #e0be00;
	transform: translateY(-2px);
}





/* ===== ANIMACIÓN SHOW ===== */
body.repuestos .show {
	opacity: 1 !important;
	transform: translateY(0) !important;
	transition: all 0.8s ease;
}

/*ESPACIO*/

body.repuestos .box-content {
	margin-bottom: 120px;
}

body.repuestos .repuesto-titulo {
	font-family: 'Raleway', sans-serif;
	font-size: 1.2rem;
	font-weight: 800;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: #1f1f1f;

	text-align: center;
	width: 100%;              /* CLAVE */
	align-self: center;       /* CLAVE */
	margin: 0;

	transition: all 0.35s ease;
	margin-bottom: 10px;
	position: relative;
	top: 18px; /* ESTE es el número que mandas */
}



body.repuestos .repuesto-card:hover .repuesto-titulo {
	opacity: 0;
	transform: translateY(-10px);
	transition-delay: 0s;
}



body.repuestos .repuesto-card:hover .repuesto-texto {
	transition-delay: 0.1s;
}

body.repuestos .repuesto-card:hover .repuesto-ref {
	transition-delay: 0.18s;
}

body.repuestos .repuesto-card:hover .repuesto-link {
	transition-delay: 0.25s;
}


body.repuestos .repuesto-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(250,210,1,0.08), transparent);
	opacity: 0;
	transition: opacity 0.4s ease;
}

body.repuestos .repuesto-card:hover::after {
	opacity: 1;
}


/* NAVBAR SIEMPRE ENCIMA DEL CONTENIDO */
header,
.navbar {
	position: relative;
	z-index: 9999;
}

/* y el dropdown aún más */
.dropdown-menu {
	z-index: 10000;
}

/* =================================================
   MENU SERVICIOS – ESTILO ALQUILER (SOLO REPUESTOS)
   ================================================= */

/* NAVBAR siempre encima del contenido */
body.repuestos header,
body.repuestos .navbar {
    position: relative;
    z-index: 9999;
}

/* Dropdown animado */
body.repuestos .dropdown-menu {
    display: block;                 /* necesario para animar */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(15px) scale(0.98);
    transition: all 0.3s ease;

    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    z-index: 10000;
}

/* Cuando se abre */
body.repuestos .dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0) scale(1);
}

/* Hover items */
body.repuestos .dropdown-item {
    transition: all 0.25s ease;
}

body.repuestos .dropdown-item:hover {
    background: #ffc107;
    color: #000;
    transform: translateX(6px);
    font-weight: 600;
}

/* Item activo (amarillo fijo) */
body.repuestos .dropdown-item.active-sub {
    background: #ffc107;
    color: #000 !important;
    font-weight: 700;
}

/* =========================================
   SCROLL ANIMATION PRO (APARECE + DESAPARECE)
   ========================================= */

/* estado base (oculto) */
body.repuestos .repuesto-card,
body.repuestos .titulo-repuestos-principal,
body.repuestos .texto-repuestos-intro,
body.repuestos footer {

	opacity: 0;
	transform: translateY(70px) scale(0.95);

	transition:
		opacity 0.6s ease,
		transform 0.6s cubic-bezier(.22,.61,.36,1);
	will-change: transform, opacity;
}


/* estado visible */
body.repuestos .scroll-show {
	opacity: 1 !important;
	transform: translateY(0) scale(1) !important;
}


/* salida (cuando desaparece) */
body.repuestos .scroll-hide {
	opacity: 0 !important;
	transform: translateY(70px) scale(0.95) !important;
}


/* efecto cascada elegante */
body.repuestos .repuesto-card {
	transition-delay: 0s;
}

body.repuestos .repuesto-card:nth-child(odd){
	transition-delay: .05s;
}

body.repuestos .repuesto-card:nth-child(even){
	transition-delay: .1s;
}


