/*!
Theme Name: Elefantle
Theme URI: http://underscores.me/
Author: Tech Valley Honduras
Author URI: http://www.techvalleyhn.net
Description: Tema a medida para sitio corporativo Elefantle
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: elefantle
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Elefantle is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> 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

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

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

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 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: #4169e1;
}

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%;
}

/* 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;
}



/* ==========================================================================
   ESTILOS COMPLETOS ELEFANTLE (Corregido: Móvil, Contraste y Vidrio)
   ========================================================================== */

/* 1. RESET Y ESPACIO SUPERIOR */
body, html {
    margin: 0 !important;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #fff;
    /* Altura exacta del Header para que no haya huecos ni solapamientos */
    padding-top: 117px !important; 
}

/* 2. CONTENEDOR GENERAL */
.site {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* ==========================================================================
   HEADER PRINCIPAL
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 117px;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
}

.header-inner {
    width: 100%;
    max-width: 1920px; 
    height: 117px;     
    padding-left: 220px;
    padding-right: 220px;
    margin: 0 auto;    
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    box-sizing: border-box; 
}

.site-branding img {
    height: 50px; 
    width: auto;
    display: block;
}

.btn-corredor {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: #A55186;
    border: 1px solid #A55186;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 5px;
    transition: all 0.3s ease;
    background-color: transparent;
    white-space: nowrap; 
}

.btn-corredor:hover {
    background-color: #A55186;
    color: #fff;
}

/* ==========================================================================
   SECCIÓN 1: HERO (Texto Negro + Halo Fino + Cielo Prioritario)
   ========================================================================== */

.hero-section {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 117px); 
    
    background-image: url('assets/img/hero-background.webp'); 
    
    /* CAMBIO CLAVE: 'center top'
       Esto obliga a que se vea siempre el CIELO en la parte superior,
       para que el texto negro tenga un fondo claro natural. */
    background-position: center top; 
    
    background-size: cover; 
    background-repeat: no-repeat;
    
    display: flex;
    align-items: center; 
    padding-top: 60px; 
    padding-bottom: 60px;
}

.hero-container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding-left: 220px; 
    padding-right: 220px;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    flex-wrap: wrap;
}

/* --- TEXTOS IZQUIERDA --- */
.hero-content {
    flex: 1;
    max-width: 600px;
    padding-right: 50px;
}

/* TÍTULO PRINCIPAL */
.hero-content h1 {
    font-size: 48px;
    line-height: 1.1; 
    font-weight: 700;
    
    /* VOLVEMOS AL NEGRO */
    color: #000000; 
    
    margin-top: 0;
    margin-bottom: 20px;
    
    /* NUEVO HALO: Blanco sólido pero pequeño (solo 10px de radio) 
       Esto separa la letra del fondo sin que parezca una mancha grande */
    /*text-shadow: 0 0 7px #ffffff, 0 0 5px #ffffff;*/
}

/* SUBTÍTULO */
.hero-subtitle {
    font-size: 18px;
    color: #000000; 
    font-weight: 700; 
    margin-bottom: 15px;
    line-height: 1.4;
    /* Halo sutil */
    /* text-shadow: 0 0 5px #ffffff;*/
}

/* DESCRIPCIÓN */
.hero-description {
    font-size: 16px; 
    color: #000000;     
    font-weight: 400; 
    line-height: 1.6;
    max-width: 500px;
    /* Halo sutil */
   /* text-shadow: 0 0 5px #ffffff;*/
}

/* --- BUSCADOR DERECHA (Vidrio Limpio) --- */
.hero-search-box {
    width: 320px; 
    background: rgba(255, 255, 255, 0.25); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px); 
    border: 1px solid rgba(255, 255, 255, 0.5); 
    padding: 30px;
    border-radius: 20px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); 
}

.hero-search-box h2 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #222; 
    text-shadow: none; /* Sin halo en la caja blanca */
}

.form-group { margin-bottom: 15px; }

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #222;
    text-shadow: none;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.6); 
    border-radius: 8px;
    font-size: 13px;
    color: #444;
    background-color: rgba(255,255,255,0.9); 
    outline: none;
    transition: all 0.3s;
}

