/* ==========================
   RESET BÁSICO
========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f7f7f7 100%);
    color: #333;
    min-height: 100vh;
    line-height: 1.5;
}

/* ==========================
   HEADER
========================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(6px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

header h1 {
    color: #333;
    font-size: 26px;
    text-shadow: none;
}

header .nav-buttons a,
header .nav-buttons button {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    margin-left: 15px;
    padding: 8px 18px;
    border: 2px solid #ccc;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    box-shadow: 0 0 10px rgba(200,200,200,0.3);
    cursor: pointer;
}

header .nav-buttons a:hover,
header .nav-buttons button:hover {
    background-color: #f0f0f0;
    color: #000;
    transform: scale(1.08);
}

/* ==========================
   HERO SECTION
========================== */
.hero {
    background: linear-gradient(135deg, #f7f7f7 0%, #ffffff 100%);
    padding: 180px 20px 100px 20px;
    text-align: center;
}

.hero h2 {
    font-size: 40px;
    margin-bottom: 20px;
    color: #333;
    text-shadow: none;
}

.hero p {
    font-size: 18px;
    margin-bottom: 25px;
    color: #555;
}

.hero .button-link {
    font-size: 16px;
    padding: 14px 30px;
    box-shadow: 0 0 20px rgba(200,200,200,0.6);
}

/* ==========================
   INFO / BENEFICIOS
========================== */
.info {
    padding: 60px 20px;
    text-align: center;
    background: rgba(255,255,255,0.85);
}

.info h2 {
    font-size: 30px;
    margin-bottom: 40px;
    color: #333;
    text-shadow: none;
}

.info-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.info-card {
    background: #fff;
    padding: 25px;
    width: 260px;
    border-radius: 18px;
    border: 2px solid #ccc;
    box-shadow: 0 5px 25px rgba(200,200,200,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-7px) scale(1.04);
    box-shadow: 0 12px 35px rgba(200,200,200,0.5);
}

.info-card h3 {
    margin: 12px 0;
    font-size: 20px;
    color: #333;
}

.info-card p {
    font-size: 14px;
    color: #555;
}

/* ==========================
   CATÁLOGO / INVITACIONES
========================== */
.catalog-container {
    display: flex;
    gap: 20px;
    padding: 60px 20px;
}

.catalog-sidebar {
    flex: 1;
    max-width: 200px;
    position: sticky;
    top: 120px;
}

.catalog-sidebar h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.catalog-content {
    flex: 3;
}

.invitations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    border: 2px solid #ccc;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(200,200,200,0.3);
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 45px rgba(180,180,180,0.5);
}

.card .card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid #ccc;
    transition: transform 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.08);
}

.card h3 {
    margin: 15px 0 8px 0;
    font-size: 20px;
    color: #333;
}

.card p {
    font-size: 14px;
    color: #555;
    padding: 0 10px;
    min-height: 50px;
}

.card strong {
    font-size: 18px;
    display: block;
    margin: 10px 0;
    color: #333;
}

/* ==========================
   BOTONES
========================= */
.card-buttons,
.button-link {
    display: inline-block;
    margin: 5px 5px 10px 5px;
}

.button-link {
    padding: 10px 22px;
    background: linear-gradient(45deg, #eee, #ddd);
    color: #333;
    font-weight: bold;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 0 18px rgba(200,200,200,0.5);
    transition: all 0.3s ease;
}

.button-link:hover {
    background: linear-gradient(45deg, #ddd, #eee);
    transform: scale(1.07);
}

/* ==========================
   FORMULARIOS
========================= */
form input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #ccc;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 15px;
}

form input::placeholder {
    color: #aaa;
    opacity: 0.7;
}

form input:focus {
    border-color: #888;
    box-shadow: 0 0 14px rgba(150,150,150,0.8);
    outline: none;
}

button {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    background: linear-gradient(45deg, #eee, #ddd);
    color: #333;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0 0 15px rgba(200,200,200,0.5);
    transition: all 0.3s ease;
}

button:hover {
    background: linear-gradient(45deg, #ddd, #eee);
    transform: scale(1.06);
}

/* Contenedor centrado para login/forgot */
.form-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    margin: auto;
}

.form-reset {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(200,200,200,0.3);
    text-align: center;
}

.form-reset h2 {
    margin-bottom: 20px;
    color: #333;
}

/* ==========================
   MENSAJES Y LINKS
========================= */
.msg {
    color: #ff4d4d;
    margin-top: 10px;
}

p a {
    text-decoration: none;
    color: #333;
}

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

/* ==========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
    .card { width: 45%; }
    .info-card { width: 45%; }
    .catalog-container { flex-direction: column; }
    .catalog-sidebar { position: relative; max-width: 100%; margin-bottom: 20px; }
}

@media (max-width: 768px) {
    .card { width: 80%; }
    .info-card { width: 90%; }
    header { flex-direction: column; gap: 10px; padding: 15px; }
    header h1 { font-size: 22px; }
    .nav-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
    .hero h2 { font-size: 28px; }
    .hero p { font-size: 16px; }
}
