/* ========================================
   Central Inmobiliaria Necochea
   One-Page Profesional
   ======================================== */

/* Reset y Variables */
:root {
  --primary: #005589;
  --primary-dark: #00426b;
  --primary-light: #006bb3;
  --white: #ffffff;
  --off-white: #f0f4f8;
  --text-dark: #1a2a3a;
  --text-muted: #8fa3b8;
  --shadow: 0 4px 24px rgba(0, 85, 137, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--primary);
  color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, var(--primary-light) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, var(--primary-dark) 0%, transparent 50%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  z-index: -1;
}

/* Grid subtle pattern */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
  pointer-events: none;
}

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

/* ========================================
   Header
   ======================================== */
header {
  padding: 32px 0;
  text-align: center;
  animation: fadeInDown 0.8s ease-out;
}

.logo-container {
  display: inline-block;
  margin-bottom: 8px;
}

.logo {
  height: 100px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.3));
}

.tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  padding: 60px 0 40px;
  text-align: center;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero h1 span {
  display: block;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 0;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 500px;
  margin: 0 auto;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
  padding: 40px 0;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.section-title {
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-weight: 600;
}

.locations {
  display: grid;
  gap: 20px;
}

.location-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.location-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--white), var(--primary-light));
  opacity: 0;
  transition: var(--transition);
}

.location-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.location-card:hover::before {
  opacity: 1;
}

.location-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.location-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.location-name svg {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.address {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.9);
}

.address svg {
  width: 18px;
  height: 18px;
  opacity: 0.7;
  flex-shrink: 0;
}

.phone-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 500;
  padding: 8px 0;
  transition: var(--transition);
}

.phone-link:hover {
  color: var(--off-white);
}

.phone-link svg {
  width: 20px;
  height: 20px;
  opacity: 0.8;
  flex-shrink: 0;
}

.phone-prefix {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ========================================
   Social Section
   ======================================== */
.social {
  padding: 40px 0 60px;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.social-link:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.social-link.instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: transparent;
}

.social-link.facebook:hover {
  background: #1877f2;
  border-color: transparent;
}

/* ========================================
   Footer
   ======================================== */
footer {
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

footer a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

footer a:hover {
  text-decoration: underline;
}

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

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

/* ========================================
   Responsive - Desktop
   ======================================== */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }

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

  .locations {
    grid-template-columns: repeat(2, 1fr);
  }

  .location-card {
    padding: 20px;
  }
}

@media (min-width: 1024px) {
  .logo {
    height: 100px;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .hero h1 {
    font-size: 4rem;
  }
}
