/*
Theme Name: Clan Theme
Author: netcy
Description: Tema personalizado para Clan Contracting
Version: 1.0
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments



/* Document
	 ========================================================================== */




:root {
    --red: #ed1c25;
    --white: #ffffff;
    --dark: #1a1a1a;
    --transition: all 0.3s ease;
    --titles: "Lato", sans-serif;
    --cuerpo: "Work Sans", sans-serif;
}

* { margin:0; 
    padding:0; 
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif; }	
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}


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

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
	
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: var(--red);
}

/*a:visited {
	color: #800080;
}*/

a:hover,
a:focus,
a:active {
	color: #191970;
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/


/* Navigation
--------------------------------------------- */
.header-main {
    position: fixed;
    width: 100%;
    top: 0; 
    z-index: 1000;
    transition: var(--transition); background: transparent;
}
.header-main.scrolled {
    background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0 !important;
}
.btn-red {
    background: var(--red); color: white; 
    padding: 12px 25px;
    margin-right: 1rem;
    text-decoration: none; font-weight: bold; border-radius: 4px;
    display: inline-flex; align-items: center; gap: 10px;
	transition: transform 0.3s ease, background-color 0.3s ease;
    transform-origin: center;
}
i{
	font-size: 20px;
}

.btn-red:hover {
    transform: scale(0.95); 
    background-color: #c4191e; /* Un rojo un poco más oscuro */
}

a.btn-red:hover{
	color: white;	
}
/* =========================================
   ESTILOS DESKTOP
========================================== */
@media (max-width: 991px) { #header-desktop { display: none; } }
@media (min-width: 992px) {
    #header-mobile { display: none; }
    #header-desktop { padding: 25px 0; }
	nav.nav-desktop {
		padding-top: 1rem;
	}
    .header-container { display: flex; justify-content: space-between; align-items: center; }
    .logo img { height: 90px; transition: var(--transition); padding-left: 1rem; }
    #header-desktop.scrolled .logo img { height: 60px; padding-left: 1rem; }

    .menu-list { display: flex; list-style: none; gap: 30px; }
    .menu-list a { color: var(--white); text-decoration: none; font-weight: 600; text-transform: uppercase; font-size: 14px; }
    #header-desktop.scrolled .menu-list a { color: var(--dark); }

    /* Mega Menú Desktop */
    .has-mega { position: relative; }
    .mega-menu {
        position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(20px);
        width: 800px; background: white; opacity: 0; visibility: hidden;
        transition: var(--transition); padding: 20px; border-top: 4px solid var(--red);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    .has-mega:hover .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
    .mega-content { display: flex; gap: 20px; }
    .mega-img { width: 35%; }
    .mega-img img { width: 100%; border-radius: 4px; }
    .mega-grid { width: 65%; }
    .mega-grid h3 { color: var(--red); margin-bottom: 10px; font-size: 16px; border-bottom: 1px solid #eee; padding-bottom: 5px; }
    .mega-grid ul { list-style: none; }
    .mega-grid a { color: #555 !important; display: block; padding: 5px 0; text-transform: uppercase; }
	.mega-grid a i{ font-size: 24px; padding: 5px 0;}
    .mega-grid a:hover { color: var(--red) !important; transform: translateX(10px); transition: ease; }
}

/* =========================================
   ESTILOS MÓVIL
========================================== */
@media (max-width: 991px) {
    #header-mobile { padding: 15px 0; }
    .mobile-container { display: flex; justify-content: space-between; align-items: center; }
    .logo img { height: 50px; }

    .hamburger { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; gap: 5px; }
    .hamburger span { width: 30px; height: 3px; background: var(--white); transition: var(--transition); }
    #header-mobile.scrolled .hamburger span { background: var(--dark); }

    /* Nav Full Screen */
    .mobile-nav-full {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: var(--white); z-index: 1100; transition: 0.4s ease;
        padding: 20px; display: flex; flex-direction: column;
    }
	
    .mobile-nav-full.active { right: 0; }

    .mobile-nav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
    .mobile-logo-inner { height: 45px; }
    .close-menu { background: none; border: none; font-size: 40px; color: var(--dark); cursor: pointer; }

    .mobile-menu-list { list-style: none; }
    .mobile-menu-list li { border-bottom: 1px solid #eee; }
    .mobile-menu-list a { color: var(--dark); text-decoration: none; font-size: 20px; font-weight: 700; display: block; padding: 15px 0; }
    
    /* Acordeón */
    .submenu-header { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
    .submenu-header i { transition: var(--transition); color: var(--red); }
    .mobile-submenu { list-style: none; max-height: 0; overflow: hidden; transition: 0.4s ease; background: #f9f9f9; padding-left: 20px; }
    .mobile-submenu li { border: none; }
    .mobile-submenu a { font-size: 16px; font-weight: 500; text-transform: uppercase;}
    
    /* Estado activo acordeón */
    .mobile-has-submenu.open .mobile-submenu { max-height: 500px; padding-bottom: 10px; }
    .mobile-has-submenu.open .submenu-header i { transform: rotate(180deg); }

    .w-full { width: 100%; justify-content: center; }
    .mt-20 { margin-top: 20px; border: none !important; }
}

/* --- HERO SLIDER STYLES --- */

.hero-slider {
    position: relative;
    width: 100%;
    height: 800px; /* O 800px según tu diseño */
    overflow: hidden;
    color: white;
    margin-top: -100px; /* Ajuste si tu header es transparente/fixed */
    padding-top: 100px; /* Compensación */
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden; /* Importante para accesibilidad */
    transition: opacity 1.5s ease-in-out, visibility 1.5s;
    display: flex;
    align-items: center; /* Centrar contenido verticalmente */
	justify-content: left;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}
.slide.active .slide-bg {
    transform: scale(1.15);
    transition: transform 8s linear;
    
}

/* Manejo de imagen de fondo */
.slide-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: scale(1);
    transition: transform 3s ease;
}
/* Overlay oscuro para que se lea el texto */
.slide-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.521); /* Oscurecer 50% */
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 90px;
	padding-left: 5rem;
	padding-right: 35%;
    max-width: 100%;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-family: var(--titles); /* Usando tus variables */
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.3s forwards; /* Retraso */
    opacity: 0;
    transform: translateY(30px);
}

.hero-content .btn-red {
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
    transform: translateY(30px);
}


/* Animación de entrada de textos */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Controles */
.slider-controls .prev,
.slider-controls .next {
    position: absolute;
    top: 70%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    border-radius: 50%;
}
.slider-controls .prev:hover, .slider-controls .next:hover {
    background: var(--red);
}
.prev { left: 20px; }
.next { right: 20px; }

/* Indicadores */
.indicators {
    position: absolute;
	
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.dot {
    width: 12px; height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}
.dot.active {
    background: var(--red);
    transform: scale(1.2);
}

/* --- SECCIÓN WE ARE CLAN --- */
.section-about {
    padding: 100px 0; /* Espaciado arriba y abajo */
    background-color: var(--white);
}

.about-grid {
    display: flex;
    align-items: center;
    gap: 60px; /* Espacio entre texto e imagen */
}

/* En móviles, poner una columna debajo de la otra */
@media (max-width: 992px) {
    .about-grid {
        flex-direction: column;
    }
}

.about-content {
    flex: 1; /* Ocupa la mitad */
}

.about-images {
    flex: 1; /* Ocupa la otra mitad */
    position: relative;
	
}

.red-subtitle {
    color: var(--red);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
    font-family: var(--titles);
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 25px;
    font-family: var(--titles);
}

.text-block p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
}
.text-block ul{
	list-style: none;
}
.text-block ul li i{
	font-size: 24px;
}
.about-images img {
    width: 100%;
    height: auto;
    border-radius: 50px 0 50px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.192);
}

/* --- CLASES DE ANIMACIÓN (Necesarias para tu JS) --- */
.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Brands */

/* --- SECCIÓN LOGOS --- */
.section-logos {
    background-color: #f0f0f0; /* Fondo Gris Plata */
    padding: 30px 0;
    overflow: hidden; 
}
.section-logos h3{
    padding: 10px 0 0 20px;
}
.section-logos p{
    padding-left: 20px;
}

.logos-slider {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.logos-slide {
    display: flex;
    align-items: center;
    gap: 80px; 
    animation: scroll 40s linear infinite; 
    padding-right: 80px; 
	flex-shrink: 0;
}

/* Estilos de las imágenes (Logos) */
.logos-slide img {
    height: 80px; 
    width: auto;
    object-fit: contain;
    
    /* El truco del Blanco y Negro */
    filter: grayscale(100%) opacity(0.6); 
    transition: all 0.4s ease;
    cursor: pointer;
}

/* Efecto Hover: Color y Opacidad total */
.logos-slide img:hover {
	filter: none;
    transform: scale(1.1); /* Un pequeño zoom */
}

/* Pausar animación si pasas el mouse por encima (Opcional, pero recomendado para UX) */
.logos-slider:hover .logos-slide {
    animation-play-state: paused;
}

/* --- LA ANIMACIÓN --- */
@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* --- CTA SECTION (Parallax Pro) --- */
.cta-section {
    position: relative;
    width: 100%;
    height: 300px; /* Altura de la sección */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* IMPORTANTE: Oculta lo que se salga de la caja */
    text-align: center;
    color: var(--white);
}

/* El contenedor de la imagen */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 130%; /* Más alto que el contenedor para poder moverse */
    background-size: cover;
    background-position: center;
    z-index: 1;
    will-change: transform; /* Optimización para la tarjeta gráfica */
}

/* Capa oscura (Overlay) */
.cta-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Oscuridad del 60% */
    z-index: 2;
}

/* El contenido (encima de todo) */
.cta-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

/* Tipografía */
.cta-subtitle {
    display: block;
    color: var(--red); /* El rojo Clan que pediste (o usa var(--red)) */
    font-family: var(--titles);
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.cta-title {
    font-size: 3.5rem;
    font-family: var(--titles);
    margin-bottom: 20px;
    line-height: 1.1;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 35px;
    color: #f0f0f0;
}

/* Botón específico para esta sección (opcional si quieres ajustar algo) */
.btn-cta {
    padding: 15px 40px;
    font-size: 1.1rem;
}


/* Responsive */
@media (max-width: 768px) {
    .cta-section { height: 400px; }
    .cta-title { font-size: 2.5rem; }
    /* En móviles desactivamos el parallax complejo para ahorrar batería */
    .parallax-bg { height: 100%; transform: none !important; } 
}

/* --- SECCIÓN SERVICIOS --- */
.section-services {
    padding: 100px 0;
    background-color: var(--white);
    overflow: hidden; /* Para evitar scroll horizontal general de la pagina */
}

.section-header {
    margin-bottom: 50px;
    max-width: 600px;
}

.section-title {
    font-family: var(--titles);
    font-size: 2.5rem;
    color: var(--dark);
    line-height: 1.2;
}

/* --- SERVICIOS CON BOTONES --- */

/* 1. El Wrapper Relativo */
.services-wrapper {
    position: relative; 
    padding: 0 30px;
}

/* 2. Ocultar la barra de scroll (Estético) */
.services-scroller {
    /* Mantenemos tu flex y gap anteriores */
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 40px;
    
    /* Ocultar barra en Chrome/Safari/Edge */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE */
}
.services-scroller::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* 3. Estilos de los Botones Flotantes */
.service-btn {
    position: absolute;
    top: 50%; /* Centrado vertical */
    transform: translateY(-50%); /* Ajuste fino del centro */
    z-index: 10;
    
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--dark);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
}
.service-btn i{
    font-size: 1.5rem;
}

.service-btn:hover {
    background: var(--red);
    color: white;
    box-shadow: 0 10px 20px rgba(227, 30, 36, 0.3);
}

/* Posiciones */
.prev-service { left: -20px; } 
.next-service { right: -20px; }

/* Responsive: En móviles ocultamos botones y dejamos el scroll táctil */
@media (max-width: 768px) {
    .service-btn { display: none; }
    .services-wrapper { padding: 0; }
}

/* La Tarjeta de Servicio */
.service-card {
    flex: 0 0 300px; /* Ancho fijo: No crecer, No encoger, 300px base */
    background: white;
    border: 1px solid #eee;
    padding: 30px;
    text-decoration: none; /* Quitar subrayado del enlace */
    border-radius: 8px;
    transition: all 0.3s ease;
    scroll-snap-align: start; /* Donde se engancha al soltar */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Iconos */
.icon-box {
    margin-bottom: 10px;
}
.icon-box i {
    font-size: 80px;
    color: var(--red);
    transition: all 0.3s ease;
}

/* Tipografía Tarjeta */
.service-card h3 {
    font-family: var(--titles);
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card p {
    font-family: var(--cuerpo);
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
    margin-top: auto; /* Empuja el botón al fondo */
}

/* --- ANIMACIONES HOVER --- */
.service-card:hover {
    transform: translateY(-10px); /* Se eleva */
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: transparent;
}

.service-card:hover h3 {
    color: var(--red);
}

.service-card:hover .icon-box i {
    transform: scale(1.1);
    font-weight: bold; /* Phosphor permite simular negrita en hover */
}

.service-card:hover .read-more {
    color: var(--red);
}


/* --- SECCIÓN NUMBERS (Estadísticas) --- */
.section-stats {
    position: relative;
    padding: 30px 0;
    background-color: #1a1a1a; 
    color: white;
    overflow: hidden;
}

.text-white { color: white !important; }
.relative-z { position: relative; z-index: 2; }
.mb-50 { margin-bottom: 50px; }

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item {
    text-align: center;
    width: 200px; /* Ancho de cada bloque */
}

/* Contenedor del Círculo */
.circle-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 20px auto;
}

/* Estilos SVG */
.progress-ring__circle {
    /* El truco del círculo animado */
    stroke-dasharray: 440; /* Circunferencia total */
    stroke-dashoffset: 440; /* Empieza oculto (offset total) */
    transition: stroke-dashoffset 2s ease-out; /* La animación CSS */
    
    /* Girar para que empiece arriba al centro */
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

/* El texto dentro del círculo */
.stat-number-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: baseline;
    justify-content: center;
    color: white;
}

.stat-number-box .symbol {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--red);
    margin-right: 2px;
}

.stat-number-box .counter {
    font-family: var(--titles);
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
}

/* Etiqueta debajo del círculo */
.stat-label {
    font-family: var(--cuerpo);
    font-size: 1.1rem;
    font-weight: 600;
    color: #ccc;
    line-height: 1.3;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        flex-direction: column;
        align-items: center;
    }
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* --- INTERNAL PAGES HERO --- */

.internal-hero {
    position: relative;
    width: 100%;
    height: 80vh; 
    min-height: 400px; 
    display: flex;
    justify-content: center;
    align-items: center; 
    overflow: hidden;
    /* EL TRUCO PARA EL HEADER TRANSPARENTE: */
    margin-top: -100px; 
    padding-top: 100px; 
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); 
    z-index: 1;
}

.hero-content-internal {
    position: relative;
    z-index: 2; 
    color: white;
}

/* Tipografía del Hero */
.hero-content-internal .red-subtitle-page {
    font-family: var(--titles);
    color: var(--red);
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1rem;
    display: block;
    display: inline-block;
    padding-top: 25px;
    border-radius: 4px;
}

.hero-content-internal h1 {
    font-family: var(--titles);
    text-transform: uppercase;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* --- CUERPO DEL CONTENIDO --- */
.main-body-content {
    padding-top: 30px;
    background: white;
}


.content-wrapper-narrow {
    max-width: 80%;
    margin: 0 auto;   /* Centrado */
}

.entry-content {
    font-family: var(--cuerpo);
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.entry-content h2, 
.entry-content h3 {
    font-family: var(--titles);
    color: var(--dark);
    margin-top: 40px;
    margin-bottom: 20px;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.entry-content li {
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .internal-hero { height: 50vh; }
    .hero-content-internal h1 { font-size: 2.5rem; }
}
/* Bordes imagenes servicios */
.border-rounded img{
    border-radius: 50px 0 50px 0;
}

/* --- FOOTER STYLES --- */

.site-footer {
    background-color: #1a1a1a; /* Fondo Oscuro */
    color: #b0b0b0; /* Texto gris claro para leer bien sobre oscuro */
    font-size: 0.95rem;
    position: relative;
    z-index: 10;
}

.footer-main {
    padding: 80px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr; /* Columna 1 más ancha para el texto SEO */
    gap: 50px;
}

/* Títulos de columnas */
.footer-col h3 {
    color: var(--white);
    font-family: var(--titles);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

/* Pequeña línea roja bajo los títulos */
.footer-col h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--red);
    margin-top: 10px;
}

/* Columna 1: Logo y Desc */
.footer-logo img {
    height: 50px; /* Ajusta según tu logo */
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Truco CSS: Vuelve el logo BLANCO si es negro */
}

.footer-desc {
    line-height: 1.6;
    margin-bottom: 20px;
}
.footer-desc strong { color: white; }

/* Iconos Sociales */
.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-icons a:hover {
    background: var(--red);
    transform: translateY(-3px);
}

/* Columna 2: Menú Servicios */
.footer-menu {
    list-style: none;
    padding: 0;
}
.footer-menu li {
    margin-bottom: 12px;
}
.footer-menu a {
    color: #b0b0b0;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
}
/* Efecto de flecha al pasar el mouse */
.footer-menu a::before {
    content: '\f054'; /* Código FontAwesome chevron-right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 10px;
    margin-right: 8px;
    color: var(--red);
    opacity: 0;
    transform: translateX(-5px);
    transition: 0.3s;
}
.footer-menu a:hover {
    color: white;
    padding-left: 5px;
}
.footer-menu a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Columna 3: Contacto */
.contact-list {
    list-style: none;
    padding: 0;
}
.contact-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}
.contact-list i {
    color: var(--red);
    font-size: 1.1rem;
    margin-top: 5px;
}
.contact-list a {
    color: #b0b0b0;
    text-decoration: none;
    transition: 0.3s;
}
.contact-list a:hover { color: white; }
.contact-list span strong { color: white; }

/* Botón pequeño en footer */
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.mt-20 { margin-top: 20px; }

/* Barra Inferior */
.site-info-bar {
    background-color: #111; /* Un poco más oscuro que el footer */
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
}

.flex-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-info-bar a { color: white; text-decoration: none; }

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Una sola columna */
        gap: 40px;
    }
    
    .flex-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.post,
.page {
	margin: 0 0 1.5em;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}