.form-group input:focus, .form-group select:focus {
    border-color: #A55186; 
}

.btn-buscar {
    width: 100%;
    background-color: #A55186; 
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
    text-align: center;
}

.btn-buscar:hover { background-color: #8a3a61; }

/* ==========================================================================
   SECCIÓN 2: BARRA DE ESTADÍSTICAS (Morada)
   ========================================================================== */

.stats-section {
    width: 100%;
    /* Degradado morado similar a la marca */
    background: linear-gradient(90deg, #A55186 0%, #8E4472 100%);
    padding: 80px 20px; /* Espacio arriba y abajo */
    text-align: center;
    color: #ffffff;
    position: relative;
    z-index: 5; /* Para asegurar que esté sobre cualquier capa inferior */
}

.stats-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Título (+1000...) */
.stats-title {
    font-size: 42px;
    font-weight: 400; /* Letra un poco más fina como en la imagen */
    margin-bottom: 20px;
    color: #ffffff;
}

/* El número que se mueve */
.counter {
    font-weight: 600; /* El número un poco más grueso */
}

/* Párrafo */
.stats-description p {
    font-size: 18px;
    line-height: 1.5;
    font-weight: 300;
    margin: 0;
    color: rgba(255, 255, 255, 0.9); /* Blanco al 90% para jerarquía */
}

/* RESPONSIVE DE ESTA SECCIÓN */
@media screen and (max-width: 768px) {
    .stats-section {
        padding: 50px 20px;
    }
    
    .stats-title {
        font-size: 28px; /* Más pequeño en móvil */
    }
    
    .stats-description p {
        font-size: 16px;
    }
    
    /* Quitamos el salto de línea <br> en móvil para que fluya natural */
    .stats-description br {
        display: none;
    }
}

/* ==========================================================================
   SECCIÓN 3: BENEFICIOS (Iconos y Texto)
   ========================================================================== */

.features-section {
    padding: 80px 20px;
    background-color: #ffffff;
    text-align: center;
}

.features-container {
    max-width: 1400px; /* Ancho amplio para que quepan los 4 */
    margin: 0 auto;
}

/* Cabecera */
.features-header {
    margin-bottom: 60px;
}

.features-header h2 {
    font-size: 36px;
    font-weight: 300; /* Letra fina como en la imagen */
    color: #333;
    margin-bottom: 10px;
}

.features-subtitle {
    font-size: 24px;
    font-weight: 300;
    color: #555;
    margin-top: 0;
}

/* Grilla de Iconos */
.features-grid {
    display: flex;
    justify-content: space-between; /* Distribuye espacio entre los 4 */
    flex-wrap: wrap; /* Permite que bajen si no hay espacio */
    gap: 40px;
}

/* Cada Item individual */
.feature-item {
    flex: 1; /* Todos ocupan el mismo ancho */
    min-width: 250px; /* Ancho mínimo para que no se aplasten */
    padding: 0 10px;
}

.feature-item img {
    height: 80px; /* Tamaño del icono */
    width: auto;
    margin-bottom: 25px;
    /* Si tus SVG no son morados, podemos forzar color con filtro aquí, 
       pero mejor que el SVG venga ya con color. */
}

.feature-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 15px;
    line-height: 1.5;
    color: #444;
    max-width: 280px; /* Evita que el texto se estire demasiado */
    margin: 0 auto; /* Centra el texto */
}

/* RESPONSIVE DE ESTA SECCIÓN */
@media screen and (max-width: 1024px) {
    /* En Tablet: 2 arriba y 2 abajo */
    .features-grid {
        justify-content: center;
    }
    
    .feature-item {
        flex: 0 0 45%; /* Ocupan casi la mitad */
        margin-bottom: 40px;
    }
}

@media screen and (max-width: 768px) {
    /* En Celular: Uno debajo del otro */
    .features-header h2 { font-size: 28px; }
    .features-subtitle { font-size: 18px; }
    
    .feature-item {
        flex: 0 0 100%; /* Ocupa todo el ancho */
        margin-bottom: 50px;
    }
}


/* ==========================================================================
   SECCIÓN 4: CAJA FLOTANTE (Dimensiones y Coordenadas Exactas)
   ========================================================================== */

.how-it-works-section {
    position: relative;
    width: 100%;
    min-height: 800px; /* Altura suficiente para que la caja respire */
    
    background-image: url('assets/img/mujer-con-celular.webp'); 
    background-position: center center;
    background-size: cover;
    background-attachment: fixed; /* Parallax */
    
    /* COORDENADA Y: Esto centra la caja verticalmente de forma automática */
    display: flex;
    align-items: center; 
    
    padding: 0; /* Quitamos padding porque usaremos la caja flotante */
    color: #ffffff; 
    overflow: hidden; 
}

/* DEGRADADO CONTROLADO */
.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* EL DEGRADADO:
       - 0% a 40%: Negro sólido (Cubre la caja de texto)
       - 40% a 70%: Se desvanece suavemente
       - 100%: Transparente (Deja ver a la mujer) */
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 35%, rgba(0, 0, 0, 0) 75%);
    
    z-index: 1; 
}

