:root {
    --color-primary: #1b9aaa;
    --color-primary-dark: #127481;
    --color-secondary: #ffb347;
    --color-secondary-dark: #f39c12;
    --color-accent: #ffd369;

    /* Neutros */
    --color-bg: #f5f7fb;
    --color-bg-soft: #ffffff;
    --color-bg-accent: #e9f5f6;
    --color-text: #1f2933;
    --color-text-soft: #6b7280;
    --color-border-soft: rgba(0, 0, 0, 0.06);

    /* Sombras y efectos */
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.10);
    --shadow-hover: 0 18px 40px rgba(15, 23, 42, 0.16);

    /* Tipografías */
    --font-base: 'Poppins', system-ui, sans-serif;
    --font-heading: 'Playfair Display', serif;

    /* Medidas */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --transition-fast: 0.25s ease;
    --transition-med: 0.4s ease;
    --max-width: 1200px;

    /* Z-index */
    --z-header: 1000;
    --z-overlay: 900;
    --z-modal: 1001;
    --z-backtotop: 950;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; padding: 0; font-family: var(--font-base); color: var(--color-text); background-color: var(--color-bg); line-height: 1.6; }
h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

.site-header { position: sticky; top: 0; width: 100%; z-index: var(--z-header); background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(12px); box-shadow: 0 1px 8px rgba(15, 23, 42, 0.06); }
.header-container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 20px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 34px; height: 34px; background: var(--color-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: var(--shadow-soft); }
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-weight: 600; font-size: 18px; letter-spacing: 0.02em; }
.logo-subtitle { font-size: 11px; color: var(--color-text-soft); }

.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: 24px; }
.nav-link { font-size: 14px; font-weight: 400; color: var(--color-text-soft); position: relative; padding-bottom: 4px; transition: color var(--transition-fast); }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0%; height: 2px; background: linear-gradient(90deg, var(--color-primary), var(--color-secondary)); border-radius: 999px; transition: width var(--transition-fast); }
.nav-link:hover, .nav-link.active { color: var(--color-primary-dark); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.burger { display: none; flex-direction: column; gap: 5px; background: transparent; border: none; cursor: pointer; padding: 4px; }
.burger-line { width: 22px; height: 2px; background: var(--color-text); border-radius: 999px; transition: all var(--transition-fast); }
.mobile-menu { display: none; position: fixed; inset: 0; background: rgba(5, 14, 34, 0.98); color: #fff; padding: 90px 30px 40px; transform: translateY(-100%); transition: transform var(--transition-med); z-index: var(--z-overlay); }
.mobile-menu.open { display: block; transform: translateY(0); }
.mobile-nav-list { display: flex; flex-direction: column; gap: 18px; font-size: 18px; }
.mobile-nav-link { padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); color: #e5e7eb; transition: color var(--transition-fast), transform var(--transition-fast); }
.mobile-nav-link.highlight { color: var(--color-secondary); font-weight: 600; }

.overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.4); opacity: 0; visibility: hidden; transition: opacity var(--transition-fast), visibility var(--transition-fast); z-index: var(--z-overlay); }
.overlay.show { opacity: 1; visibility: visible; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: var(--radius-md); border: none; cursor: pointer; font-weight: 500; font-size: 14px; transition: all var(--transition-fast); white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.btn-secondary { background: #ffffff; color: var(--color-primary-dark); border: 1px solid rgba(27, 154, 170, 0.2); }
.btn-secondary:hover { background: var(--color-bg-accent); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--color-primary-dark); border: 1px solid rgba(27, 154, 170, 0.4); box-shadow: none; }
.btn-outline:hover { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-soft); }

.hero-contacto { position: relative; min-height: 50vh; display: flex; align-items: center; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); color: #fff; }
.hero-content { position: relative; z-index: 2; padding: 60px 20px 40px; text-align: center; }
.hero-text h1 { font-family: var(--font-heading); font-size: 36px; line-height: 1.2; margin-bottom: 16px; }
.hero-text h1 span { color: var(--color-accent); }
.hero-text p { font-size: 16px; color: #e5e7eb; margin-bottom: 22px; max-width: 600px; margin-left: auto; margin-right: auto; }

.section { padding: 60px 0; }
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.contacto-form { background: var(--color-bg-soft); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-soft); border: 1px solid var(--color-border-soft); }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-group label { font-size: 14px; font-weight: 500; color: var(--color-text); }
.form-group input, .form-group select, .form-group textarea { padding: 12px; border-radius: var(--radius-md); border: 1px solid rgba(148, 163, 253, 0.35); font-size: 14px; outline: none; transition: border-color var(--transition-fast), box-shadow var(--transition-fast); background: #ffffff; color: var(--color-text); font-family: var(--font-base); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 1px rgba(27, 154, 170, 0.12); }
.form-group textarea { resize: vertical; min-height: 100px; }

.contacto-info { display: flex; flex-direction: column; gap: 30px; }
.info-card { background: var(--color-bg-soft); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-soft); border: 1px solid var(--color-border-soft); }
.info-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; color: var(--color-primary-dark); }
.info-item { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.info-icon { width: 20px; height: 20px; background: var(--color-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; flex-shrink: 0; }
.info-text { font-size: 14px; color: var(--color-text-soft); }

.mapa-container { background: var(--color-bg-soft); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid var(--color-border-soft); height: 300px; position: relative; }
.mapa-placeholder { width: 100%; height: 100%; background: linear-gradient(45deg, #f3f4f6, #e5e7eb); display: flex; align-items: center; justify-content: center; color: var(--color-text-soft); font-size: 16px; }

.form-success-message, .form-error-message { margin-top: 10px; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 13px; }
.form-success-message { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.form-error-message { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

.site-footer { background: #020817; color: #9ca3af; padding-top: 34px; }
.footer-container { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.8fr; gap: 26px; max-width: var(--max-width); margin: 0 auto; padding: 0 20px 24px; }
.footer-brand { display: flex; gap: 10px; align-items: flex-start; }
.footer-brand h3 { color: #ffffff; font-size: 16px; margin-bottom: 4px; }
.footer-brand p { font-size: 11px; }
.footer-links h4, .footer-newsletter h4 { font-size: 13px; color: #e5e7eb; margin-bottom: 8px; }
.footer-links ul li { margin-bottom: 4px; }
.footer-links a { font-size: 11px; color: #9ca3af; transition: color var(--transition-fast), transform var(--transition-fast); }
.footer-links a:hover { color: var(--color-secondary); transform: translateX(2px); }
.newsletter-form { display: flex; flex-direction: column; gap: 6px; }
.newsletter-form input { padding: 7px 8px; border-radius: 9px; border: 1px solid rgba(148, 163, 253, 0.35); font-size: 11px; background: #020817; color: #e5e7eb; outline: none; transition: all var(--transition-fast); }
.newsletter-form input::placeholder { color: #6b7280; }
.newsletter-form input:focus { border-color: var(--color-secondary); box-shadow: 0 0 0 1px rgba(243, 156, 18, 0.14); }
.footer-bottom { border-top: 1px solid rgba(75, 85, 99, 0.6); padding: 8px 20px 14px; text-align: center; font-size: 10px; color: #6b7280; }

@media (max-width: 992px) {
    .contacto-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .main-nav, .header-cta { display: none; }
    .burger { display: flex; }
    .hero-text h1 { font-size: 28px; }
    .contacto-form { padding: 20px; }
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 24px; }
    .footer-container { grid-template-columns: 1fr; }
}
