@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;0,900;1,700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #0f1012;
    --bg-secondary: #17181c;
    --bg-card: #202227;
    --color-accent: #facc15;
    --color-accent-hover: #eab308;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-dark: #000000;
    --border-color: #333333;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.text-accent {
    color: var(--color-accent);
}

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

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 80px 0;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 16, 18, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    gap: 16px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    display: block;
    height: 48px;
    width: auto;
    max-width: none;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-accent);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.phone-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn i {
    margin-left: 8px;
}

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

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-text {
    background: transparent;
    color: var(--color-accent);
    padding: 0;
}
.btn-text:hover {
    color: var(--color-accent-hover);
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
}

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

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.copyright {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Utilities */
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
.mb-6 { margin-bottom: 64px; }

.mt-5 { margin-top: 48px;}

.section-subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.grid {
    display: grid;
}

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); gap: 32px; }

/* Mobile Toggle Hidden on Desktop */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-accent);
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    line-height: 1;
}

@media (max-width: 900px) {

    /* ===== GRIDS ===== */
    .grid-cols-2, .grid-cols-3, .grid-cols-4,
    .about-grid, .contact-grid, .arquitectura-grid,
    .history-grid-container, .profiles-grid,
    .contact-layout, .feat-grid-top, .feat-grid-bottom {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* ===== TYPOGRAPHY ===== */
    h1 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }
    .section-title {
        font-size: 1.75rem !important;
    }
    .quote-section h2 {
        font-size: 1.75rem !important;
    }
    .contact-header h1 {
        font-size: 2.2rem !important;
    }

    /* ===== HERO SECTIONS ===== */
    .hero,
    .hero-escolta,
    .hero-servicios,
    .hero-history,
    .hero-sistemas {
        padding: 130px 0 60px !important;
        min-height: auto !important;
        height: auto !important;
        text-align: center;
    }
    .hero p,
    .hero-escolta p,
    .hero-servicios p,
    .hero-history p,
    .hero-sistemas p {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .hero-actions {
        justify-content: center !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }
    .hero-actions .btn,
    .hero-actions .btn-text {
        width: auto !important;
    }

    /* ===== SECTIONS ===== */
    section {
        padding: 50px 0 !important;
    }
    .quote-section {
        padding: 60px 0 !important;
    }

    /* ===== NAV & HAMBURGER ===== */
    .mobile-toggle {
        display: block !important;
        background: none;
        border: none;
        color: var(--color-accent);
        cursor: pointer;
        padding-top: 4px;
    }
    .nav-links {
        display: none !important;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(15, 16, 18, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 28px 0;
        gap: 24px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 30px rgba(0,0,0,0.8);
        z-index: 999;
    }
    .nav-links.active {
        display: flex !important;
        animation: fadeInDown 0.3s ease;
    }
    @keyframes fadeInDown {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .phone-number { display: none !important; }
    .nav-right { gap: 12px; }
    /* CTA button in nav-right stays small */
    .nav-right .btn {
        width: auto !important;
        padding: 8px 16px !important;
        font-size: 0.75rem !important;
    }

    /* ===== BUTTONS (general) ===== */
    .hero-actions .btn,
    .cta-actions .btn,
    .cta-buttons .btn {
        width: auto !important;
    }

    /* ===== FOOTER ===== */
    .footer .container {
        flex-direction: column !important;
        gap: 20px !important;
        text-align: center !important;
        align-items: center !important;
    }
    /* Override inline styles on footer containers */
    .footer .container > div {
        width: 100% !important;
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .footer-links {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    /* ===== INDEX PAGE ===== */
    .services-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
        margin-bottom: 32px !important;
    }
    .service-card {
        height: 300px !important;
        justify-content: flex-start !important;
        padding-top: 32px !important;
    }
    .about-image {
        height: 260px !important;
    }
    .years-badge {
        padding: 12px 20px !important;
    }
    .contact-form {
        padding: 24px !important;
    }
    /* Contact section on index */
    .contact-info-block {
        text-align: left;
    }

    /* ===== CONTACTO PAGE ===== */
    .contact-page {
        padding: 110px 0 60px !important;
    }
    .elite-form-card {
        padding: 24px !important;
    }
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    .certifications {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
    }
    .map-placeholder {
        height: 160px !important;
    }

    /* ===== CHOFERES PAGE ===== */
    /* Remove sticky sidebar */
    div[style*="position: sticky"] {
        position: relative !important;
        top: auto !important;
    }

    /* ===== SISTEMAS PAGE ===== */
    .arquitectura-img {
        height: 260px !important;
    }
    .protocol-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px !important;
    }
    .cta-dark {
        padding: 32px 20px !important;
    }
    .cta-form {
        flex-direction: column !important;
    }
    .cta-form input,
    .cta-form .btn {
        width: 100% !important;
    }
    .hero-sistemas {
        height: auto !important;
        min-height: auto !important;
    }

    /* ===== ESCOLTA PAGE ===== */
    .globe-container {
        max-width: 250px !important;
        margin: 0 auto !important;
    }
    .cta-buttons {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }
    .cta-buttons .btn {
        width: auto !important;
    }
    .card-dark {
        padding: 24px !important;
    }
    .card-methodology {
        background-image: linear-gradient(rgba(32, 34, 39, 0.97), rgba(32, 34, 39, 0.97)) !important;
        min-height: 220px !important;
    }
    .profiles-section {
        padding: 50px 0 !important;
    }

    /* ===== QUIENES SOMOS PAGE ===== */
    .phil-grid {
        grid-template-columns: 1fr !important;
    }
    .phil-grid .wide-card {
        grid-column: auto !important;
        grid-row: auto !important;
        height: 260px !important;
    }
    .cta-actions {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }
    .cta-actions .btn {
        width: auto !important;
    }
    .legacy-item,
    .legacy-item.reverse {
        flex-direction: column !important;
        text-align: left !important;
    }
    .legacy-img {
        width: 100% !important;
        height: 180px !important;
    }
    .philosophy-section {
        padding: 50px 0 !important;
    }
    .legacy-section {
        padding: 50px 0 !important;
    }
    .history-image-holder {
        height: 240px !important;
    }
    .metrics-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .cta-box {
        padding: 40px 0 !important;
    }
    .cta-box h2 {
        font-size: 1.75rem !important;
    }

    /* ===== PREVENT IOS ZOOM ON INPUTS ===== */
    .form-control,
    .form-select,
    .form-textarea,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* Extra small screens (phones < 480px) */
@media (max-width: 480px) {
    h1 { font-size: 1.9rem !important; }
    .section-title { font-size: 1.5rem !important; }
    .container { padding: 0 16px !important; }
    .protocol-grid { grid-template-columns: 1fr !important; }
    .metrics-grid { grid-template-columns: 1fr !important; }
    .service-card { height: 280px !important; }
    .contact-form,
    .elite-form-card,
    .card-dark { padding: 20px !important; }
    .hero,
    .hero-escolta,
    .hero-servicios,
    .hero-history,
    .hero-sistemas {
        padding: 110px 0 48px !important;
    }
    .cta-dark h2 { font-size: 1.5rem !important; }
}

/* ===== GOOGLE TRANSLATE CUSTOM STYLES ===== */
.goog-te-gadget-simple {
    background-color: transparent !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 4px !important;
    padding: 6px 12px !important;
    transition: border-color 0.3s ease;
}

.goog-te-gadget-simple:hover {
    border-color: var(--color-accent) !important;
}

.goog-te-gadget-simple .goog-te-menu-value {
    color: var(--text-primary) !important;
    font-family: var(--font-body) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
}

.goog-te-gadget-simple .goog-te-menu-value span {
    color: var(--text-primary) !important;
    text-decoration: none !important;
}

.goog-te-gadget-icon {
    display: none !important;
}

/* Hide top bar from Google Translate */
body {
    top: 0 !important;
}
.skiptranslate iframe {
    display: none !important;
}
#goog-gt-tt {
    display: none !important;
}
