/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --accent-color: #0ea5e9;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

/* Header Styles */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 70px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-graphic {
    text-align: center;
    font-size: 15rem;
    opacity: 0.3;
}

/* Hero Logo */
.hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-logo::before {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 50%;
    animation: pulse-glow 3s ease-in-out infinite;
}

.hero-logo::after {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: pulse-glow 3s ease-in-out infinite 0.5s;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.03);
        opacity: 1;
    }
}

.hero-logo-img {
    width: 350px;
    height: 350px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.25));
    animation: float 4s ease-in-out infinite;
    background: linear-gradient(145deg, #1e88e5 0%, #1565c0 50%, #0d47a1 100%);
    padding: 40px;
    border-radius: 50%;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 2px 10px rgba(255, 255, 255, 0.2);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@media (max-width: 768px) {
    .hero-logo-img {
        width: 220px;
        height: 220px;
        padding: 25px;
        border-radius: 50%;
    }
    
    .hero-logo::before {
        width: 280px;
        height: 280px;
    }
    
    .hero-logo::after {
        width: 340px;
        height: 340px;
    }
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--bg-white);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

.btn-secondary:hover {
    background: var(--bg-white);
    color: var(--primary-color);
}

/* WhatsApp Button */
.btn-whatsapp {
    background: #25D366 !important;
    color: white !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px !important;
    font-size: 1.1rem !important;
    border-radius: 50px !important;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #128C7E !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp i {
    font-size: 1.4rem;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* Advantages Section */
.advantages {
    background: var(--bg-light);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.advantage-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.advantage-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.advantage-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* How It Works Section */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.step p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Trust Values Section */
.trust-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.trust-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.trust-text p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-light);
    font-weight: 500;
}

.trust-cta {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.trust-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.trust-cta p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Additional Styles for Specific Pages */

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 120px 0 60px;
    margin-top: 70px;
    text-align: center;
}

.page-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Mission & Vision */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mission-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.mission-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.mission-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.mission-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Story Section */
.story-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.story-text p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.story-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.story-stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.story-stat h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.story-stat p {
    color: var(--text-light);
    font-weight: 500;
}

/* Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.value-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Trust Points */
.trust-points {
    display: grid;
    gap: 2rem;
}

.trust-point {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.trust-point-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.trust-point-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.trust-point-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: var(--bg-light);
    padding: 80px 0;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Services Grid */
.services-grid {
    display: grid;
    gap: 3rem;
}

.service-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}

.service-card.featured {
    border: 2px solid var(--primary-color);
}

.service-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.service-content {
    padding: 2rem;
}

.service-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-description {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.service-features i {
    color: var(--success-color);
}

.service-cta h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.service-cta p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.process-step {
    text-align: center;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.process-step p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Industries Grid */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.industry {
    text-align: center;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.industry:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.industry i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.industry h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.industry p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Guarantee Section */
.guarantee-content {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.guarantee-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.guarantee-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.guarantee-content p {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.guarantee-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    text-align: left;
}

.guarantee-points li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.guarantee-points i {
    color: var(--success-color);
}


/* Trust Form Styles */
.trust-form {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.trust-form h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.trust-form p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.phone-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

/* Modern Country Code Dropdown */
.country-code-wrapper {
    position: relative;
    flex-shrink: 0;
}

.country-code-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 120px;
    height: 100%;
}

.country-code-trigger:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.country-code-trigger.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.country-flag {
    font-size: 24px;
    line-height: 1;
}

.country-dial-code {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
}

.dropdown-arrow {
    margin-left: auto;
    color: var(--text-light);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.country-code-trigger.active .dropdown-arrow {
    transform: rotate(180deg);
}

.country-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 320px;
    max-height: 350px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.country-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.country-search {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
}

.country-search input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    background: var(--bg-white);
    transition: all 0.2s ease;
}

.country-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.country-list {
    max-height: 280px;
    overflow-y: auto;
    padding: 8px;
}

.country-list::-webkit-scrollbar {
    width: 6px;
}

.country-list::-webkit-scrollbar-track {
    background: transparent;
}

.country-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.country-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

.country-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.country-item:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    transform: translateX(4px);
}

.country-item.selected {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
}

.country-item.selected .country-item-code,
.country-item.selected .country-item-name {
    color: white;
}

.country-item-flag {
    font-size: 26px;
    line-height: 1;
}

.country-item-info {
    flex: 1;
    min-width: 0;
}

.country-item-name {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.country-item-code {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 14px;
    flex-shrink: 0;
}

.country-item.selected .country-item-code {
    color: rgba(255, 255, 255, 0.9);
}

/* Detecting animation */
.detecting-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    color: var(--primary-color);
    font-size: 13px;
}

.detecting-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Region separator */
.region-separator {
    padding: 8px 14px 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modern Type Select Dropdown */
.type-select-wrapper {
    position: relative;
    width: 100%;
}

.type-select-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.type-select-trigger:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.type-select-trigger.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.type-icon {
    font-size: 24px;
    line-height: 1;
}

.type-text {
    flex: 1;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
}

.type-select-trigger .dropdown-arrow {
    color: var(--text-light);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.type-select-trigger.active .dropdown-arrow {
    transform: rotate(180deg);
}

.type-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    padding: 8px;
}

.type-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.type-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.type-item:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    transform: translateX(4px);
}

.type-item.selected {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.type-item.selected .type-item-name,
.type-item.selected .type-item-desc {
    color: white;
}

.type-item-icon {
    font-size: 28px;
    line-height: 1;
}

.type-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.type-item-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
}

.type-item-desc {
    font-size: 12px;
    color: var(--text-light);
}

/* Agency Name Input with Icon */
.agency-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.agency-input-wrapper:focus-within {
    border-color: var(--primary-color);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.agency-input-icon {
    font-size: 22px;
    line-height: 1;
}

.agency-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    outline: none;
}

.agency-input-wrapper input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

/* Animation for agency name field */
#agencyNameGroup {
    overflow: hidden;
    transition: all 0.3s ease;
}

#agencyNameGroup.show {
    animation: slideDown 0.3s ease forwards;
}

#agencyNameGroup.hide {
    animation: slideUp 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        margin-top: 0;
    }
    to {
        opacity: 1;
        max-height: 100px;
        margin-top: 1.5rem;
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 100px;
    }
    to {
        opacity: 0;
        max-height: 0;
    }
}

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

