/*
Theme Name: Nacional de Arrendamientos
Theme URI: https://conectadosmultimedia.co
Author: José Manuel Ruiz Florez
Author URI: https://conectadosmultimedia.co
Description: Plantilla minimalista para inmobiliaria especializada en venta y renta de propiedades. Versión 1.0
Version: 1.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nacional-arrendamientos
Primary Color: #D32F2F (Rojo intenso)
Secondary Color: #000000 (Negro)
Background Color: #FFFFFF (Blanco)

Este tema está diseñado específicamente para el sector inmobiliario, 
con enfoque en la venta y renta de propiedades.
*/

/* ==========================================================================
   RESET Y ESTILOS BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

/* ==========================================================================
   TIPOGRAFÍA
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #000000;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

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

a:hover {
    color: #B71C1C;
}

/* ==========================================================================
   LAYOUT Y CONTENEDORES
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   HEADER Y LOGO
   ========================================================================== */
.site-header {
    background-color: #FFFFFF;
    border-bottom: 1px solid #EEEEEE;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

/* Contenedor del logo */
.logo-container {
    display: flex;
    align-items: center;
}

/* Logo personalizado */
.custom-logo {
    max-height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.site-header.scrolled .custom-logo {
    max-height: 50px;
}

/* Logo de texto (fallback) */
.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #D32F2F;
    text-decoration: none;
    display: inline-block;
}

.logo-text span {
    color: #000000;
}

.logo-text .rojo {
    color: #D32F2F;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.contacto-btn {
    background-color: #D32F2F;
    color: #FFFFFF;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.contacto-btn:hover {
    background-color: #B71C1C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
    color: #FFFFFF;
}

.contacto-btn i {
    font-size: 14px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0.1;
}

.hero h1 {
    font-size: 3.5rem;
    color: #000000;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 .rojo {
    color: #D32F2F;
}

.hero p {
    font-size: 1.2rem;
    color: #555555;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* ==========================================================================
   SECCIÓN DE PROPIEDADES
   ========================================================================== */
.featured-properties {
    padding: 80px 0;
    background-color: #F9F9F9;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #D32F2F;
}

.section-title p {
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid de propiedades */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.property-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.property-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.property-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-img img {
    transform: scale(1.05);
}

.property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #D32F2F;
    color: #FFFFFF;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.property-info {
    padding: 25px;
}

.property-info h3 {
    font-size: 1.4rem;
    color: #000000;
    margin-bottom: 10px;
}

.property-price {
    color: #D32F2F;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.property-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #666666;
    font-size: 0.9rem;
}

.property-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-address {
    color: #777777;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-type {
    display: inline-block;
    padding: 5px 12px;
    background-color: #D32F2F;
    color: #FFFFFF;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 10px;
}

/* ==========================================================================
   SECCIÓN DE SERVICIOS
   ========================================================================== */
.services {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #EEEEEE;
}

.service-card:hover {
    border-color: #D32F2F;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: #D32F2F;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4rem;
    color: #000000;
    margin-bottom: 15px;
}

/* ==========================================================================
   SECCIÓN DE CONTACTO
   ========================================================================== */
.contact-section {
    padding: 80px 0;
    background-color: #000000;
    color: #FFFFFF;
}

.contact-section .section-title h2 {
    color: #FFFFFF;
}

.contact-section .section-title h2::after {
    background-color: #FFFFFF;
}

.contact-section .section-title p {
    color: #CCCCCC;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 40px;
}

.contact-info h3 {
    color: #D32F2F;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 20px;
    color: #DDDDDD;
}

.contact-details {
    margin-top: 30px;
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #DDDDDD;
}

.contact-detail i {
    color: #D32F2F;
    margin-right: 10px;
    font-size: 1.2rem;
    width: 20px;
}

/* Formulario de contacto */
.contact-form {
    background-color: #1A1A1A;
    padding: 30px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #DDDDDD;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background-color: #2A2A2A;
    border: 1px solid #444444;
    border-radius: 4px;
    color: #FFFFFF;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #D32F2F;
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2);
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: #111111;
    color: #AAAAAA;
    padding: 40px 0 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo img {
    max-height: 60px;
    width: auto;
    margin-bottom: 15px;
}

.footer-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #D32F2F;
    margin-bottom: 15px;
}

.footer-logo-text span {
    color: #FFFFFF;
}

.footer-logo-text .rojo {
    color: #D32F2F;
}

.footer-social {
    margin: 20px 0;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #D32F2F;
    color: #FFFFFF;
    border-radius: 50%;
    margin: 0 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #B71C1C;
    transform: translateY(-3px);
}

.footer-copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333333;
    width: 100%;
    font-size: 0.9rem;
    color: #777777;
}

/* ==========================================================================
   PÁGINA 404
   ========================================================================== */
.error-404 {
    padding: 150px 0 100px;
    text-align: center;
}

.error-404 h1 {
    font-size: 6rem;
    color: #D32F2F;
    margin-bottom: 20px;
}

/* ==========================================================================
   PAGINACIÓN
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #FFFFFF;
    color: #333333;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers.current {
    background-color: #D32F2F;
    color: #FFFFFF;
    border-color: #D32F2F;
}

.page-numbers:hover {
    background-color: #F5F5F5;
    border-color: #D32F2F;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero {
        padding: 140px 0 80px;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .custom-logo {
        max-height: 50px;
    }
    
    .logo-text {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .custom-logo {
        max-height: 40px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .contacto-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* CONTENEDOR DE 3 TESTIMONIOS HORIZONTALES */
.testimonios-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas iguales */
    gap: 30px;
    margin: 40px 0;
}

/* CADA TESTIMONIO */
.testimonio-card-horizontal {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonio-card-horizontal:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

/* Comillas */
.testimonio-quote {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 40px;
    color: #D32F2F;
    opacity: 0.2;
}

/* Calificación */
.testimonio-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testimonio-rating .stars {
    display: flex;
    gap: 3px;
}

.testimonio-rating .star {
    font-size: 20px;
    color: #FFD700;
}

.testimonio-rating .star.empty {
    color: #E0E0E0;
}

.testimonio-rating .rating-number {
    background: #f5f5f5;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Texto del testimonio */
.testimonio-texto {
    flex-grow: 1;
    margin-bottom: 25px;
}

.testimonio-texto p {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    font-style: italic;
    margin: 0;
    position: relative;
    padding-left: 20px;
}

.testimonio-texto p:before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 36px;
    color: #D32F2F;
    font-family: Georgia, serif;
}

/* Información del autor */
.testimonio-autor {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.autor-imagen {
    flex-shrink: 0;
}

.autor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.autor-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #222;
}

.autor-cargo {
    margin: 0;
    font-size: 14px;
    color: #D32F2F;
    font-weight: 500;
}

.autor-empresa {
    margin: 0;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .testimonios-grid-horizontal {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablet */
    }
}

@media (max-width: 768px) {
    .testimonios-grid-horizontal {
        grid-template-columns: 1fr; /* 1 columna en móvil */
        gap: 20px;
    }
    
    .testimonio-card-horizontal {
        padding: 20px;
    }
}