/* ===== CSS Variables and Base Styles ===== */
:root {
    /* Colors */
    /* Primary colors */
    --primary-color: light-dark(#fb409f, #c2185b);
    --primary-color-light: light-dark(#ffcbea, #e91e63);
    --primary-color-light2: light-dark(#b5e48c, #4caf50);
    --primary-color-light3: light-dark(#fff2f6, #f48fb1);
    --secondary-color: light-dark(#FFC69D, #ff5722);
    --tertiary-color: light-dark(#dfdce3ff, #9e9e9e);
    --cuaternary-color: light-dark(#ffffff, #212121);


    /* Semantic colors */
    --error-color: light-dark(#dc3545, #d32f2f);
    --success-color: light-dark(#28a745, #388e3c);
    --warning-color: light-dark(#ffc107, #f57c00);
    --info-color: light-dark(#17a2b8, #0288d1);
    --light-color: light-dark(#f8f9fa, #424242);
    --dark-color: light-dark(#343a40, #f5f5f5);
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;

    /* Typography */
    --font-family-primary: 'Inter', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 #0000000d;
    --shadow-md: 0 4px 6px -1px #0000001a, 0 2px 4px -1px #0000000f;
    --shadow-lg: 0 10px 15px -3px #0000001a, 0 4px 6px -2px #0000000d;
    --shadow-xl: 0 20px 25px -5px #0000001a, 0 10px 10px -5px #0000000a;

    /* Border radius */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 0.75rem;
    --border-radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;

    /* z-index */
    --z-modal: 2;
}

/* CSS Reset and base styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;

    /* darkmode  */
	color-scheme: light dark;
	&:has([name='color-scheme']:checked) {
		color-scheme: dark;
	}
	&:has([name='color-scheme']) {
		color-scheme: light;
	}

}

body {
    font-family: var(--font-family-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile Navigation Enhancements */

/* Base touch optimizations */
* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection where needed */
p, h1, h2, h3, h4, h5, h6, span, div.feature-description, div.service-description {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Enhanced mobile toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 25px;
    right: 70px;
    z-index: 1001;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    touch-action: manipulation;
}

.mobile-toggle:hover,
.mobile-toggle:focus {
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    transform-origin: center;
}

/* Enhanced mobile toggle animation */
.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Enhanced mobile menu styles */
@media screen and (max-width: 768px) {
    .mobile-toggle { 
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-color-light) 100%);
        width: 100%;
        height: 100vh;
        height: 100dvh; /* Use dynamic viewport height for better mobile support */
        text-align: center;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding-top: 100px;
        overflow-y: auto;
        overflow-x: hidden;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        position: relative;
    }

    .nav-link {
        padding: 20px 30px;
        font-size: 18px;
        font-weight: 500;
        width: 100%;
        text-align: left;
        border-radius: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 64px; /* Ensure minimum touch target size */
        transition: all 0.3s ease;
        position: relative;
    }

    .nav-link:active {
        background-color: rgba(255, 255, 255, 0.1);
        transform: scale(0.98);
    }

    /* Enhanced dropdown indicators */
    .nav-item:has(.dropdown) .nav-link::after {
        content: '▼';
        font-size: 12px;
        font-weight: normal;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        color: rgba(255, 255, 255, 0.7);
    }

    .nav-item.dropdown-active .nav-link::after {
        transform: rotate(180deg);
        color: white;
    }

    /* Enhanced mobile dropdown styles */
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(0, 0, 0, 0.15);
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(5px);
    }

    .nav-item.dropdown-active .dropdown {
        max-height: 400px;
    }

    .dropdown-link {
        color: rgba(255, 255, 255, 0.85);
        padding: 18px 50px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 16px;
        font-weight: 400;
        min-height: 56px;
        display: flex;
        align-items: center;
        transition: all 0.3s ease;
        position: relative;
    }

    .dropdown-link:hover,
    .dropdown-link:active {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        padding-left: 55px;
    }

    .dropdown-link::before {
        content: '›';
        position: absolute;
        left: 30px;
        opacity: 0;
        transition: all 0.3s ease;
        font-size: 18px;
        font-weight: bold;
    }

    .dropdown-link:hover::before,
    .dropdown-link:active::before {
        opacity: 1;
        left: 35px;
    }

    /* Language toggle positioning for mobile */
   .navbar__toggle--language {
    position: absolute;
    top: 20px;
    right: 20px;
}

.navbar__toggle--language-input {
    display: none;
}

.navbar__toggle--language-label {
    display: block;
    width: 40px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.navbar__toggle--language-label:before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.navbar__toggle--language-input:checked + .navbar__toggle--language-label {
    background: #f312c2;
}

.navbar__toggle--language-input:checked + .navbar__toggle--language-label:before {
    transform: translateX(20px);
}

.flex--container {
	display: flex;
	justify-content: center;
	align-items: center;
}

    /* Header banner adjustments */
    .header-banner {
        padding: 20px 0;
        z-index: 999;
    }

    .banner-image {
        max-height: 50px;
    }
}

/* Tablet adjustments */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    .nav-item {
        margin: 0 15px;
    }

    .nav-link {
        padding: 8px 12px;
        font-size: 15px;
    }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
    .nav-menu {
        padding-top: 80px;
    }

    .nav-link {
        padding: 18px 20px;
        font-size: 17px;
        min-height: 60px;
    }

    .dropdown-link {
        padding: 16px 40px;
        font-size: 15px;
        min-height: 52px;
    }

    .dropdown-link:hover,
    .dropdown-link:active {
        padding-left: 45px;
    }

    .mobile-toggle {
        right: 20px;
        top: 20px;
    }

    .navbar__toggle--language {
        top: 25px;
        right: 15px;
    }

    .header-banner {
        padding: 15px 0;
    }

    .banner-image {
        max-height: 45px;
    }
}

/* Enhanced animations */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Staggered animation for menu items */
@media screen and (max-width: 768px) {
    .nav-menu.active .nav-item {
        animation: slideInFromLeft 0.3s ease-out forwards;
        opacity: 0;
    }

    .nav-menu.active .nav-item:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active .nav-item:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu.active .nav-item:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu.active .nav-item:nth-child(4) { animation-delay: 0.4s; }
}

/* Enhanced focus states for accessibility */
.mobile-toggle:focus,
.nav-link:focus,
.dropdown-link:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .nav-menu,
    .dropdown,
    .mobile-toggle span,
    .nav-link,
    .dropdown-link {
        transition: none;
    }

    .nav-menu.active .nav-item {
        animation: none;
        opacity: 1;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .nav-menu {
        background: #000;
        border: 2px solid #fff;
    }

    .nav-link,
    .dropdown-link {
        border: 1px solid rgba(255, 255, 255, 0.3);
        margin: 2px;
    }

    .nav-item {
        border-bottom: 2px solid #fff;
    }
}

/* Print styles */
@media print {
    .mobile-toggle,
    .navbar__toggle--language {
        display: none !important;
    }

    .nav-menu {
        position: static !important;
        height: auto !important;
        background: transparent !important;
    }
}        
/* end Mobile Navigation Enhancements */


/* Additional SPA-specific styles */
.spa-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    min-height: 50vh;
}

.spa-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.loading {
    opacity: 0.5;
    pointer-events: none;
}

.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-light) 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.page-transition.active {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #ffffff4d;
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.breadcrumb {
    background: #ffffff1a;
    padding: 10px 20px;
    margin: 20px 0;
    border-radius: 5px;
    font-size: 14px;
    color: white;
}

.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Enhanced mobile menu styles */
@media screen and (max-width: 768px) {
    .dropdown-toggle::after {
        content: '▼';
        font-size: 12px;
        margin-left: 10px;
        transition: transform 0.3s ease;
    }
    
    .dropdown-active .dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

/* Performance optimizations */
.lazy-load {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.lazy-load.loaded {
    opacity: 1;
    transform: translateY(0);
}


/* Estilos para mejorar la compatibilidad del menú */
.nav-menu {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mejoras para el modo desktop */
@media (min-width: 769px) {
    .dropdown {
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
    }
    
    .nav-item:hover .dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    /* Asegurar que los enlaces del dropdown sean clickeables */
    .dropdown-link {
        pointer-events: all;
    }
}

/* Mejoras para dispositivos táctiles */
@media (max-width: 768px) {
    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
    }
    
    .nav-menu:not(.active) {
        transform: translateX(-100%);
        opacity: 0;
    }
    
    /* Mejorar el feedback táctil */
    .nav-link:active,
    .dropdown-link:active {
        background-color: #ffffff26;
        transition: background-color 0.1s ease;
    }
}

/* Estado de carga mejorado */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffffe6;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-transition.active {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Mejoras de accesibilidad */
.nav-link:focus,
.dropdown-link:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Prevenir destello azul en iOS */
.nav-link,
.dropdown-link,
.mobile-toggle {
    -webkit-tap-highlight-color: transparent;
} 

/* END Additional SPA-specific styles */

/* HEADER */
/* Header Banner Styles */
.header-banner {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.banner-image {
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.banner-image:hover {
    opacity: 1;
}
 
 /* Header Styles */
 header {
    position: fixed;
    top: 0;
    left: 0;     
    z-index: var(--z-modal);
    width: 100%;
    background: linear-gradient(105deg, var(--primary-color) 0%, var(--primary-color-light) 100%);            
    box-shadow: 0 2px 10px #0000001a;
}

.nav-container {    
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Banner */
.header-banner {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.banner-image {
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

/* Language Toggle */
 

.navbar__toggle--language-input {
    display: none;
}

.navbar__toggle--language-label {
    display: block;
    width: 40px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.navbar__toggle--language-label:before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.navbar__toggle--language-input:checked + .navbar__toggle--language-label {
    background: #f312c2;
}

.navbar__toggle--language-input:checked + .navbar__toggle--language-label:before {
    transform: translateX(20px);
}

.flex--container {
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Para pantallas muy pequeñas */
@media (max-width: 770px) { 

    .navbar__toggles{
        top: 15px; 
        left: 50%;
        transform: translateX(-50%);        
    }
    
    /* Ajusta el tamaño si es necesario en pantallas muy pequeñas */
    .navbar__toggle--language-label {
        width: 35px;
        height: 18px;
    }
    
    .navbar__toggle--language-label:before {
        width: 14px;
        height: 14px;
        top: 2px;
    }
    
    .navbar__toggle--language-input:checked + .navbar__toggle--language-label:before {
        transform: translateX(17px); /* Ajusta para el nuevo tamaño */
    }
}



/* Navigation */
nav {    
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
    flex: 1;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 60px;
    z-index: 1001;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.nav-item {
    position: relative;
    margin: 0 20px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: block;
}

.nav-link:hover {
    background: #ffffff1a;
    transform: translateY(-2px);
}
/*end nav*/


/* Dropdown Styles */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 25px #00000026;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 12px 20px;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-link:last-child {
    border-bottom: none;
}

.dropdown-link:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    padding-left: 25px;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-color-light) 100%);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        padding-top: 100px;
        overflow-y: auto;
        justify-content: flex-start;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #ffffff1a;
    }

    .nav-link {
        padding: 20px 30px;
        font-size: 18px;
        width: 100%;
        text-align: left;
        border-radius: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Dropdown arrow for mobile */
    .nav-item:has(.dropdown) .nav-link::after {
        content: '▼';
        font-size: 12px;
        transition: transform 0.3s ease;
    }

    .nav-item.dropdown-active .nav-link::after {
        transform: rotate(180deg);
    }

    /* Mobile dropdown styles */
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #ffffff1a;
        box-shadow: none;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-item.dropdown-active .dropdown {
        max-height: 400px;
    }

    .dropdown-link {
        color: #ffffffcc;
        padding: 15px 50px;
        border-bottom: 1px solid #ffffff0d;
        font-size: 16px;
    }

    .dropdown-link:hover {
        background: #ffffff1a;
        color: white;
        padding-left: 55px;
    }

    .header-banner {
        padding: 15px 0;
    }

    .banner-image {
        max-height: 60px;
    }

    .navbar__toggle--language {
        top: 15px;
        right: 15px;
    }
}
/*END dropdown */

.navbar__toggles {
	gap: 1rem;
	position: absolute;
	top: 20px;
	right: 20px;
    /* header language idiom  toggle */
  

  .toggle-container {
  	display: flex;
  	align-items: center;
  	border: 1px solid #ccc;
  	border-radius: 30px;
  	overflow: hidden;
  	justify-content: center;
  	box-shadow: inset 0px 2px 5px #00000066, inset 0px -2px 5px #ffffff66;
  	/* justify-content: space-between; */
  	background: #ebebeb;
  }

.flag-zone {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 1px;
    border-radius: 3px;
}

.flag-zone:hover {
    background-color: #f0f0f0;
}

.toggle-flag {
    width: 30px;
    height: 18px;
    object-fit: contain;    
    transition: all 0.3s ease;
    opacity: 0.3;
    transform: scale(0.9);    
}

.toggle-flag.active {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(0,123,255,0.4));
}    
    

    /* fin languaje elector*/

    /* darkmode toggle */
    .navbar__toggle--darkmode {
        .navbar__toggle--darkmode-label {
            width: 42px;
            height: 20px;
            position: relative;
            display: block;
            background: #ebebeb;
            border-radius: 20px;
            box-shadow: inset 0px 2px 5px #00000066, inset 0px -2px 5px #ffffff66;
            cursor: pointer;
            transition: 0.3s;

            &::after {
                content: '';
                width: 16px;
                height: 16px;
                position: absolute;
                top: 2px;
                left: 2px;
                background: linear-gradient(180deg, #ffcc89, #d8860b);
                border-radius: 20px;
                box-shadow: 0px 5px 10px #00000033;
                transition: 0.3s;
            }

            &:active::after {
                width: 40px;
            }

            i {
                position: absolute;
                font-size: 14px;
                top: 3px;
                z-index: var(--z-fixed);

                &.navbar__toggle--darkmode-sun {
                    left: 3px;
                    color: var(--secondary-color);
                    transition: 0.3s;
                }

                &.navbar__toggle--darkmode-moon {
                    right: 2px;
                    color: #7e7e7e;
                    transition: 0.3s;
                }

                &.navbar__toggle--darkmode-ocean {
                    right: 2px;
                    color: skyblue;
                    transition: 0.3s;
                }
            }
        }

        .navbar__toggle--darkmode-input {
            visibility: hidden;

            &:checked + label {
                background: #242424;

                &::after {
                    left: 40px;
                    transform: translateX(-100%);
                    background: linear-gradient(180deg, #777, #3a3a3a);
                }

                .bx-sun {
                    color: #7e7e7e;
                }

                .bx-moon {
                    color: var(--secondary-color);
                }
                .bx-ocean {
                    color: skyblue;
                }
            }
        }
    }
    /* end darkmode toggle */
}


/* Hero Section */
.hero {
 
    color: #2c3e50;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="80" cy="40" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="40" cy="80" r="1.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

 
.header-section {
    background: linear-gradient(135deg, #FFC69D 10%,  var(--secondary-color)  100%);    
    padding: 9rem 0px 1px 0px ;
    text-align: center;    
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

 

.main-title {
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    font-weight: 900;
    color: #2c2c2c;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px #0000001a;
    font-family: 'Arial Black', 'Helvetica', sans-serif;
}


.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

 

@media screen and (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
}
/*end hero*/

/*que hacemos*/ 
.who-we-are {
    padding: 1rem 0;
    background-color: #ffffff;
}


.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;     
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px #0000000d;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;            
    background: linear-gradient(135deg, var(--primary-color-light), var(--primary-color));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: translateX(0);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px #0000001a;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary-color-light), var(--primary-color));
    transform: scale(1.1);
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--primary-color);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon svg {
    fill: white;
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-title {
    color: var(--primary-color-light);
}

.feature-description {
    font-size: 1rem;
    color: #7f8c8d;
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .section-title {
        color: var(--primary-color);
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .who-we-are {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .feature-card {
        padding: 25px 15px;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .feature-icon svg {
        width: 35px;
        height: 35px;
    }
    
    .feature-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 20px 15px;
    }
}

/* Accessibility improvements */
.feature-card:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .feature-icon,
    .feature-icon svg {
        transition: none;
    }
    
    .feature-card:hover {
        transform: none;
    }
    
    .feature-card:hover .feature-icon {
        transform: none;
    }
}

/* Loading animation */
.feature-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

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

.section-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

 
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;    
    background: var(--secondary-color);    
    border-radius: 2px;
}


 
/* end que hacemos*/
/*about us*/

.about{
    position: relative;
    padding: 0 0 2rem  0;  
    background:  var(--primary-color-light3);
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

 
/*end about us*/

/* nuestro proceso de trabajo*/
.pre-services {
    background: white;
    padding: 1rem 0;
    position: relative;
}

.pre-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}


.process-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.process-container::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, #3498db, #d4af37);
    z-index: 1;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.process-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color-light), var(--primary-color-light2));    
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 30px #2c3e504d;
    transition: all 0.3s ease;
    border: 4px solid var(--primary-color-light2);
}

.process-circle:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px #2c3e5066;
}

.process-circle::before {
    content: '';
    position: absolute;
    inset: 8px;
    background: linear-gradient(135deg,var(--primary-color-light), var(--primary-color));            
    border-radius: 50%;
}

.process-step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-style: italic;
}

.process-step-description {
    font-size: 1rem;
    color: #7f8c8d;
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
} 
/* END nuestro proceso de trabaja*/

/*muestros servicios*/
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: #fff;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px #0000001a;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-color-light3));
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px #00000026;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-light3));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}

.service-title {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.service-description {
    color: #7f8c8d;
    line-height: 1.6;
}
/*END muestros servicios*/
/*nuestras habilidades*/
.skills-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
     
}

.skill-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px #00000033;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-circle:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px #00000040;
}

/* Individual skill colors matching the image */
.skill-circle.purchasing {
    background: #aed957;
    border: 8px solid #ffffff4d;
}

.skill-circle.assaying {
    background: #ffffff;
    border: 8px solid #0000001a;
}

.skill-circle.compliance {
    background: #4ecdc4;
    border: 8px solid #ffffff4d;
}

.skill-circle.smelting {
    background: #d6d6d6;
    border: 8px solid #0000001a;
}

.skill-title {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Text colors for contrast */
.skill-circle.purchasing .skill-title,
.skill-circle.purchasing .skill-percentage {
    color: #2c3e50;
}

.skill-circle.assaying .skill-title,
.skill-circle.assaying .skill-percentage {
    color: #2c3e50;
}

.skill-circle.compliance .skill-title,
.skill-circle.compliance .skill-percentage {
    color: #ffffff;
}

.skill-circle.smelting .skill-title,
.skill-circle.smelting .skill-percentage {
    color: #2c3e50;
}

.skill-percentage {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1;
}

/* Animation for counting up */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-circle.animate {
    animation: countUp 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .skills-grid {
        gap: 30px;
    }

    .skill-circle {
        width: 160px;
        height: 160px;
    }

    .skill-percentage {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    #skills {
        padding: 60px 0;
    }

    .skills-grid {
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px;
    }

    .skill-item {
        width: 45%;
    }

    .skill-circle {
        width: 140px;
        height: 140px;
    }

    .skill-percentage {
        font-size: 2.2rem;
    }

    .skill-title {
        font-size: 0.85rem;
    }

    .skill-circle.purchasing .skill-title {
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        flex-direction: column;
        gap: 30px;
    }

    .skill-item {
        width: 100%;
    }

    .skill-circle {
        width: 160px;
        height: 160px;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Accessibility improvements */
.skill-circle:focus {
    outline: 3px solid #ffffffcc;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .skill-circle {
        transition: none;
    }

    .skill-circle:hover {
        transform: none;
    }

    @keyframes countUp {
        from, to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .skill-circle {
        border-width: 4px;
        border-style: solid;
    }

    .skill-circle.purchasing {
        border-color: #2c3e50;
    }

    .skill-circle.assaying {
        border-color: #2c3e50;
    }

    .skill-circle.compliance {
        border-color: #ffffff;
    }

    .skill-circle.smelting {
        border-color: #2c3e50;
    }
}
/*END nuestras habilidades*/

/*seguridad-trust*/
 
.trust {
    padding: 0.5rem 0;
    background: var(--primary-color-light3);
    min-height: 100vh;
    display: flex;
    align-items: center;
}
 
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

 

.subtitle {
    color: var(--dark-text);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    text-align: center;
}

.bank-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: var(--gray-100);
    border-radius: 16px;
}

.bank-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.bank-item:nth-child(1) { animation-delay: 0.1s; }
.bank-item:nth-child(2) { animation-delay: 0.2s; }
.bank-item:nth-child(3) { animation-delay: 0.3s; }
.bank-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

.bank-logo {
    width: 150px;
    height: 70px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--dark-text);
}

.bank-logo:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

 
.bank-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
 
.secure-badge {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow-sm);
}

.stats-container {
    text-align: center;
    margin-top: 1rem;
    padding: 0.5rem;
    background: linear-gradient(135deg,  var(--primary-color-light) 0%, var( --primary-color) 100%);
    border-radius: 16px;
    border: 2px solid var(--primary-color-light2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
    display: inline-block;            
    background: var(  --primary-color-light2);            
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-text {
    color: whitesmoke;
    font-size: 1.25rem;
    font-weight: 600;
}

.trust-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.indicator-card {
    background: var(--white);
    border: 2px solid var(--gray-100);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 10px #0000000d;
    position: relative;
    overflow: hidden;
}

    

.indicator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;            
    background: linear-gradient(135deg, var(--primary-color-light), var(--primary-color));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.indicator-card:hover::before {
    transform: translateX(0);
}        

.indicator-card:hover {           
    transform: translateY(-10px);
    box-shadow: 0 20px 40px #00000026;            
}

.indicator-icon {
    width: 48px;
    height: 48px;            
    background: var(--primary-color-light) ;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.indicator-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.indicator-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .trust-section {
        padding: 2rem 1.25rem;
    }

    .header h1 {
        font-size: 2rem;
    }

    .bank-logos {
        gap: 1.5rem;
        padding: 1.5rem;
    }
 

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-text {
        font-size: 1.125rem;
    }

    .trust-indicators {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1rem 0.5rem;
    }

    .trust-section {
        border-radius: 16px;
        padding: 1.5rem 1rem;
    }

    .header h1 {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .bank-logos {
        gap: 1rem;
        padding: 1rem;
    }

     
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}
/*END seguridad-trust*/

/*contact secion*/
.contact {
    padding: 0.5rem 0;
    background: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
 

.section-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Left Column - Contact Info */
.contact-info {
    background: transparent;
    padding: 40px 0;
}

.contact-info h3 {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.contact-info p {
    color: #2c3e50;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.contact-details {
    margin-top: 40px;
}

.contact-details h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.contact-item {
    margin-bottom: 25px;
    color: #2c3e50;
}

.contact-item strong {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.phone-list {
    list-style: none;
    padding: 0;
}

.phone-list li {
    margin-bottom: 5px;
    font-weight: 500;
}

.whatsapp-link {
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.whatsapp-link:hover {
    color: #1DA851;
    transform: translateX(5px);
}

/* Right Column - Contact Form */
.contact-form-wrapper {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px #00000033;
}

.form-title {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-transform: uppercase;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #ffffffe6;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px #2c3e501a;
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
    opacity: 1;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
    max-height: 300px;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
    align-self: flex-start;
    width: 100%;
}

.submit-btn:hover {
    background: var(--error-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px #2c3e504d;
}

.submit-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .contact-info h3 {
        font-size: 1.5rem;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .submit-btn {
        width: 100%;
        align-self: stretch;
    }
}

@media (max-width: 480px) {
    .contact {
        padding: 40px 0;
    }

    .container {
        padding: 0 15px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .contact-info h3 {
        font-size: 1.3rem;
    }

    .form-title {
        font-size: 1.3rem;
    }

    .contact-form-wrapper {
        padding: 25px 15px;
    }
}

/* Animation for form elements */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-wrapper > * {
    animation: slideInUp 0.6s ease-out;
}

.contact-form-wrapper {
    animation-delay: 0.2s;
}

/* Success message styles */
.success-message {
    background: #27ae60;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    text-align: center;
    font-weight: 500;
}

.success-message.show {
    display: block;
    animation: slideInUp 0.3s ease-out;
}

/* tooltip */

.tooltip {
    position: relative;
    display: inline-block;
    background-color: red;
    color:yellow;
    border-radius: 5px;
    padding: 1px;
    visibility: hidden;
}

/* Show the tooltip text when you mouse over the tooltip container */      
.tooltip:hover .tooltiptext {
    visibility: visible;
} 


.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 1px;
}       
      
.email-row {
    margin: 2px 0;
    display: flex;
    align-items: center;
    gap: 2px;
}
 
.email-align-extra {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
}



/*END contact secion*/
/*footer*/
footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-light) 100%);
    color: white;
    padding: 2rem 0 1rem;
    font-size: 14px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Left Column - Company Info */
.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;            
    gap: 1rem;
}

.footer-left h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 3px #0000004d;
}

.footer-tagline {
    color: #bdc3c7;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

 

.footer-company-name{
    color: var(--secondary-color);
}

/* Right Column - Social Networks */
.footer-right {
    display: flex;
    flex-direction: column;            
    align-items: flex-start;
    text-align: left;
}

.social-title {
    color: #ecf0f1;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 1px 3px #0000004d;
}

    

/* Copyright Section */
.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #ffffff1a;
    color: black;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-right {
        align-items: center;
        text-align: center;
    }

    .footer-container {
        padding: 0 1rem;
    }

    .social-title,
    .footer-left h3 {
        font-size: 1.5rem;
    }

    
}

@media (max-width: 480px) {
    footer {
        padding: 1.5rem 0 1rem;
    }
        
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}    

.footer-nav a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover {
    opacity: 1;
    color: var(--info-color);
}        

.social-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #ffffff1a;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}    

    /* Animations */
    @keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}    

.footer-nav a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover {
    opacity: 1;
    color: var(--info-color);
}
/*END footer*/

/*history page*/
.history {
    padding: 5rem 0;
    text-align: center;
}
 
.feature-title-history {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: color 0.3s ease;
    text-align: left;
}

.features-grid-history {   
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 10px;
    text-align: justify;
}

.history ul li {
    list-style: none;
    
}

.transportation {
    text-align: left;
    padding-left: 1rem;
}


.destination__card--img {
    width: 10%;
    height: 10%;
    object-fit:  cover    ;
    text-align: center;
}

/*para imagenes de shipment*/
.service-image {
    width: 250px;
    height: 250px;
    object-fit: cover; 
    border-radius: 8px; 
    box-shadow: 0 2px 8px #0000001a; 
}

/*END history page*/

/* END HEADER */