/**
* Template Name: iPortfolio
* Template URL: https://bootstrapmade.com/iportfolio-bootstrap-portfolio-websites-template/
* Updated: Jun 29 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* Fonts */
:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway",  sans-serif;
  --nav-font: "Poppins",  sans-serif;
}

/* #149ddd --> #e3913b*/
/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #272829; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #050d18; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #e3913b; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
  --other1-color: #9198a1;
  --other2-color: #ff8000;
  --other3-color: #9b999e;
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #a8a9b4;  /* The default color of the main navmenu links */
  --nav-hover-color: #ffffff; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #040b14; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #040b14; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #a8a9b4; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #ffffff; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #f4fafd;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #040b14;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #151f2b;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}



:root {
            /* Colores para el estilo formal (oscuro) */
            --formal-primary: #1a1a2e;
            --formal-secondary: #16213e;
            --formal-accent: #0f3460;
            --formal-text: #ffffff;
            --formal-overlay: rgba(0, 0, 0, 0.6);
            
            /* Colores para el estilo innovador (claro) */
            --innovador-primary: #f8f9fa;
            --innovador-secondary: #e9ecef;
            --innovador-accent: #ced4da;
            --innovador-text: #212529;
            --innovador-overlay: rgba(255, 255, 255, 0.8);
            
            /* Configuración general */
            --section-height: 100vh;
            --content-max-width: 1200px;
            --border-radius: 12px;
            --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            --transition: all 0.4s ease;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            font-size: 1.1rem;
        }
        
        body {
            overflow-x: hidden;
        }
        
/* Estilos base para secciones parallax */
.parallax-section {
    position: relative;
    min-height: var(--section-height);
    display: flex;
    align-items: center;
    justify-content: center;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    max-width: var(--content-max-width);
    width: 90%;
    padding: 40px;
    border-radius: var(--border-radius);
    animation: fadeInUp 1s ease-out;
    box-shadow: var(--box-shadow);
}

/* Estilo Formal (oscuro) */
.formal .parallax-overlay {
    background-color: var(--formal-overlay);
}

.formal .parallax-content {
    background: linear-gradient(135deg, var(--formal-primary), var(--formal-secondary));
    color: var(--formal-text);
    border-left: 5px solid var(--formal-accent);
}