/* Button loader */
.btn-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(37, 99, 235, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Modern Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transform: translateX(120%);
    animation: slideInNotification 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 400px;
    font-weight: 500;
}

.notification-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.notification-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.notification::before {
    font-size: 20px;
}

.notification-success::before {
    content: '✓';
}

.notification-error::before {
    content: '✕';
}

@keyframes slideInNotification {
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutNotification {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(120%);
    }
}

.notification.hide {
    animation: slideOutNotification 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Responsive for country dropdown */
@media (max-width: 768px) {
    .country-dropdown {
        width: 280px;
        left: 0;
        right: auto;
    }
    
    .phone-input-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .country-code-wrapper {
        width: 100%;
    }
    
    .country-code-trigger {
        width: 100%;
        justify-content: flex-start;
    }
    
    .country-dropdown {
        width: 100%;
    }
}

#phone {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

#phone:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}


/* ==============================================
   RESPONSIVE DESIGN - Mobile Optimization
   ============================================== */

/* Tablet & Small Laptops */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-logo::before {
        width: 300px;
        height: 300px;
    }
    
    .hero-logo::after {
        width: 360px;
        height: 360px;
    }
    
    .hero-logo-img {
        width: 200px !important;
        height: 200px !important;
        padding: 25px;
        border-radius: 50% !important;
    }
    
    .trust-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Services page */
    .services-grid {
        grid-template-columns: 1fr !important;
    }
    
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-timeline::before {
        display: none;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    /* Navigation */
    .nav-container {
        height: 60px;
        padding: 0 15px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .nav-menu {
        position: absolute;
        top: 60px;
        right: 15px;
        left: auto;
        bottom: auto;
        width: 220px;
        background: var(--bg-white);
        flex-direction: column;
        padding: 0.5rem 0;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        z-index: 999;
        gap: 0;
        border-radius: 16px;
        border: 1px solid var(--border-color);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px) scale(0.95);
        transform-origin: top right;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }
    
    .nav-menu li {
        border-bottom: none;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        padding: 12px 20px;
        font-size: 0.95rem;
        border-radius: 8px;
        margin: 4px 8px;
        transition: all 0.2s ease;
    }
    
    .nav-link:hover {
        background: var(--bg-light);
    }
    
    .nav-link.active {
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
        color: white !important;
    }
    
    .nav-link.active::after {
        display: none;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 20px;
        position: relative;
        z-index: 1001;
        cursor: pointer;
    }
    
    .nav-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background: var(--text-dark);
        border-radius: 3px;
        transition: all 0.3s ease;
        transform-origin: center;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }

    /* Hero Section */
    .hero {
        padding: 80px 0 50px;
        margin-top: 60px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    .hero-graphic {
        font-size: 6rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-logo {
        transform: none;
    }
    
    .hero-logo::before {
        width: 250px;
        height: 250px;
    }
    
    .hero-logo::after {
        width: 300px;
        height: 300px;
    }
    
    .hero-logo-img {
        width: 180px !important;
        height: 180px !important;
        padding: 22px;
        border-radius: 50% !important;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        justify-content: center;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.5rem;
    }

    /* Advantages Grid */
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .advantage-card {
        padding: 1.5rem;
    }
    
    .advantage-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    /* Stats Section */
    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat {
        padding: 1rem;
    }
    
    .stat h3 {
        font-size: 2rem;
    }
    
    /* Trust Values Section */
    .trust-values {
        padding: 3rem 0;
    }
    
    .trust-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .trust-text {
        text-align: center;
    }
    
    .trust-text h2 {
        font-size: 1.5rem;
    }
    
    /* Form Styles Mobile */
    .trust-form {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .trust-form h2 {
        font-size: 1.25rem;
    }
    
    .phone-input-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .country-code-wrapper {
        width: 100%;
    }
    
    .country-code-trigger {
        width: 100%;
        justify-content: flex-start;
        padding: 14px 16px;
    }
    
    .country-dropdown {
        width: 100%;
        left: 0;
        right: 0;
    }
    
    .type-select-wrapper {
        width: 100%;
    }
    
    .type-select-trigger {
        width: 100%;
        padding: 14px 16px;
    }
    
    .type-dropdown {
        width: 100%;
    }
    
    #phone {
        width: 100%;
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .agency-input-wrapper {
        padding: 14px 16px;
    }
    
    .agency-input-wrapper input {
        font-size: 16px;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 1rem;
        width: 100%;
    }

    /* Page Hero */
    .page-hero {
        padding: 80px 0 40px;
        margin-top: 60px;
    }

    .page-hero-content h1 {
        font-size: 1.75rem;
    }

    .page-hero-content p {
        font-size: 1rem;
    }

    /* Service Cards */
    .service-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.5rem;
    }

    .service-icon {
        margin: 0 auto 1rem;
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* CTA Buttons */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .social-links {
        justify-content: center;
    }
    
    .footer-section ul {
        text-align: center;
    }
    
    .footer-section ul li {
        justify-content: center;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    /* Notifications Mobile */
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        font-size: 0.9rem;
        padding: 14px 18px;
    }
    
    /* About Page Mobile */
    .about-hero {
        padding: 80px 0 40px;
        margin-top: 60px;
    }
    
    .about-hero h1 {
        font-size: 1.75rem !important;
    }
    
    .mission-cards {
        grid-template-columns: 1fr;
    }
    
    .mission-card.new {
        padding: 1.5rem;
    }
    
    .story-stats.new {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-card .stat-number {
        font-size: 1.75rem;
    }
    
    .values-grid.new {
        grid-template-columns: 1fr;
    }
    
    .value-card.new {
        padding: 1.5rem;
    }
    
    .trust-points.new {
        grid-template-columns: 1fr;
    }
    
    .trust-point.new {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    /* Services Page Mobile */
    .services-hero {
        padding: 80px 0 40px;
        margin-top: 60px;
    }
    
    .services-hero h1 {
        font-size: 1.75rem !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .service-card.new {
        padding: 1.5rem;
    }
    
    .service-card.new .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .process-timeline {
        gap: 1.5rem;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .process-step {
        padding: 1.5rem;
        padding-left: 1.5rem;
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        position: static;
        margin-bottom: 1rem;
    }
    
    .industries.new {
        padding: 3rem 0;
    }
    
    .industries-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .industry-card {
        padding: 1.5rem;
    }
    
    .industry-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .cta-card {
        padding: 2rem 1.5rem;
        margin: 0 15px;
    }
    
    .cta-card h2 {
        font-size: 1.5rem;
    }
    
    /* Contact Page Mobile */
    .contact-hero {
        padding: 80px 0 40px;
        margin-top: 60px;
    }
    
    .contact-hero h1 {
        font-size: 1.75rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .map-container {
        height: 250px;
    }
    
    .map-container iframe {
        height: 250px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    /* Nav menu for small screens */
    .nav-menu {
        right: 10px;
        width: 200px;
    }
    
    .nav-link {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 70px 0 40px;
    }

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

    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-logo {
        transform: none;
    }
    
    .hero-logo-img {
        width: 150px !important;
        height: 150px !important;
        padding: 18px;
        border-radius: 50% !important;
    }

    .section-title {
        font-size: 1.35rem;
    }
    
    .advantages-grid,
    .steps-grid,
    .values-grid,
    .industries-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }

    .story-content,
    .trust-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .trust-form {
        padding: 1.25rem;
    }
    
    .trust-form h2 {
        font-size: 1.15rem;
    }
    
    .stat h3 {
        font-size: 1.75rem;
    }
    
    .story-stats.new {
        grid-template-columns: 1fr;
    }
    
    /* Buttons touch-friendly */
    .btn {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-whatsapp {
        font-size: 1rem;
        gap: 10px;
    }
    
    /* Form inputs touch-friendly */
    .country-code-trigger,
    .type-select-trigger,
    #phone,
    .agency-input-wrapper {
        min-height: 52px;
    }
    
    .country-item {
        padding: 14px 12px;
    }
    
    .type-item {
        padding: 14px 12px;
    }

    .page-hero {
        padding: 70px 0 30px;
    }

    .page-hero-content h1 {
        font-size: 1.5rem;
    }

    .page-hero-content p {
        font-size: 0.95rem;
    }
    
    /* Footer compact */
    .footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.35rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-logo {
        transform: none;
    }
    
    .hero-logo-img {
        width: 130px !important;
        height: 130px !important;
        padding: 15px;
        border-radius: 50% !important;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .country-code-trigger {
        padding: 12px;
    }
    
    .country-flag {
        font-size: 20px;
    }
    
    .country-dial-code {
        font-size: 13px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    
    .hero-image {
        order: 0;
    }
    
    .hero-buttons {
        justify-content: flex-start;
        flex-direction: row;
    }
    
    .hero-buttons .btn {
        width: auto;
    }
    
    .hero-logo {
        transform: none;
    }
    
    .hero-logo-img {
        width: 140px !important;
        height: 140px !important;
        padding: 16px;
        border-radius: 50% !important;
    }
    
    .nav-menu {
        padding-top: 1rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .country-item:hover,
    .type-item:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .advantage-card:hover,
    .service-card:hover,
    .value-card:hover {
        transform: none;
    }
    
    /* Larger tap targets */
    .nav-link {
        padding: 12px 8px;
    }
    
    .country-item,
    .type-item {
        min-height: 48px;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
    }
    
    .hero-logo-img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-logo::before,
    .hero-logo::after {
        animation: none;
    }
    
    .hero-logo-img {
        animation: none;
    }
}