.how-it-works-container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    position: relative;
    z-index: 2; 
    display: flex;
}

/* --- LA CAJA FLOTANTE (570px x 460px) --- */
.floating-box {
    /* DIMENSIONES EXACTAS */
    width: 530px;
    height: 460px;
    
    /* PADDING INTERNO */
    padding: 20px; 
    
    /* COORDENADA X (Horizontal) */
    /* Esto empuja la caja hacia la derecha.
       380px es un buen punto de partida para pantallas grandes */
    margin-left: 100px; 
    
    /* Centrado vertical del contenido interno */
    display: flex;
    flex-direction: column;
    justify-content: center;
    
    /* Opcional: Si quieres ver la caja para guiarte, descomenta esto: */
    /* border: 1px solid red; */
}

/* TÍTULO */
.floating-box h2 {
    font-size: 48px; 
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 22px; 
    color: #ffffff;
    line-height: 1.1;
}

/* SUBTÍTULO */
.floating-box .subtitle {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 40px; 
    opacity: 1;
    color: #f0f0f0;
}

/* LISTA */
.steps-list {
    list-style: none; 
    padding: 0;
    margin: 0;
}

.steps-list li {
    font-size: 18px;
    line-height: 1.4;
    padding: 18px 0; /* Ajustado para que quepa bien en la altura fija */
    border-bottom: 1px solid rgba(255, 255, 255, 0.5); 
    font-weight: 400;
}

/* ==========================================================================
   RESPONSIVE (Para que la caja fija no se rompa en pantallas chicas)
   ========================================================================== */

@media screen and (max-width: 1200px) {
    /* En laptops medianas, acercamos la caja a la izquierda */
    .floating-box {
        margin-left: 100px; 
    }
}

@media screen and (max-width: 768px) {
    .how-it-works-section {
        min-height: auto;
        padding: 60px 0;
        background-attachment: scroll;
        background-position: 70% center; 
    }
    
    /* En móvil, la caja deja de ser fija para adaptarse a la pantalla */
    .floating-box {
        width: 100%; /* Ancho automático */
        height: auto; /* Altura automática */
        margin-left: 0; /* Sin margen izquierdo */
        padding: 0 20px; /* Padding lateral simple */
    }

    .overlay-gradient {
        /* Degradado más oscuro en móvil para leer bien */
        background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 100%);
    }

    .floating-box h2 { font-size: 32px; }
    .steps-list br { display: none; } /* Ocultar saltos de línea forzados */
}


/* ==========================================================================
   SECCIÓN 5: EXPERTOS (Estilo Limpio)
   ========================================================================== */

.experts-section {
    background-color: #ffffff;
    padding: 80px 20px;
    text-align: center;
}

.experts-container {
    max-width: 1400px; /* Ancho amplio para que quepan los 6 */
    margin: 0 auto;
}

/* Título */
.experts-title {
    font-size: 36px;
    font-weight: 300; /* Letra fina (Light) */
    color: #222;
    margin-bottom: 60px;
    line-height: 1.3;
}