.formal h1, .formal h2, .formal h3, .formal h4 {
    color: var(--formal-text);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.formal h1 {
    font-size: 2.8rem;
    animation: glow 2s infinite alternate;
}

.formal h2 {
    font-size: 2.5rem;
    border-bottom: 2px solid var(--formal-accent);
    padding-bottom: 10px;
}

.formal h3 {
    font-size: 2rem;
}

.formal h4 {
    font-size: 1.5rem;
}

.formal ul, .formal ol {
    margin: 20px 0;
    padding-left: 30px;
}

.formal li {
    margin-bottom: 10px;
    position: relative;
}

.formal li::before {
    content: "▶";
    color: var(--formal-accent);
    position: absolute;
    left: -20px;
    animation: pulse 1.5s infinite;
}

/* Estilo Innovador (claro) */
.innovador .parallax-overlay {
    background-color: var(--innovador-overlay);
}

.innovador .parallax-content {
    background: linear-gradient(135deg, var(--innovador-primary), var(--innovador-secondary));
    color: var(--innovador-text);
    border-right: 5px solid var(--innovador-accent);
}

.innovador h1, .innovador h2, .innovador h3, .innovador h4 {
    color: var(--innovador-text);
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.innovador h1 {
    font-size: 3.5rem;
    background: linear-gradient(45deg, #474b4e, #ff4d00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: slideIn 1.5s ease-out;
}

.innovador h2 {
    font-size: 2.5rem;
    border-bottom: 2px solid var(--innovador-accent);
    padding-bottom: 10px;
}

.innovador h3 {
    font-size: 2rem;
}

.innovador h4 {
    font-size: 1.5rem;
}

.innovador ul, .innovador ol {
    margin: 20px 0;
    padding-left: 30px;
}

.innovador li {
    margin-bottom: 10px;
    position: relative;
}

.innovador li::before {
    content: "★";
    color: #007bff;
    position: absolute;
    left: -20px;
    animation: spin 3s linear infinite;
}

/* Layout de columnas */
.columns-1 {
    display: block;
}

.columns-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .columns-2 {
        grid-template-columns: 1fr;
    }
}

/* Soluciones para texto largo */

/* Solución 1: Scroll interno */
.scroll-content {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 15px;
}

.scroll-content::-webkit-scrollbar {
    width: 8px;
}

.formal .scroll-content::-webkit-scrollbar-track {
    background: var(--formal-secondary);
}

.formal .scroll-content::-webkit-scrollbar-thumb {
    background: var(--formal-accent);
    border-radius: 4px;
}

.innovador .scroll-content::-webkit-scrollbar-track {
    background: var(--innovador-secondary);
}

.innovador .scroll-content::-webkit-scrollbar-thumb {
    background: var(--innovador-accent);
    border-radius: 4px;
}

/* Solución 2: Imagen en cascada */
.cascade-parallax {
    background-repeat: repeat-y;
    background-size: cover;
}

/* Solución 3: Múltiples imágenes */
.multi-image {
    background-attachment: scroll;
}

.image-sequence {
    display: none;
}

.image-sequence.active {
    display: block;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #0f3460, 0 0 20px #0f3460;
    }
    to {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #0f3460, 0 0 40px #0f3460;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Controles de configuración */
.config-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    width: 250px;
}

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

.config-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9rem;
}

.config-group select, .config-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.overlay-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.overlay-control input {
    flex: 1;
}

.overlay-value {
    min-width: 40px;
    text-align: center;
    font-weight: bold;
}

.toggle-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.toggle-buttons button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-buttons .formal-btn {
    background: var(--formal-primary);
    color: white;
}

.toggle-buttons .innovador-btn {
    background: var(--innovador-primary);
    color: var(--innovador-text);
    border: 1px solid var(--innovador-accent);
}

.toggle-buttons button.active {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Estilos para mostrar/ocultar panel de configuración */
.config-toggle {
    position: fixed;
    top: 14px;
    right: 60px;
    background: #333;
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.config-panel.hidden {
    display: none;
}



/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}


/* Imagen de fondo para body */
contenedor {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #e6e6e6;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.section-with-background {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 40px;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/img/stock/fondo01a.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.color-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 12, 163, 0.85) 0%, rgba(114, 9, 183, 0.75) 100%);
    z-index: 2;
}

.content {
    position: relative;
    z-index: 3;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.content p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 25px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ff3366;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #ff4d7c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 51, 102, 0.4);
}

.controls {
    background-color: #2d2d4d;
    padding: 25px;
    border-radius: 12px;
    width: 100%;
    margin-bottom: 40px;
}

.controls h3 {
    margin-bottom: 20px;
    text-align: center;
    color: #b19cd9;
}

.color-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.color-option label {
    margin-bottom: 8px;
    font-weight: 500;
}

.color-input {
    width: 80px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 5px;
    cursor: pointer;
}

.instructions {
    background-color: #2d2d4d;
    padding: 25px;
    border-radius: 12px;
    width: 100%;
    line-height: 1.6;
}

.instructions h3 {
    margin-bottom: 15px;
    color: #b19cd9;
}

.instructions ul {
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 10px;
}

.code-example {
    background-color: #1e1e3f;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    overflow-x: auto;
    font-family: monospace;
}

@media (max-width: 768px) {
    .section-with-background {
        height: 400px;
    }
    
    .content {
        padding: 20px;
    }
    
    .content h2 {
        font-size: 1.8rem;
    }
}



/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  background-color: var(--background-color);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 0 15px;
  width: 300px;
  transition: all ease-in-out 0.3s;
  overflow-y: auto;
  z-index: 997;
  border-right: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.header .profile-img img {
  margin: 15px auto;
  display: block;
  width: 120px;
  border: 8px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.header .logo {
  line-height: 1;
  margin-bottom: 15px;
}

.header .logo img {
  max-height: 32px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 24px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

.header .social-links {
  margin: 0 0 20px 0;
}

.header .social-links a {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  color: var(--default-color);
  margin: 0 2px;
  border-radius: 50%;
  text-align: center;
  width: 40px;
  height: 40px;
  transition: 0.3s;
}

.header .social-links a:hover {
  color: var(--contrast-color);
  background: var(--accent-color);
}

@media (min-width: 1200px) {

  .header~main,
  .header~#footer {
    margin-left: 300px;
  }
}

@media (max-width: 1199px) {
  .header {
    left: -100%;
  }
}

.header.header-show {
  left: 0;
}

.header .header-toggle {
  color: var(--contrast-color);
  background-color: var(--other2-color);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 9999;
  transition: background-color 0.3s;
}

.header .header-toggle:hover {
  color: var(--contrast-color);
  background-color: color-mix(in srgb, var(--accent-color) 90%, white 15%);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.mobile-nav-toggle {
  display: none;
}

.navmenu {
  padding: 0;
  z-index: 9997;
}

.navmenu ul {
  list-style: none;
  padding: 0 0 20px 0;
  margin: 0;
}

.navmenu a,
.navmenu a:focus {
  color: var(--nav-color);
  padding: 15px 10px;
  font-family: var(--nav-font);
  font-size: 16px;
  font-weight: 400;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: 0.3s;
  width: 100%;
}

.navmenu a .navicon,
.navmenu a:focus .navicon {
  font-size: 20px;
  margin-right: 10px;
}

.navmenu a .toggle-dropdown,
.navmenu a:focus .toggle-dropdown {
  font-size: 12px;
  line-height: 0;
  margin-left: auto;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.3s;
  flex-shrink: 0;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.navmenu a .toggle-dropdown:hover,
.navmenu a:focus .toggle-dropdown:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus {
  color: var(--nav-hover-color);
}

.navmenu a:hover .navicon,
.navmenu .active .navicon,
.navmenu .active:focus .navicon {
  color: var(--accent-color);
}

.navmenu .active .toggle-dropdown,
.navmenu .active:focus .toggle-dropdown {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: rotate(180deg);
}

.navmenu .dropdown {
  display: block;
}

.navmenu .dropdown a,
.navmenu .dropdown a:focus {
  color: --nav-dropdown-color;
}

.navmenu .dropdown a:hover,
.navmenu .dropdown .active,
.navmenu .dropdown .active:focus {
  color: var(--nav-dropdown-hover-color);
}

.navmenu .dropdown ul {
  position: static;
  display: none;
  z-index: 99;
  padding: 5px 10px;
  margin: 5px 10px;
  background-color: var(--nav-dropdown-background-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  box-shadow: none;
  transition: all 0.5s ease-in-out;
}

.navmenu .dropdown ul ul {
  background-color: rgba(33, 37, 41, 0.1);
}

.navmenu .dropdown>.dropdown-active {
  display: block;
  background-color: rgba(33, 37, 41, 0.03);
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  padding: 40px 0;
  position: relative;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 4px;
  font-size: 13px;
  text-align: center;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 333px;
  bottom: -27px;
  z-index: 1000;
  background-color: var(--other2-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 27px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 19px;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 25px 0;
  position: relative;
}

.page-title h1 {
  font-size: 24px;
  font-weight: 700;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.page-title .breadcrumbs ol li+li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  overflow: clip;
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  bottom: 0;
}

.section-title p {
  margin-bottom: 0;
}

span{
  word-break:break-all;
  overflow-wrap: break-word;
  display:inline-block;
  max-width:100%;
}

button {
  color: var(--contrast-color);
  background: var(--other2-color);
  border: 0;
  padding: 10px 30px;
  transition: 0.4s;
  border-radius: 50px;
}

.button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 25%);
}

/*--------------------------------------------------------------
# Hero Section
Imagen de fondo - INICIO
--------------------------------------------------------------*/
.hero {
  background-image: url('../img/stock/fondo01.png');
  background-size: cover;
  background-position: center;

  width: 100%;
  min-height: 100vh;
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}


 /* Section con gradiente sobre imagen */
.gradient-overlay {
  background: 
      linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
      url('../img/bg/hero-bg3a.png');
  background-size: cover;
  background-position: center;
  height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  padding: 40px;
}

  /* Section con patrón repetitivo */
.pattern {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.9);
  /* background: linear-gradient(135deg, #4b1c02 0%, #321800 100%); */
  /* background-image: url('../img/bg/hero-bg25.jpg'); */
  /* background-image: url('../img/bg/hero-bg27.jpg'); */
  /* opacity: 0.5;
  z-index: -1; */
  background-image: linear-gradient(rgba(255,255,255,0.7),rgba(255,255,255,0.7)), url('../img/bg/hero-bg25.jpg');
  background-size: cover;
  background-repeat: repeat;
  padding: 60px 20px;
  text-align: center;
  color: black;
}

.pattern .text-container{
  color: black;
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.pattern h2,h3,h4,h5{
  color: black;
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

  /* Section con patrón repetitivo */
.pattern2 {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.9);
  /* background: linear-gradient(135deg, #4b1c02 0%, #321800 100%); */
  /* background-image: url('../img/bg/hero-bg25.jpg'); */
  /* background-image: url('../img/bg/hero-bg27.jpg'); */
  /* opacity: 0.5;
  z-index: -1; */
  background-image: linear-gradient(rgba(255,255,255,0.7),rgba(255,255,255,0.7)), url('../img/bg/hero-bg11.jpg');
  background-size: cover;
  background-repeat: repeat;
  padding: 60px 20px;
  text-align: center;
  color: black;
}

.pattern2 .text-container{
  color: black;
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.pattern2 h2,h3,h4,h5{
  color: black;
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

  /* Section con patrón repetitivo */
.pattern3 {
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.9);
  /* background: linear-gradient(135deg, #4b1c02 0%, #321800 100%); */
  /* background-image: url('../img/bg/hero-bg25.jpg'); */
  /* background-image: url('../img/bg/hero-bg27.jpg'); */
  /* opacity: 0.5;
  z-index: -1; */
  background-image: linear-gradient(rgba(255,255,255,0.7),rgba(255,255,255,0.7)), url('../img/bg/hero-bg10.jpg');
  background-size: cover;
  background-repeat: repeat;
  padding: 60px 20px;
  text-align: center;
  color: black;
}

.pattern3 .text-container{
  color: black;
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.pattern3 h2,h3,h4,h5{
  color: black;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Contenido para mejor visualización */
.content {
  max-width: 800px;
  margin: 0 auto;
}

.content-box {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #333;
}

h1, h2 {
  margin-top: 0;
}
/*Imagen de fondo - FIN*/

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero:before {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 70%);
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero h2 {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
}

.hero p {
  margin: 5px 0 0 0;
  font-size: 26px;
}

.hero p span {
  /* color: var(--other2-color); */
  color: rgba(255, 255, 255, 1);
  letter-spacing: 1px;
  border-bottom: 4px solid var(--other2-color);
  /* background: rgba(255, 255, 255, 0.47); */
  background: var(--other2-color);
  backdrop-filter: blur(10px); /* Efecto de desenfoque */
}

.hero .social-links {
  margin-top: 25px;
}

.hero .social-links a {
  font-size: 24px;
  display: inline-block;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  line-height: 1;
  margin-right: 20px;
  transition: 0.3s;
}

.hero .social-links a:hover {
  color: var(--accent-color);
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 32px;
  }

  .hero p {
    font-size: 20px;
  }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .content h2 {
  font-weight: 700;
  font-size: 24px;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.about .content ul strong {
  margin-right: 10px;
}

.about .content ul i {
  font-size: 16px;
  margin-right: 5px;
  color: var(--accent-color);
  line-height: 0;
}

/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/

.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 37px;
  grid-template-columns: repeat(auto-fit, minmax(370px, 1fr)); /* Aumenta a 250px o más */
  margin: 0 auto; /* Compensa el padding del padre */
  width: 100%; /* Expande beyond del contenedor */
  padding: 27px 10px;
  align-items: stretch; /* Esto fuerza la misma altura */
  max-width: 100%; /* Asegura que ocupe todo el ancho */
}

.stats .stats-item {
  flex: 1 0 200px;
  padding: 2px 15px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Distribuye el espacio uniformemente */
  min-width: 200px;
  max-width: 200px;
  min-height: 180px; /* Altura mínima consistente */
  height: 100%; /* Ocupa toda la altura disponible */
}

.stats .stats-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.stats .stats-item i {
  color: var(--accent-color);
  font-size: 77px;
  margin-bottom: 20px;
  display: block;
  text-align: center;
  flex-shrink: 0; /* Evita que el icono se reduzca */
}

/* Contenedor para números grandes - SOLUCIÓN PARA 500+ */
.stats .counter-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10; /* Eliminamos el gap para el símbolo + */
  margin-bottom: 20px;
  min-height: 60px;
  min-width: 100px;
  flex-wrap: nowrap; /* Evita que se rompa en varias líneas */
}

.stats .purecounter.with-plus,
.stats .purecounter2.with-plus {
  display: inline-flex; /* Cambia a flex */
  align-items: baseline; /* Alinea el + correctamente */
}

.stats .purecounter,
.stats .purecounter2 {
  color: #fff;
  font-size: clamp(42px, 4vw, 52px);
  font-weight: 900;
  line-height: 1;
  display: inline-block;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ffffff, var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: countUp 1.5s ease-out;
  white-space: nowrap; /* Evita saltos de línea */
}

/* Estilo específico para números con símbolo + */
.stats .purecounter.with-plus::after,
.stats .purecounter2.with-plus::after {
  content: "+";
  font-size: 0.7em; /* Un poco más pequeño que el número */
  vertical-align: super;
  margin-left: 10px;
  background: linear-gradient(135deg, #ffffff, var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
   font-size: 0.6em; /* Reduce un poco más */
  margin-left: 1px; /* Menos espacio */
  background: inherit; /* Hereda el gradiente */
  -webkit-background-clip: inherit;
  background-clip: inherit;
}

/* Para números MUY grandes (más de 4 dígitos) */
.stats .purecounter.large-number,
.stats .purecounter2.large-number {
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: -1px;
}

.stats .stats-item p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 500;
  margin: 0;
  padding: 0;
  line-height: 1.3;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  flex-shrink: 0; /* Evita que el texto se reduzca */
}

/* Animaciones */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  }
  50% {
    text-shadow: 2px 2px 8px var(--accent-color), 0 0 12px var(--accent-color);
  }
}

/* Efecto de brillo al cargar */
.stats .purecounter.animate,
.stats .purecounter2.animate {
  animation: countUp 1.5s ease-out, pulseGlow 2s ease-in-out 1.5s;
}

/* Versión responsive para móviles */
@media (max-width: 768px) {
  .parallax-text .row.justify-content-center {
    justify-content: center !important;
  }
  
  .parallax-text .col-lg-3,
  .parallax-text .col-md-6 {
    display: flex;
    justify-content: center;
  }
  
  .parallax-text .stats-item {
    width: 100%;
    max-width: 200px; /* Mismo ancho para todos */
  }
}

@media (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr;
    gap: 10px;
    justify-content: center;
  }
  
  .stats .stats-item {
    padding: 12px 8px;
    min-height: 140px;
    flex: 0 0 100%; /* 1 caja por fila */
    max-width: 100%;
  }
}

/*--------------------------------------------------------------
# Skills Section
--------------------------------------------------------------*/
.skills .progress {
  height: 60px;
  display: block;
  background: none;
  border-radius: 0;
}

.skills .progress .skill {
  color: var(--heading-color);
  padding: 0;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  display: block;
  font-weight: 600;
  font-family: var(--heading-font);
}

.skills .progress .skill .val {
  float: right;
  font-style: normal;
}

.skills .progress-bar-wrap {
  background: color-mix(in srgb, var(--other2-color), transparent 90%);
  height: 10px;
}

.skills .progress-bar {
  width: 1px;
  height: 10px;
  transition: 0.9s;
  background-color: var(--accent-color);
}

.val2 {
  float: right;
  font-style: normal;
  font-size:large;
}

/*--------------------------------------------------------------
# Resume Section
--------------------------------------------------------------*/
.resume .resume-title {
  color: var(--heading-color);
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
}

.resume .resume-item {
  padding: 0 0 20px 20px;
  margin-top: -2px;
  border-left: 2px solid var(--accent-color);
  position: relative;
}

.resume .resume-item h4 {
  line-height: 18px;
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-bottom: 10px;
}

.resume .resume-item h5 {
  font-size: 16px;
  padding: 5px 15px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 10px;
}

.resume .resume-item ul {
  padding-left: 20px;
}

.resume .resume-item ul li {
  padding-bottom: 10px;
}

.resume .resume-item:last-child {
  padding-bottom: 0;
}

.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50px;
  left: -9px;
  top: 0;
  background: var(--background-color);
  border: 2px solid var(--accent-color);
}

#img2 {
  position: absolute;
  inset: 0;
  display: block;
  width: 25%;
  height: 25%;
  object-fit: cover;
  z-index: 1;
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio .portfolio-filters {
  padding: 0;
  margin: 0 auto 20px auto;
  list-style: none;
  text-align: center;
}

.portfolio .portfolio-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  margin: 0 10px;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 10px;
  transition: all 0.3s ease-in-out;
}

.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
  color: var(--accent-color);
}

.portfolio .portfolio-filters li:first-child {
  margin-left: 0;
}

.portfolio .portfolio-filters li:last-child {
  margin-right: 0;
}

@media (max-width: 575px) {
  .portfolio .portfolio-filters li {
    font-size: 14px;
    margin: 0 5px;
  }
}

.portfolio .portfolio-content {
  position: relative;
  overflow: hidden;
}

.portfolio .portfolio-content img {
  transition: 0.3s;
}

.portfolio .portfolio-content .portfolio-info {
  opacity: 0;
  position: absolute;
  inset: 0;
  z-index: 3;
  transition: all ease-in-out 0.3s;
  background: rgba(0, 0, 0, 0.6);
  padding: 15px;
}

.portfolio .portfolio-content .portfolio-info h4 {
  font-size: 14px;
  padding: 5px 10px;
  font-weight: 400;
  color: #ffffff;
  display: inline-block;
  background-color: var(--accent-color);
}

.portfolio .portfolio-content .portfolio-info p {
  position: absolute;
  bottom: 10px;
  text-align: center;
  display: inline-block;
  left: 0;
  right: 0;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.portfolio .portfolio-content .portfolio-info .preview-link,
.portfolio .portfolio-content .portfolio-info .details-link {
  position: absolute;
  left: calc(50%);
  font-size: 26px;
  top: calc(50% - 14px);
  color: #fff;
  transition: 0.3s;
  line-height: 1.2;
}

.portfolio .portfolio-content .portfolio-info .preview-link:hover,
.portfolio .portfolio-content .portfolio-info .details-link:hover {
  color: var(--accent-color);
}

.portfolio .portfolio-content .portfolio-info .details-link {
  left: 50%;
  font-size: 34px;
  line-height: 0;
}

.portfolio .portfolio-content:hover .portfolio-info {
  opacity: 1;
}

.portfolio .portfolio-content:hover img {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  position: relative;
}

.services .service-item .icon {
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  transition: 0.5s;
  border: 1px solid var(--accent-color);
  margin-right: 20px;
}

.services .service-item .icon i {
  color: var(--contrast-color);
  font-size: 24px;
  line-height: 0;
}

.services .service-item:hover .icon {
  background: var(--surface-color);
}

.services .service-item:hover .icon i {
  color: var(--accent-color);
}

.services .service-item .title {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 18px;
}

.services .service-item .title a {
  color: var(--heading-color);
}

.services .service-item .title a:hover {
  color: var(--accent-color);
}

.services .service-item .description {
  line-height: 24px;
  font-size: 14px;
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.testimonials .testimonial-item {
  box-sizing: content-box;
  text-align: center;
  min-height: 320px;
}

.testimonials .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50%;
  margin: 0 auto;
}

.testimonials .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0 5px 0;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin: 0;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--accent-color), transparent 40%);
  font-size: 26px;
  line-height: 0;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 15px 15px 15px;
  padding: 20px;
  background-color: var(--surface-color);
  position: relative;
  margin-bottom: 35px;
  border-radius: 6px;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

