/* ===================================
   GUADALTEC — CSS Principal
   Electricista · Ayamonte · Huelva
   =================================== */

/* ===== VARIABLES ===== */
:root {
    --blue-primary: #0066CC;
    --blue-dark: #0A1628;
    --blue-medium: #1a3a6b;
    --blue-light: #e8f0fb;
    --yellow: #FFD700;
    --yellow-hover: #E6C200;
    --yellow-soft: rgba(255, 215, 0, 0.15);
    --green-wa: #25D366;
    --green-wa-hover: #1DAA54;
    --white: #FFFFFF;
    --gray-light: #F5F7FA;
    --gray-border: #E5E7EB;
    --gray: #6B7280;
    --gray-dark: #374151;
    --text: #111827;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-yellow: 0 6px 20px rgba(255, 215, 0, 0.35);
    --shadow-wa: 0 6px 20px rgba(37, 211, 102, 0.4);

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --nav-height: 72px;
    --transition: 0.25s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
h1, h2, h3, h4 { line-height: 1.2; }

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition);
    cursor: pointer;
    white-space: nowrap;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--yellow);
    color: var(--blue-dark);
    border-color: var(--yellow);
}
.btn-primary:hover {
    background: var(--yellow-hover);
    border-color: var(--yellow-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-yellow);
}

.btn-whatsapp {
    background: var(--green-wa);
    color: var(--white);
    border-color: var(--green-wa);
}
.btn-whatsapp:hover {
    background: var(--green-wa-hover);
    border-color: var(--green-wa-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-wa);
}

.btn-full { width: 100%; }

/* ===== SECTION TAG ===== */
.section-tag {
    display: inline-block;
    background: var(--blue-light);
    color: var(--blue-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-tag-light {
    background: var(--yellow-soft);
    color: var(--yellow);
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}
.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
}
.section-header-light h2 { color: var(--white); }
.section-header-light p { color: rgba(255, 255, 255, 0.72); }

/* ===== HEADER ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background var(--transition), box-shadow var(--transition);
}
#header.scrolled {
    background: var(--blue-dark);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    z-index: 1001;
}
.logo-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.7));
    animation: glow-pulse 3s ease-in-out infinite;
}
.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.03em;
}

@keyframes glow-pulse {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(255,215,0,0.6)); }
    50% { filter: drop-shadow(0 0 16px rgba(255,215,0,1)); }
}

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
}
.nav-links a {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--yellow);
    background: rgba(255, 255, 255, 0.07);
}

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

.lang-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 3px;
    gap: 2px;
}
.lang-btn {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all var(--transition);
    letter-spacing: 0.06em;
}
.lang-btn:hover { color: var(--white); }
.lang-btn.active {
    background: var(--yellow);
    color: var(--blue-dark);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
#hero {
    min-height: 100vh;
    background: linear-gradient(140deg, #060e1e 0%, var(--blue-dark) 45%, #0d2245 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 48px) 24px 80px;
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 60%, rgba(0, 102, 204, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 25%, rgba(255, 215, 0, 0.06) 0%, transparent 45%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--yellow);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    letter-spacing: 0.04em;
}

.hero-text h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    line-height: 1.08;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 36px;
    max-width: 500px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
    width: fit-content;
}
.stat { text-align: center; }
.stat strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--yellow);
    line-height: 1.1;
}
.stat span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
}

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

.circuit-svg {
    width: 100%;
    max-width: 460px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 40px rgba(0, 102, 204, 0.2));
}

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

.bolt-glow {
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity var(--transition);
    z-index: 1;
}
.scroll-indicator:hover { opacity: 1; }
.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(45deg);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(6px); }
}

/* ===== SERVICES ===== */
#servicios {
    padding: 100px 0;
    background: var(--gray-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    border: 1px solid var(--gray-border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-primary), var(--yellow));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--blue-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--blue-primary);
    transition: all var(--transition);
}
.service-icon svg {
    width: 32px;
    height: 32px;
}
.service-card:hover .service-icon {
    background: var(--blue-primary);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}
.service-card p {
    font-size: 0.92rem;
    color: var(--gray);
    line-height: 1.65;
}

/* ===== ABOUT ===== */
#sobre-mi {
    padding: 100px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.about-image-wrap {
    position: relative;
}

.about-photo {
    width: 75%;
    height: 360px;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius-lg);
    display: block;
}

.about-image-placeholder {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-medium) 100%);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    overflow: hidden;
    position: relative;
}
.about-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(255,215,0,0.06) 0%, transparent 60%);
}
.about-image-placeholder svg {
    width: 180px;
    height: auto;
    position: relative;
    z-index: 1;
}

.photo-placeholder-text {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.about-accent-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--yellow);
    color: var(--blue-dark);
    padding: 14px 20px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
}
.accent-icon { font-size: 1.2rem; }

.about-content { padding-right: 0; }