/* Grilla Flexible */
.experts-grid {
    display: flex;
    justify-content: center; /* Centrados */
    flex-wrap: wrap; /* Si no caben, bajan */
    gap: 40px; /* Espacio entre cada experto */
}

/* Tarjeta Individual */
.expert-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px; /* Ancho fijo para mantener uniformidad */
}

/* Círculo de la Foto */
.expert-photo-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%; /* Círculo perfecto */
    overflow: hidden; /* Recorta la foto si es cuadrada */
    margin-bottom: 20px;
    background-color: #eee; /* Color de fondo por si la imagen no carga */
}

.expert-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la cara llene el círculo sin deformarse */
}

/* Nombre */
.expert-card h3 {
    font-size: 18px;
    font-weight: 400;
    color: #000;
    margin: 0 0 5px 0;
}

/* Nivel (Conejo, Leopardo...) */
.expert-level {
    font-size: 14px;
    color: #666; /* Gris suave */
    margin-bottom: 10px;
    font-weight: 300;
}

/* Estrellas */
.expert-stars {
    color: #A55186; /* MORADO DE LA MARCA */
    font-size: 18px;
    letter-spacing: 2px; /* Separar un poco las estrellas */
}

/* RESPONSIVE */
@media screen and (max-width: 1024px) {
    .experts-grid {
        justify-content: center;
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    .experts-title {
        font-size: 28px;
    }
    
    .experts-grid {
        gap: 30px;
    }
    
    /* En móvil mostramos 2 por fila */
    .expert-card {
        width: 45%; 
    }
}


/* ==========================================================================
   SECCIÓN 6: TABLA COMPARATIVA (Gris Oscuro)
   ========================================================================== */

.comparison-section {
    background-color: #444444; /* Gris oscuro según imagen */
    padding: 80px 20px;
    color: #ffffff;
    display: flex;
    justify-content: center;
}

.comparison-container {
    width: 100%;
    max-width: 900px; /* Ancho contenido para que se vea elegante */
}

/* Título */
.comparison-title {
    text-align: center;
    font-size: 36px;
    font-weight: 300; /* Letra fina */
    margin-bottom: 60px;
    color: #ffffff;
}

/* Estructura de la Tabla (Flexbox) */
.comparison-table {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.table-row {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* Línea divisoria sutil */
    font-size: 18px;
    font-weight: 300;
}

/* Quitamos el borde a la última fila para que se vea limpio */
.table-row:last-child {
    border-bottom: none;
}

/* COLUMNAS */
.col-feature {
    flex: 1.2; /* La columna de características es un poco más ancha */
    color: #dddddd; /* Gris muy claro */
}

.col-elefantle {
    flex: 1;
    font-weight: 500; /* Texto un poco más grueso para resaltar Elefantle */
    display: flex;
    align-items: center;
    gap: 10px;
}

.col-others {
    flex: 1;
    color: #cccccc;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Cabecera (Títulos de columnas) */
.header-row {
    font-weight: 600;
    font-size: 20px;
    padding-bottom: 25px;
    border-bottom: 2px solid #ffffff; /* Línea un poco más gruesa en cabecera */
    margin-bottom: 10px;
}

/* ICONOS (Hechos con CSS puro para no cargar imágenes) */

/* Check Verde */
.icon-check {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    background-color: #4CD964; /* Verde brillante tipo iOS */
    color: #fff;
    border-radius: 50%; /* Círculo perfecto */
    font-size: 14px;
    font-weight: bold;
}

/* X Roja/Rosa */
.icon-cross {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    /* Usamos el color magenta/rosa de la marca o similar a la imagen */
    background-color: #E91E63; 
    color: #fff;
    border-radius: 50%; /* Círculo perfecto */
    font-size: 12px;
    font-weight: bold;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    .comparison-title {
        font-size: 28px;
    }
    
    .table-row {
        flex-wrap: wrap; /* Permite que bajen en celular */
        font-size: 16px;
    }
    
    .col-feature {
        flex: 0 0 100%; /* Ocupa todo el ancho arriba */
        margin-bottom: 10px;
        font-weight: 600;
        color: #fff;
    }
    
    .col-elefantle, .col-others {
        flex: 0 0 50%; /* Mitad y mitad abajo */
    }
    
    /* Ocultamos la cabecera en móvil porque repetimos la lógica visualmente */
    .header-row {
        display: none;
    }
}

/* ==========================================================================
   SECCIÓN 7: FINAL CTA (Elefantes + Formulario)
   ========================================================================== */

.final-search-section {
    position: relative;
    width: 100%;
    min-height: 700px; /* Altura generosa para ver la imagen */
    
    /* IMAGEN DE FONDO */
    background-image: url('assets/img/hero-3-background.webp'); 
    background-position: center center; 
    background-size: cover; 
    background-repeat: no-repeat;
    
    display: flex;
    align-items: center; 
    justify-content: flex-end; /* ALINEACIÓN CLAVE: Manda todo a la derecha */
    
    padding: 80px 0;
}

.final-search-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
    
    display: flex;
    justify-content: flex-end; /* El contenido se pega a la derecha */
    align-items: flex-start; /* Alineación superior entre texto y form */
    gap: 60px; /* Espacio entre el texto y el formulario */
}

/* TEXTO (Lado Izquierdo del grupo) */
.final-search-text {
    text-align: right; /* Texto alineado a la derecha */
    color: #ffffff;
    padding-top: 20px; /* Para alinear visualmente con el inicio del form */
}

.final-search-text h2 {
    font-size: 36px;
    font-weight: 400; /* Letra más fina */
    margin: 0 0 15px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.final-search-text p {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.4;
    margin: 0;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* FORMULARIO (Mismo estilo "Vidrio" que el Hero) */
.final-search-box {
    width: 320px; 
    background: rgba(255, 255, 255, 0.25); /* Transparencia Vidrio */
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px); 
    border: 1px solid rgba(255, 255, 255, 0.5); 
    padding: 30px;
    border-radius: 20px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); 
    flex-shrink: 0; /* Evita que se aplaste */
}

/* Reutilizamos los estilos de inputs del Hero, 
   pero aseguramos que se vean bien aquí */
.final-search-box label {
    color: #222; /* Texto oscuro para labels */
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    font-size: 13px;
}

/* RESPONSIVE */
@media screen and (max-width: 1024px) {
    .final-search-section {
        justify-content: center; /* En tablet centramos todo */
        background-position: 70% center; /* Movemos imagen para ver elefantes */
    }
    
    .final-search-container {
        flex-direction: column; /* Uno encima del otro */
        align-items: center;
        justify-content: center;
        gap: 40px;
    }
    
    .final-search-text {
        text-align: center; /* Texto centrado en tablet */
    }
}

@media screen and (max-width: 768px) {
    .final-search-section {
        padding: 60px 20px;
        min-height: auto;
    }

    .final-search-box {
        width: 100%;
        max-width: 350px;
        background: rgba(255, 255, 255, 0.85); /* Más sólido en móvil para legibilidad */
    }
    
    .final-search-text h2 { font-size: 28px; }
    .final-search-text p { font-size: 16px; }
}

/* ==========================================================================
   SECCIÓN 8: CIERRE DE MARCA (Estilos + Animación Scroll)
   ========================================================================== */

.brand-closing-section {
    background-color: #ffffff; 
    padding: 120px 20px;
    text-align: center;
    overflow: hidden;
}

.closing-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* LOGO */
.closing-logo {
    height: 50px; 
    width: auto;
    margin-bottom: 40px; 
    display: block;
}

/* TEXTO */
.closing-text {
    font-family: 'Roboto', sans-serif;
    font-size: 38px;
    font-weight: 300; 
    color: #222222;   
    line-height: 1.3;
    margin: 0;
}

/* --- CLASES PARA ANIMACIÓN CON JAVASCRIPT --- */

/* 1. Estado Inicial (Invisible y desplazado abajo) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

/* 2. Estado Visible (Cuando JS agrega esta clase) */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Retraso para que el texto salga después del logo */
.delay-200 {
    transition-delay: 0.2s;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    .brand-closing-section { padding: 80px 20px; }
    .closing-logo { height: 40px; margin-bottom: 30px; }
    .closing-text { font-size: 26px; font-weight: 400; }
}

/* ==========================================================================
   FOOTER (PIE DE PÁGINA)
   ========================================================================== */
.site-footer {
    background-color: #333333;
    color: #ffffff;
    padding: 60px 0;
    font-size: 14px;
    width: 100%;
    position: relative; 
    z-index: 10;
    display: block;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col-left { flex: 1; min-width: 300px; }
.footer-branding img { max-width: 150px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-tagline { opacity: 0.8; margin-bottom: 30px; max-width: 300px; }
.footer-contact p { margin: 5px 0; opacity: 0.9; }
.site-info { margin-top: 40px; font-size: 12px; opacity: 0.5; }

.footer-col-right {
    flex: 1; min-width: 300px;
    display: flex; flex-direction: column; align-items: flex-end; text-align: right;
}
.footer-links { margin-bottom: 30px; }
.footer-links a { color: #fff; text-decoration: none; margin-left: 20px; font-weight: 500; transition: color 0.3s; }
.footer-links a:hover { color: #A55186; }
.footer-apps h4 { margin-bottom: 15px; font-weight: 400; }
.app-buttons { display: flex; gap: 10px; justify-content: flex-end; margin-bottom: 30px; }
.btn-store { background: #000; border: 1px solid #555; color: #fff; padding: 8px 15px; border-radius: 5px; text-decoration: none; font-size: 12px; }
.footer-social { display: flex; gap: 15px; }
.social-icon { width: 35px; height: 35px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; font-size: 12px; font-weight: bold; }
.social-icon:hover { background: #A55186; }


/* ==========================================================================
   RESPONSIVE MAESTRO (Ajustado para priorizar el cielo)
   ========================================================================== */

/* 1. PANTALLAS GRANDES Y LAPTOPS (Max 1600px) */
@media screen and (max-width: 1600px) {
    .header-inner, 
    .hero-container {
        padding-left: 50px; 
        padding-right: 50px;
    }
}

/* 2. TABLETS Y IPAD (Max 1024px) */
@media screen and (max-width: 1024px) {
    /* En Tablet también forzamos ver el cielo arriba */
    .hero-section {
        background-position: center top; 
    }

    .hero-container {
        flex-direction: column; 
        align-items: center;
        justify-content: center;
        text-align: center;
        padding-top: 40px;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        max-width: 80%; 
    }
    
    .hero-content h1 {
        font-size: 40px; 
    }
}

/* 3. CELULARES (Max 768px) */
@media screen and (max-width: 768px) {
    
    /* Ajustes Header Móvil */
    body { padding-top: 80px !important; }
    .site-header, .header-inner { height: 80px; }
    .header-inner { padding-left: 20px; padding-right: 20px; }
    .site-branding img { height: 35px; }
    .btn-corredor { font-size: 12px; padding: 8px 12px; }

    /* Ajustes Hero Móvil */
    .hero-section {
        min-height: auto;
        padding-top: 30px;
        padding-bottom: 50px;
        
        /* TRUCO PARA MÓVIL: 
           'center top' mantiene el cielo arriba.
           Si aún así el elefante tapa el texto, podemos probar '65% top'
           pero 'center top' suele ser lo más seguro para ver el cielo. */
        background-position: center top; 
    }

    .hero-container {
        padding-left: 20px;
        padding-right: 20px;
        gap: 30px;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .hero-content h1 {
        font-size: 32px; /* Título controlado */
    }
    
    /* Buscador Móvil: Vidrio Activado */
    .hero-search-box {
        width: 100%; 
        max-width: 350px;
        background: rgba(255, 255, 255, 0.25); 
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }

    /* Ajustes Footer Móvil */
    .footer-container { flex-direction: column; text-align: center; }
    .footer-col-right { align-items: center; text-align: center; }
    .footer-links a { display: block; margin: 10px 0; }
    .app-buttons { justify-content: center; }
}