.testimonials .testimonial-item p::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 20px solid var(--surface-color);
  border-right: 20px solid transparent;
  border-left: 20px solid transparent;
  position: absolute;
  bottom: -20px;
  left: calc(50% - 20px);
}

.testimonials .swiper-wrapper {
  height: auto;
}

.testimonials .swiper-pagination {
  margin-top: 40px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: var(--background-color);
  opacity: 1;
  border: 1px solid var(--accent-color);
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-wrap {
  background-color: var(--surface-color);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

@media (max-width: 575px) {
  .contact .info-wrap {
    padding: 20px;
  }
}

.contact .info-item {
  margin-bottom: 40px;
}

.contact .info-item i {
  font-size: 20px;
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  margin-right: 15px;
}

.contact .info-item h3 {
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.contact .info-item:hover i {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.contact .php-email-form {
  background-color: var(--surface-color);
  height: 100%;
  padding: 30px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 575px) {
  .contact .php-email-form {
    padding: 20px;
  }
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form input[type=tel],
.contact .php-email-form textarea {
  font-size: 14px;
  padding: 10px 15px;
  box-shadow: none;
  border-radius: 0;
  color: var(--default-color);
  background-color: var(--surface-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form input[type=tel]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
}

.contact .php-email-form input[type=text]::placeholder,
.contact .php-email-form input[type=email]::placeholder,
.contact .php-email-form input[type=tel]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form button[type=submit] {
  color: var(--contrast-color);
  background: var(--other2-color);
  border: 0;
  padding: 10px 30px;
  transition: 0.4s;
  border-radius: 50px;
}

.contact .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 25%);
}

.contact .info-item p{
  word-break:break-all;
  overflow-wrap: break-word;
  display:inline-block;
  max-width:100%;
}

/*--------------------------------------------------------------
# Portfolio Details Section
--------------------------------------------------------------*/
.portfolio-details .portfolio-details-slider img {
  width: 100%;
}

.portfolio-details .portfolio-details-slider .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
  opacity: 1;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

.portfolio-details .portfolio-info {
  padding: 30px;
  box-shadow: 0px 0 30px rgba(0, 0, 0, 0.1);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.portfolio-details .portfolio-info ul li+li {
  margin-top: 10px;
}

.portfolio-details .portfolio-description {
  padding-top: 30px;
}

.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-description p {
  padding: 0;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

/*--------------------------------------------------------------
# Service Details Section
--------------------------------------------------------------*/
.service-details .services-list {
  padding: 10px 30px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  margin-bottom: 20px;
}

.service-details .services-list a {
  display: block;
  line-height: 1;
  padding: 8px 0 8px 15px;
  border-left: 3px solid color-mix(in srgb, var(--default-color), transparent 70%);
  margin: 20px 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  transition: 0.3s;
}

.service-details .services-list a.active {
  color: var(--heading-color);
  font-weight: 700;
  border-color: var(--accent-color);
}

.service-details .services-list a:hover {
  border-color: var(--accent-color);
}

.service-details .services-img {
  margin-bottom: 20px;
}

.service-details h3 {
  font-size: 26px;
  font-weight: 700;
}

.service-details h4 {
  font-size: 20px;
  font-weight: 700;
}

.service-details p {
  font-size: 15px;
}

.service-details ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.service-details ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}

.service-details ul i {
  font-size: 20px;
  margin-right: 8px;
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Starter Section Section
--------------------------------------------------------------*/


.whatsapp-button {
  background-color: var(--other2-color);
  position: fixed; /* Posición fija en pantalla */
  bottom: 15px;   /* ▲ Ajusta este valor (mayor = más arriba) ▲ */
  right: 10px;    /* Distancia desde el borde derecho */
  color: white;
  padding: 10px 15px 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  font-weight: bold;
  transition: background-color 0.3s;
  font-size: 21px;
}

.whatsapp-button:hover {
  background-color: color-mix(in srgb, var(--accent-color) 90%, white 15%);
  color: #ddd;
}

.whatsapp-float {
  position: fixed;
  bottom: 45px;
  right: 25px;
  width: 30%;
  height: 23%;
  background-color: var(--other2-color); /* Color verde de WhatsApp */
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000; /* Para que aparezca sobre otros elementos */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: var(--accent-color); /* Color verde oscuro al pasar el mouse */
  transform: scale(1.1); /* Efecto de zoom */
}

/* Opcional: Texto flotante */
.whatsapp-float::after {
  content: "¡Escríbenos!";
  position: absolute;
  right: 70px;
  white-space: nowrap;
  background: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.3s;
}

.whatsapp-float:hover::after {
  opacity: 1;
}

/* Botón para abrir modal */
.btn-open-modal {
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-open-modal:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Overlay del modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

/* Contenedor del modal */
.modal-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 50%;
    max-width: 50%;
    overflow: hidden;
    /* transform: translateY(-50px); */
    opacity: 0;
    transition: all 0.3s ease-out;
    max-height: 80vh;     /* Limita la altura */
    overflow-y: auto;     /* Activa el scroll */
    scroll-behavior: smooth;   /* Scroll suave */
    
    /* Mantener tus estilos existentes: */
    position: absolute;
    top: 10%;
    left: 25%;
    transform: translate(-50%, -50%);
    padding: 20px;
}

/* Header del modal */
.modal-header {
    background-color: var(--accent-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.1rem;
    color: white;
}

.modal-contenido::-webkit-scrollbar {
    width: 8px;               /* Ancho del scrollbar */
}

.modal-contenido::-webkit-scrollbar-track {
    background: #f1f1f1;      /* Color del track */
    border-radius: 4px;
}

.modal-contenido::-webkit-scrollbar-thumb {
    background: #888;         /* Color del thumb */
    border-radius: 4px;
}

.modal-contenido::-webkit-scrollbar-thumb:hover {
    background: #555;         /* Color al hover */
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.close-btn:hover {
    transform: rotate(90deg);
}

/* Cuerpo del modal */
.modal-body {
    padding: 20px;
}

/* Media queries para dispositivos móviles */
@media (max-width: 768px) {
    .modal-container {
        width: 95% !important;
        max-width: 95% !important;
        height: 88vh !important;
        max-height: 88vh !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        border-radius: 12px;
    }
    
    .modal-overlay {
        padding: 10px;
    }
}

/* Para tablets pequeñas (opcional) */
@media (max-width: 1024px) and (min-width: 769px) {
    .modal-container {
        width: 70% !important;
        max-width: 70% !important;
        left: 15% !important;
        transform: translate(0, -10%) !important;
    }
}

/* Formulario */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border 0.3s;
}

.form-control:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

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

/* Footer del modal */
.modal-footer {
    padding: 15px 20px;
    background-color: #f9f9f9;
    /* display: flex;
    justify-content: flex-end; */
    border-top: 1px solid #eee;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.btn {
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--other2-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: var(--accent-color);
}

.btn-secondary {
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid var(--other1-color);
    margin-right: 10px;
}

.btn-secondary:hover {
    background-color: var(--other1-color);
}

/* Clase para mostrar el modal */
.modal-show {
    display: flex;
}

.modal-show .modal-container {
    transform: translateY(0);
    opacity: 1;
}

/* Efecto de shake para errores */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s;
}


/* Contenedor del carrusel */
.carrusel {
    display: flex;
    gap: 20px;
    justify-content: center;
    perspective: 1000px;
    padding: 50px;
}

/* Carta individual con efecto 3D */
.carta {
    width: 200px;
    height: 250px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

/* Ambas caras de la carta */
.cara {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    top: 50%;                    /* Asegurar posición */
    left: 75%;
}

/* Cara frontal (español) */
.frontal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    z-index: 2;
}

/* Cara trasera (inglés) - inicialmente girada */
.trasera {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    transform: rotateY(180deg);
    z-index: 2;
    top: 50%;                    /* Asegurar posición */
    left: -75%;
}

/* Efecto hover para la carta */
.carta:hover {
    transform: rotateY(180deg);
}

/* Texto */
.carta h3 {
    margin: 0 0 10px 0;
    font-size: 1.5em;
    text-align: center;
}

.carta p {
    margin: 0;
    font-size: 1em;
    text-align: center;
    opacity: 0.9;
}

.simple-hover {
    color: blue;
    cursor: pointer;
    transition: color 0.3s ease;
}


.chatbot-container {
    position: fixed;
    width: 309px;
    bottom: 71px;
    right: 19px;
    z-index: 1000;
}

.chatbot-header {
    background: var(--other2-color);
    height: 44px;
    color: white;
    padding: 17px;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-messages {
    height: 270px;
    background: white;
    border: 1px solid #ddd;
    padding: 13px;
    overflow-y: auto;
    display: none;
}

.message {
    margin: 10px 0;
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
}

.user-message {
    background: var(--other3-color);
    color: white;
    margin-left: auto;
}

.bot-message {
    background: #f3f4f6;
    color: #333;
}

.chatbot-input {
    display: flex;
    padding: 10px;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    display: none;
}

.chatbot-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.chatbot-input button {
    margin-left: 10px;
    padding: 10px 15px;
    background: var(--other2-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.quick-reply {
    background: #e5e7eb;
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
}

.quick-reply:hover {
    background: #d1d5db;
}


.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: 70vh;
    box-sizing: border-box;
    border-radius: 20px;
    box-shadow: 0 27px 27px rgba(0, 0, 0, 0.3);
}

.video-container video {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--other3-color), #4a5568);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.5s ease;
}

.placeholder-content {
    color: white;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;    /* Centrado horizontal */
    justify-content: center; /* Centrado vertical (opcional) */
    text-align: center;     /* Centrado de texto interno */
    width: 100%;           /* Asegurar ancho completo */
}

.icon-container {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.placeholder-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.placeholder-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

.play-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--other2-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.play-btn:hover {
    display: block;         
    margin: 0 auto;         
    align-self: center;     
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
}

.real-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

#protectedVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

/* Efecto de carga */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2rem;
}

/* Animación de aparición */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

/*Section clases*/
/* Contenedor principal */
.animation-grid-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Filas */
.animation-row {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* Items individuales */
.animation-item {
    flex: 1;
    min-width: 300px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.animation-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Contenedor de imagen */
.animation-image-container {
    position: relative;
    width: 100%;
    height: 330px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
}

/* Imagen giratoria */
.animation-rotating-image {
    width: 80%;
    height: 80%;
    object-fit: cover;
    border-radius: 15px;
    animation: animation-rotate 8s linear infinite;
    transition: all 0.3s ease;
}

@keyframes animation-rotate {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.animation-rotating-image:hover {
    animation-duration: 4s;
    filter: brightness(1.1);
}

/* Overlay para ícono giratorio */
.animation-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px;
    border-radius: 50%;
    animation: animation-pulse 2s infinite;
}

.animation-spin-icon {
    font-size: 16px;
    color: #2563eb;
    animation: animation-spin 3s linear infinite;
}

@keyframes animation-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes animation-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Contenedor de texto */
.animation-text-container {
    padding: 30px;
    height: 330px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

/* Texto con animación de aparición */
.animation-slide-down-text {
    opacity: 0;
    transform: translateY(-30px);
    animation: animation-slideDown 0.8s ease forwards;
}

@keyframes animation-slideDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos de texto específicos */
.animation-text-container h2 {
    color: #1e293b;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.animation-text-container p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 1rem;
}

/* Efectos de hover para texto */
.animation-text-container:hover h2 {
    color: #2563eb;
    transition: color 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .animation-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .animation-item {
        min-width: unset;
    }
    
    .animation-image-container, 
    .animation-text-container {
        height: 400px;
    }
    
    .animation-text-container {
        padding: 20px;
    }
    
    .animation-text-container h2 {
        font-size: 1.5rem;
    }
}

/* Contenedor de texto con scroll */
.animation-text-container.scrollable-text {
    padding: 20px;
    height: 330px;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Oculta el overflow del contenedor principal */
}

.text-content {
    overflow-y: auto; /* Scroll vertical */
    flex: 1; /* Toma el espacio restante */
    padding-right: 10px;
    margin-top: 10px;
}

/* Contenedor de ancho completo */
.animation-item.full-width {
    flex: 1 0 100%; /* Ocupa el 100% del ancho */
    max-width: 100%;
    margin-bottom: 0;
}

/* Contenedor de imagen ancha */
.animation-image-container.wide-image {
    height: 210px; /* Más alta para la imagen ancha */
}

/* Imagen para ancho completo */
.animation-image-container.wide-image .animation-rotating-image {
    width: 90%;
    height: 99%;
    object-fit: cover;
}

/* Responsive para la imagen ancha */
@media (max-width: 768px) {
    .animation-image-container.wide-image {
        height: 200px;
    }
    
    .animation-image-container.wide-image .animation-rotating-image {
        width: 95%;
        height: 80%;
    }
}

/* Efecto hover específico para imagen ancha */
.animation-item.full-width:hover {
    transform: translateY(-8px); /* Mayor elevación */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/*Scrollbar*/
/* Personalizar scrollbar */
.text-content::-webkit-scrollbar {
    width: 6px;
}

.text-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.text-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.text-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Asegurar que el título no se desplace */
.animation-text-container.scrollable-text h2 {
    margin-bottom: 15px;
    flex-shrink: 0; /* Evita que el título se encoja */
}

/* Ajustar márgenes de párrafos */
.text-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Mejorar visibilidad del scroll */
.text-content {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* Para navegadores Firefox */
.text-content {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* Ajustes responsive */
@media (max-width: 768px) {
    .animation-text-container.scrollable-text {
        height: 200px;
        padding: 15px;
    }
    
    .text-content {
        padding-right: 5px;
    }
    
    .text-content::-webkit-scrollbar {
        width: 4px;
    }
}

/* Efecto de hover en scrollbar */
.text-content:hover::-webkit-scrollbar-thumb {
    background: #959595;
}

/* Smooth scrolling */
.text-content {
    scroll-behavior: smooth;
}

/* Opcional: Gradiente para indicar más contenido */
.text-content {
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
}

.contenedor2{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 400px;
}

.contenedor2 img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Estilos para la sección de idiomas */
/* Estilos para la sección de idiomas */
.language-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    min-height: 140px;
}

.language-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.language-flag-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.language-flag {
    width: 80px;
    height: 50px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
    object-fit: cover;
    transition: all 0.3s ease;
}

.language-item:hover .language-flag {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.language-name {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #e9ecef;
}

.language-phrase-container {
    flex: 1;
    position: relative;
    min-height: 80px;
    display: flex;
    align-items: center;
}

.language-phrase {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    position: relative;
    cursor: pointer;
    width: 100%;
}

/* TEXTO VISIBLE CON EFECTO DE BANDERA */
.flag-text {
    display: block;
    animation: waveFlag 3s ease-in-out infinite;
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
    line-height: 1.3;
    padding: 5px 0;
    color: #000; /* Color de respaldo */
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
}

/* USA - Rojo, Blanco, Azul */
.usa-flag {
    background-image: linear-gradient(
        135deg,
        #B31942 0%, #B31942 16%,
        #0A3161 50%, #0A3161 66%,
        #FFFFFF 16%, #FFFFFF 33%,
        #B31942 33%, #B31942 50%,
        #FFFFFF 66%, #FFFFFF 83%,
        #B31942 83%, #B31942 100%
    );
}

/* Francia - Azul, Blanco, Rojo */
.france-flag {
    background-image: linear-gradient(
        135deg,
        #ED2939 0%, #ED2939 16%,
        #002395 50%, #002395 66%,
        #FFFFFF 16%, #FFFFFF 33%,
        #ED2939 33%, #ED2939 50%,
        #FFFFFF 66%, #FFFFFF 83%,
        #ED2939 83%, #ED2939 100%
    );
}

/* Alemania - Negro, Rojo, Dorado */
.germany-flag {
    background-image: linear-gradient(
        135deg,
        #000000 0%, #000000 16%,
        #DD0000 50%, #DD0000 66%,
        #FFCE00 16%, #FFCE00 33%,
        #000000 33%, #000000 50%,
        #FFCE00 66%, #FFCE00 83%,
        #000000 83%, #000000 100%
    );
}

/* Italia - Verde, Blanco, Rojo */
.italy-flag {
    background-image: linear-gradient(
        135deg,
        #009246 0%, #009246 16%,
        #CE2B37 50%, #CE2B37 66%,
        #FFFFFF 16%, #FFFFFF 33%,
        #009246 33%, #009246 50%,
        #FFFFFF 66%, #FFFFFF 83%,
        #009246 83%, #009246 100%
    );
}

/* Animación de bandera ondeando */
@keyframes waveFlag {
    0%, 100% {
        background-position: 0% 50%;
        transform: translateY(0) skew(0deg);
    }
    25% {
        background-position: 25% 50%;
        transform: translateY(-1px) skew(-0.3deg);
    }
    50% {
        background-position: 50% 50%;
        transform: translateY(0) skew(0deg);
    }
    75% {
        background-position: 75% 50%;
        transform: translateY(1px) skew(0.3deg);
    }
}

/* Efecto hover - Mostrar traducción */
.language-phrase::before {
    content: attr(data-translation);
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%) scale(0.9);
    opacity: 0;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.4s ease;
    z-index: 1;
    text-align: left;
    line-height: 1.3;
}

.language-phrase:hover::before {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.language-phrase:hover .flag-text {
    opacity: 0;
    transform: translateY(10px);
}

/* Responsive */
@media (max-width: 768px) {
    .language-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
        min-height: 160px;
    }
    
    .language-phrase {
        font-size: 1.6rem;
        text-align: center;
    }
    
    .language-phrase::before {
        font-size: 1.6rem;
        text-align: center;
    }
    
    .language-flag {
        width: 70px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .language-phrase {
        font-size: 1.4rem;
    }
    
    .language-phrase::before {
        font-size: 1.4rem;
    }
    
    .language-flag {
        width: 60px;
        height: 40px;
    }
}

/* Configurable parallax*/
.parallax1-section {
  background-image: var(--bg-image);
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax1-content {
  color: white;
  text-align: center;
  padding: 30px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  max-width: 80%;
}

/* Section con imagen fija (parallax) */
.parallax2 {
    background-image: url('../img/stock/pexels_com_57.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto parallax */
    height: 137vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.parallax2-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 77vh;
}


.parallax2-section {
    width: 100vw;
    margin-left: calc(-50vw+50%);
}

.parallax2-section .container{
    max-width: 100% !important;
    padding: 0 20px; 
}

.parallax2-content {
    background-color: rgba(0,0,0,0.1);
    padding: 30px;
    border-radius: 10px;
    max-width: 80%;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .parallax2-content {
        max-width: 95%;
        padding: 20px;
        margin: 20px;
    }
}

.desktop-only {
    display: block;
}
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    .mobile-only {
        display: block;
        font-size: 0.9rem;
        line-height: 1.4;
    }
}


/* Section con imagen fija (parallax) */
.parallax3 {
    background-image: url('../img/stock/pexels_com_149.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto parallax */
    height: 97vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.parallax3-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}


.parallax3-section {
    width: 110vw;
    margin-left: calc(-50vw+50%);
}

.parallax3-section .container{
    max-width: 100% !important;
    padding: 0 20px; 
}

.parallax3-content {
    background-color: rgba(0,0,0,0.1);
    padding: 30px;
    border-radius: 10px;
    max-width: 80%;
}

@media (max-width: 768px) {
    .parallax3-content {
        max-width: 95%;
        padding: 20px;
        margin: 20px;
    }
}

.desktop-only {
    display: block;
}
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    .mobile-only {
        display: block;
        font-size: 1.1rem;
        line-height: 1.4;
    }
}

/* Para móviles */
@media (max-width: 480px) {
    .modal-container {
        width: 95% !important;
        max-width: 95% !important;
        height: 88vh !important;
        max-height: 88vh !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        border-radius: 12px;
    }
}

/* Para tablets */
@media (max-width: 768px) and (min-width: 481px) {
    .modal-container {
        width: 90% !important;
        max-width: 90% !important;
        height: 85vh !important;
        max-height: 85vh !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
}