.about-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.about-role {
    color: var(--blue-primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-content p {
    color: var(--gray-dark);
    margin-bottom: 16px;
    font-size: 1.02rem;
    line-height: 1.75;
}

.about-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0;
}

.badge {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--blue-light);
    color: var(--blue-primary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}
.badge span:first-child {
    font-weight: 700;
    color: var(--blue-primary);
}

/* ===== COVERAGE ===== */
#cobertura {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-medium) 100%);
}

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

.coverage-zones {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.zone-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 22px;
    border-radius: var(--radius);
    transition: background var(--transition);
}
.zone-item:hover { background: rgba(255, 255, 255, 0.11); }

.zone-flag { font-size: 2rem; flex-shrink: 0; margin-top: 2px; }

.zone-item strong {
    display: block;
    color: var(--yellow);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.zone-item p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
    line-height: 1.55;
}

.coverage-note-box {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: var(--radius);
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.coverage-note-box p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
    line-height: 1.5;
    flex: 1;
    min-width: 200px;
}
.coverage-note-box .btn {
    flex-shrink: 0;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.map-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.map-container iframe {
    width: 100%;
    height: 380px;
    border: none;
    display: block;
}
.map-link {
    display: block;
    background: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 10px;
    font-size: 0.85rem;
    transition: background var(--transition);
}
.map-link:hover {
    background: rgba(0, 0, 0, 0.9);
    color: var(--white);
}

/* ===== CONTACT ===== */
#contacto {
    padding: 100px 0;
    background: var(--gray-light);
}

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

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

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 20px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-border);
}

.contact-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }

.contact-item strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 4px;
}
.contact-item a, .contact-item span {
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
}
.contact-item a:hover { color: var(--blue-primary); }

/* ===== FORM ===== */
.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-border);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-dark);
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--gray-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

input::placeholder, textarea::placeholder {
    color: var(--gray);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

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

#submit-btn {
    margin-top: 4px;
}

#submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-feedback {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 500;
    display: none;
}
.form-feedback.success {
    display: block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.form-feedback.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ===== FOOTER ===== */
#footer {
    background: var(--blue-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    margin-bottom: 12px;
}
.footer-brand p {
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.footer-contact-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-contact-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    transition: color var(--transition);
}
.footer-contact-links a:hover { color: var(--yellow); }

.footer-links-col h4, .footer-lang-col h4 {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.footer-links-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links-col a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}
.footer-links-col a:hover { color: var(--yellow); }

.lang-switcher-footer {
    flex-direction: column;
    background: transparent;
    padding: 0;
    gap: 6px;
}
.lang-switcher-footer .lang-btn {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 14px;
    text-align: left;
    letter-spacing: 0;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255,255,255,0.04);
}
.lang-switcher-footer .lang-btn:hover {
    color: var(--white);
    background: rgba(255,255,255,0.08);
}
.lang-switcher-footer .lang-btn.active {
    background: var(--yellow);
    color: var(--blue-dark);
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: var(--green-wa);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: all var(--transition);
}
.whatsapp-float:hover {
    background: var(--green-wa-hover);
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.65);
}
.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--green-wa);
    animation: whatsapp-ring 2.5s ease-out infinite;
    z-index: -1;
}

@keyframes whatsapp-ring {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
    .hero-inner { gap: 40px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Mobile landscape + tablet portrait */
@media (max-width: 768px) {
    :root { --nav-height: 64px; }

    /* Nav mobile */
    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 80vw);
        height: 100vh;
        background: var(--blue-dark);
        flex-direction: column;
        align-items: flex-start;
        padding: calc(var(--nav-height) + 24px) 24px 40px;
        gap: 4px;
        transition: right var(--transition);
        border-left: 1px solid rgba(255,255,255,0.1);
        box-shadow: -8px 0 32px rgba(0,0,0,0.4);
        z-index: 1000;
        overflow-y: auto;
    }
    .nav-links.open { right: 0; }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: block;
        padding: 14px 16px;
        font-size: 1.1rem;
        width: 100%;
    }

    /* Hero */
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-visual { order: -1; }
    .circuit-svg { max-width: 280px; margin: 0 auto; }
    .hero-badge { display: inline-flex; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-stats { margin: 0 auto; }

    /* Services */
    .services-grid { grid-template-columns: 1fr; gap: 16px; }

    /* About */
    .about-grid { grid-template-columns: 1fr; }
    .about-photo { height: 320px; object-position: center 20%; }

    /* Coverage */
    .coverage-grid { grid-template-columns: 1fr; gap: 32px; }
    .map-container iframe { height: 280px; }

    /* Contact */
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 24px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; }

    /* WhatsApp */
    .whatsapp-float { bottom: 20px; right: 20px; width: 54px; height: 54px; }
}

/* Small mobile */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    #hero { padding-left: 16px; padding-right: 16px; }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }
    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }

    .btn { padding: 13px 22px; font-size: 0.95rem; }

    #servicios, #sobre-mi, #cobertura, #contacto { padding: 72px 0; }
    .section-header { margin-bottom: 40px; }

    .service-card { padding: 28px 20px; }
    .about-image-placeholder { min-height: 280px; }
    .coverage-note-box { flex-direction: column; }
}
