/* Variables de colores y fuentes */
:root {
    --primary-red: #D32F2F;
    --dark-red: #B71C1C;
    --light-red: #EF5350;
    --pink: #EC407A;
    --light-pink: #F8BBD0;
    --yellow: #FFD600;
    --light-yellow: #FFF9C4;
    --dark-gray: #263238;
    --medium-gray: #546E7A;
    --light-gray: #ECEFF1;
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, var(--primary-red), var(--pink));
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.2rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.btn {
    display: inline-block;
    background: var(--gradient);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(211, 47, 47, 0.3);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-red);
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    margin-top: 20px;
    color: var(--medium-gray);
    font-size: 1.1rem;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 2.2rem;
    margin-bottom: 0;
}

.logo h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo span {
    font-size: 0.8rem;
    color: var(--medium-gray);
    margin-left: 10px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 30px;
}

nav a {
    font-weight: 600;
    color: var(--dark-gray);
    position: relative;
}

nav a:hover {
    color: var(--primary-red);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--gradient);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
              url('images/hero-inmobiliario.jpg'); /* Cambia por tu imagen local */
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 150px 0;
  text-align: center;
  position: relative;
}


.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Featured Section */
.featured {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.featured-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.featured-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 400px;
    background:  url('images/featured-inmobiliario.jpg') center/cover;
}

.featured-content h2 {
    color: var(--primary-red);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.featured-content p {
    margin-bottom: 25px;
}

.quote {
    background-color: var(--light-yellow);
    border-left: 5px solid var(--yellow);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 5px 5px 0;
    font-style: italic;
}

/* Stats Section - CORREGIDA */
.stats {
    padding: 100px 0;
    background: var(--gradient);
    color: var(--white);
    text-align: center;
}

.stats .section-title h2 {
    color: var(--white);
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.stats .section-title p {
    color: var(--light-yellow);
    font-size: 1.2rem;
    opacity: 0.9;
}

.stats .section-title h2::after {
    background: var(--light-yellow);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.stat-item {
    padding: 40px 25px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    color: var(--light-yellow);
}

.stat-text {
    font-size: 1.2rem;
    line-height: 1.5;
    font-weight: 500;
    opacity: 0.95;
}

/* Articles Section */
.articles {
    padding: 100px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    color: var(--primary-red);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* Trends Section */
.trends {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.trends-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.trend-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.trend-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.trend-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 2rem;
}

.trend-card h3 {
    color: var(--primary-red);
    margin-bottom: 15px;
}

/* Newsletter */
.newsletter {
    padding: 80px 0;
    background-color: var(--light-yellow);
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    color: var(--primary-red);
    margin-bottom: 20px;
}

.newsletter p {
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-size: 1rem;
}

.newsletter-form button {
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 0 25px;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: linear-gradient(135deg, var(--dark-red), var(--pink));
}

/* Footer */
footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 70px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3, .footer-section h4 {
    color: var(--light-yellow);
    margin-bottom: 20px;
}

.footer-section h3 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-section p {
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a:hover {
    color: var(--light-pink);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-red);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 992px) {
    .featured-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .featured-image {
        height: 300px;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .header-container {
        padding: 10px 0;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 100px 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 30px;
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        border-radius: 30px;
        padding: 15px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .featured-content h2 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stats .section-title h2 {
        font-size: 2.2rem;
    }
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px; /* Espacio entre imagen y texto */
}

.logo-img {
  width: 250px;   /* Ajusta el tamaño según lo necesites */
  height: auto;  /* Mantiene la proporción */
}
