/* ==========================================================================
   VARIABLES GLOBALES
   ========================================================================== */
:root {
    /* Paleta de colores - Estilo sobrio y arquitectónico */
    --primary-color: #2c3e50;      /* Azul oscuro / Gris acero */
    --accent-color: #d4af37;       /* Dorado arquitectónico / Detalles */
    --text-main: #333333;
    --text-light: #f5f6fa;
    --bg-color: #ecf0f1;           /* Fondo gris muy claro */
    --footer-bg: #1a1a1a;
    
    /* Tipografía */
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   RESET Y ESTILOS BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Desplazamiento suave al hacer clic en los enlaces del menú */
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
}

h1, h2, h3 {
    margin-bottom: 15px;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ==========================================================================
   NAVEGACIÓN (HEADER)
   ========================================================================== */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo h2 {
    margin: 0;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent-color);
}

/* ==========================================================================
   SECCIÓN HERO (INICIO)
   ========================================================================== */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    /* Aquí puedes agregar una imagen de fondo de arquitectura */
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('../img/assets/hero-bg.jpg') center/cover no-repeat;
    color: var(--text-light);
}

.hero-content {
    max-width: 800px;
    padding: 40px;
    border-radius: 15px;
}

.hero-content h1 {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: #b5952f;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    width: 100%;
    text-align: center;
    margin-top: 15px;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* ==========================================================================
   SECCIÓN PAQUETES (GRID)
   ========================================================================== */
.packages-section, .hosting-section {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.grid-packages {
    display: grid;
    /* Grid responsivo: se adapta automáticamente al ancho de la pantalla */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    display: flex;
    flex-direction: column;
    padding: 30px;
    border-radius: 15px;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.card-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--bg-color);
    padding-bottom: 15px;
}

.subtitle {
    color: var(--accent-color);
    font-weight: 600;
    font-style: italic;
}

.card-body {
    flex-grow: 1; /* Empuja el footer de la tarjeta hacia abajo */
}

.card-body ul {
    margin-top: 15px;
}

.card-body li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    font-size: 0.95rem;
}

/* Viñetas personalizadas para la lista */
.card-body li::before {
    content: '✓';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.card-footer {
    margin-top: 25px;
    text-align: center;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Destacar paquetes superiores */
.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.02);
}

.master-tier {
    border: 2px solid var(--accent-color);
    transform: scale(1.02);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--footer-bg);
    color: var(--text-light);
    padding: 60px 5% 30px;
    /* Alineación de texto a la izquierda explícita */
    text-align: left; 
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-info h3 {
    color: var(--accent-color);
    letter-spacing: 2px;
}

.footer-copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: #aaa;
}

/* ==========================================================================
   MEDIA QUERIES (MÓVILES)
   ========================================================================== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .featured, .master-tier {
        transform: scale(1);
    }
}