Update styles and animations for improved UI/UX; change font to Fraunces and enhance visual elements

This commit is contained in:
2025-12-27 20:37:33 -03:00
parent 3f80b76647
commit feeeb36fa3
2 changed files with 364 additions and 112 deletions

View File

@@ -1,64 +1,124 @@
:root {
--bg: #f4f7f2;
--surface: #ffffff;
--surface-alt: #edf5e9;
--primary: #26a15a;
--primary-strong: #1f8c4d;
--text: #0f172a;
--muted: #4b5563;
--pill: #e5efe4;
--card-border: rgba(15, 23, 42, 0.08);
--shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
--bg: #f3efe6;
--bg-strong: #ede6da;
--surface: #fffaf2;
--surface-alt: #f6efe1;
--primary: #2e7d5a;
--primary-strong: #1f5b42;
--accent: #d28b5c;
--accent-strong: #b8744c;
--text: #1c1a17;
--muted: #4c5a4f;
--pill: #e9e1d5;
--card-border: rgba(28, 26, 23, 0.12);
--shadow: 0 20px 55px rgba(20, 28, 22, 0.18);
--shadow-soft: 0 12px 32px rgba(20, 28, 22, 0.1);
}
* {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
background: radial-gradient(circle at 18% 20%, rgba(38, 161, 90, 0.18), transparent 28%),
radial-gradient(circle at 80% 5%, rgba(117, 201, 140, 0.12), transparent 30%),
var(--bg);
font-family: 'Manrope', 'Segoe UI', sans-serif;
background:
radial-gradient(circle at 10% 20%, rgba(210, 139, 92, 0.2), transparent 45%),
radial-gradient(circle at 88% 0%, rgba(46, 125, 90, 0.3), transparent 40%),
repeating-linear-gradient(115deg, rgba(28, 26, 23, 0.03) 0 1px, transparent 1px 7px),
linear-gradient(180deg, #fbf7f1 0%, #f2ede3 100%);
color: var(--text);
line-height: 1.6;
line-height: 1.65;
min-height: 100vh;
overflow-x: hidden;
}
img {
max-width: 100%;
display: block;
border-radius: 14px;
border-radius: 18px;
}
a {
color: inherit;
text-decoration: none;
transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
:focus-visible {
outline: 3px solid rgba(210, 139, 92, 0.5);
outline-offset: 2px;
}
.hero {
padding: 28px 7vw 72px;
background: linear-gradient(135deg, rgba(237, 245, 233, 0.9), rgba(231, 245, 235, 0.9)),
radial-gradient(circle at 25% 25%, rgba(38, 161, 90, 0.22), transparent 32%),
radial-gradient(circle at 80% 10%, rgba(107, 197, 138, 0.2), transparent 34%);
padding: 32px 7vw 90px;
position: relative;
overflow: hidden;
background:
linear-gradient(140deg, rgba(255, 250, 242, 0.96), rgba(246, 239, 226, 0.88)),
radial-gradient(circle at 22% 18%, rgba(210, 139, 92, 0.18), transparent 45%),
radial-gradient(circle at 90% 5%, rgba(46, 125, 90, 0.3), transparent 40%);
}
.hero::before,
.hero::after {
content: "";
position: absolute;
border-radius: 50%;
filter: blur(8px);
opacity: 0.65;
}
.hero::before {
width: 440px;
height: 440px;
background: radial-gradient(circle, rgba(46, 125, 90, 0.35), transparent 70%);
top: -160px;
right: -160px;
}
.hero::after {
width: 360px;
height: 360px;
background: radial-gradient(circle, rgba(210, 139, 92, 0.35), transparent 70%);
left: -140px;
bottom: -160px;
}
.hero > * {
position: relative;
z-index: 1;
}
.nav {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 50px;
gap: 18px;
margin: 0 auto 56px;
max-width: 1200px;
padding: 12px 16px;
border: 1px solid var(--card-border);
border-radius: 20px;
background: rgba(255, 255, 255, 0.72);
box-shadow: var(--shadow-soft);
backdrop-filter: blur(10px);
}
.logo {
font-family: 'Fraunces', serif;
font-weight: 700;
letter-spacing: 0.6px;
font-size: 1.1rem;
letter-spacing: 0.12em;
text-transform: uppercase;
font-size: 0.95rem;
padding: 10px 14px;
border: 1px solid var(--card-border);
border-radius: 12px;
background: #ffffff;
border-radius: 14px;
background: linear-gradient(120deg, rgba(46, 125, 90, 0.12), rgba(210, 139, 92, 0.18));
color: var(--primary-strong);
}
@@ -66,24 +126,27 @@ a {
display: flex;
gap: 12px;
align-items: center;
flex-wrap: wrap;
}
.nav-link {
padding: 10px 12px;
border-radius: 12px;
color: var(--muted);
font-weight: 600;
letter-spacing: 0.02em;
transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover {
color: var(--primary-strong);
background: rgba(38, 161, 90, 0.1);
background: rgba(46, 125, 90, 0.12);
}
.cta {
padding: 12px 16px;
padding: 12px 18px;
border-radius: 14px;
background: var(--primary);
background: linear-gradient(120deg, var(--primary), var(--accent));
color: #ffffff;
font-weight: 700;
box-shadow: var(--shadow);
@@ -92,27 +155,52 @@ a {
.hero-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 32px;
gap: 40px;
align-items: center;
max-width: 1200px;
margin: 0 auto;
}
.hero-text h1 {
font-size: clamp(2.3rem, 4vw, 3.3rem);
margin: 8px 0 10px;
color: #0b1a2a;
font-family: 'Fraunces', serif;
font-size: clamp(2.5rem, 4.2vw, 3.6rem);
line-height: 1.05;
margin: 10px 0 12px;
color: #16251f;
text-wrap: balance;
}
.accent {
position: relative;
display: inline-block;
color: var(--primary-strong);
z-index: 0;
}
.accent::after {
content: "";
position: absolute;
left: -4px;
right: -4px;
bottom: 6px;
height: 0.38em;
background: rgba(210, 139, 92, 0.35);
border-radius: 999px;
z-index: -1;
}
.hero-text .subtitle {
color: var(--muted);
margin-bottom: 24px;
font-size: 1.03rem;
}
.eyebrow {
letter-spacing: 0.12em;
letter-spacing: 0.24em;
text-transform: uppercase;
font-weight: 700;
color: var(--primary);
font-size: 0.75rem;
color: var(--primary-strong);
font-size: 0.72rem;
}
.subtitle {
@@ -129,37 +217,40 @@ a {
.button {
padding: 12px 18px;
border-radius: 14px;
border: 1px solid var(--card-border);
border-radius: 16px;
border: 1px solid transparent;
font-weight: 700;
cursor: pointer;
display: inline-flex;
gap: 8px;
align-items: center;
justify-content: center;
transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
text-align: center;
letter-spacing: 0.01em;
box-shadow: var(--shadow-soft);
}
.button:hover {
transform: translateY(-1px);
transform: translateY(-2px);
box-shadow: var(--shadow);
}
.button.primary {
background: linear-gradient(120deg, var(--primary), var(--primary-strong));
background: linear-gradient(120deg, var(--primary), var(--accent));
color: #ffffff;
border: none;
}
.button.ghost {
background: rgba(38, 161, 90, 0.12);
background: rgba(46, 125, 90, 0.12);
color: var(--primary-strong);
border: 1px solid rgba(46, 125, 90, 0.2);
}
.button.full {
width: 100%;
background: rgba(38, 161, 90, 0.08);
background: rgba(210, 139, 92, 0.12);
}
.quick-info {
@@ -170,30 +261,38 @@ a {
}
.pill {
background: var(--pill);
background: linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(233, 225, 213, 0.9));
border: 1px solid var(--card-border);
padding: 10px 12px;
border-radius: 12px;
color: #1f2937;
padding: 10px 14px;
border-radius: 999px;
color: #2f3b33;
font-weight: 600;
box-shadow: var(--shadow-soft);
}
.hero-card {
background: rgba(255, 255, 255, 0.82);
background: rgba(255, 255, 255, 0.85);
border: 1px solid var(--card-border);
border-radius: 20px;
border-radius: 24px;
overflow: hidden;
box-shadow: var(--shadow);
backdrop-filter: blur(8px);
backdrop-filter: blur(12px);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-card:hover {
transform: translateY(-6px);
box-shadow: 0 30px 70px rgba(20, 28, 22, 0.2);
}
.hero-card .card-header {
padding: 14px 18px;
background: rgba(38, 161, 90, 0.1);
background: rgba(46, 125, 90, 0.12);
border-bottom: 1px solid var(--card-border);
font-weight: 700;
letter-spacing: 0.08em;
letter-spacing: 0.18em;
text-transform: uppercase;
font-size: 0.8rem;
font-size: 0.75rem;
color: var(--primary-strong);
}
@@ -202,7 +301,8 @@ a {
}
.card-title {
font-size: 1.25rem;
font-family: 'Fraunces', serif;
font-size: 1.35rem;
margin: 6px 0;
}
@@ -219,43 +319,86 @@ a {
}
.card-tags span {
background: #edf5e9;
border-radius: 10px;
padding: 8px 10px;
color: #2f3c4f;
border: 1px solid var(--card-border);
background: rgba(210, 139, 92, 0.15);
border-radius: 999px;
padding: 8px 12px;
color: #2c3a32;
border: 1px solid rgba(210, 139, 92, 0.25);
font-weight: 600;
font-size: 0.85rem;
}
.section {
padding: 70px 7vw;
padding: 90px 7vw;
background: var(--bg);
position: relative;
overflow: hidden;
}
.section > * {
position: relative;
z-index: 1;
}
.services {
background: linear-gradient(135deg, #f7fbf6, #eef7f0);
background: linear-gradient(140deg, #fcf8f2, #efe6d8);
}
.services::before {
content: "";
position: absolute;
width: 260px;
height: 260px;
border-radius: 50%;
background: radial-gradient(circle, rgba(46, 125, 90, 0.2), transparent 70%);
right: 8%;
top: -120px;
opacity: 0.6;
}
.section-heading {
max-width: 760px;
margin: 0 auto;
}
.section-heading h2 {
margin: 6px 0;
font-size: clamp(1.8rem, 3.2vw, 2.7rem);
font-family: 'Fraunces', serif;
line-height: 1.1;
text-wrap: balance;
}
.features-grid {
margin-top: 24px;
margin-top: 28px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 14px;
gap: 16px;
max-width: 1100px;
margin-left: auto;
margin-right: auto;
}
.feature-card {
display: flex;
align-items: center;
gap: 12px;
padding: 14px 16px;
padding: 16px 18px;
border: 1px solid var(--card-border);
border-radius: 14px;
background: var(--surface);
border-radius: 18px;
background: rgba(255, 255, 255, 0.9);
box-shadow: var(--shadow-soft);
transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
transform: translateY(-4px);
box-shadow: var(--shadow);
}
.feature-card p {
margin: 0;
color: #1f2937;
color: #223028;
font-weight: 600;
}
@@ -263,35 +406,49 @@ a {
width: 12px;
height: 12px;
border-radius: 50%;
background: linear-gradient(120deg, var(--primary), var(--primary-strong));
box-shadow: 0 0 0 6px rgba(38, 161, 90, 0.12);
}
.section-heading h2 {
margin: 6px 0;
font-size: clamp(1.6rem, 3vw, 2.4rem);
background: linear-gradient(120deg, var(--primary), var(--accent));
box-shadow: 0 0 0 6px rgba(46, 125, 90, 0.12);
}
.gallery-grid {
margin-top: 28px;
margin-top: 32px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 20px;
gap: 22px;
max-width: 1100px;
margin-left: auto;
margin-right: auto;
}
.gallery-card {
background: var(--surface);
background: rgba(255, 255, 255, 0.92);
border: 1px solid var(--card-border);
border-radius: 18px;
border-radius: 20px;
overflow: hidden;
box-shadow: var(--shadow);
box-shadow: var(--shadow-soft);
display: flex;
flex-direction: column;
transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-card:hover {
transform: translateY(-6px);
box-shadow: var(--shadow);
}
.image-wrap {
background: var(--surface-alt);
padding: 14px;
background: linear-gradient(160deg, rgba(46, 125, 90, 0.08), rgba(210, 139, 92, 0.18));
padding: 18px;
display: grid;
place-items: center;
}
.image-wrap img {
width: 100%;
height: 210px;
object-fit: contain;
border-radius: 16px;
filter: drop-shadow(0 12px 24px rgba(20, 28, 22, 0.18));
}
.gallery-info {
@@ -300,6 +457,8 @@ a {
.gallery-info h3 {
margin: 0 0 8px;
font-family: 'Fraunces', serif;
font-size: 1.2rem;
}
.gallery-info p {
@@ -307,20 +466,39 @@ a {
margin: 0;
}
.map-section {
background: linear-gradient(160deg, #fbf7f1, #efe6d8);
}
.map-section::before {
content: "";
position: absolute;
width: 300px;
height: 300px;
border-radius: 50%;
background: radial-gradient(circle, rgba(210, 139, 92, 0.22), transparent 70%);
left: 6%;
top: -140px;
opacity: 0.5;
}
.map-section .map-card {
margin-top: 26px;
background: var(--surface);
margin-top: 30px;
background: rgba(255, 255, 255, 0.95);
border: 1px solid var(--card-border);
border-radius: 18px;
border-radius: 22px;
overflow: hidden;
box-shadow: var(--shadow);
max-width: 1100px;
margin-left: auto;
margin-right: auto;
}
.map-card iframe {
width: 100%;
border: none;
height: 420px;
filter: saturate(1.05);
filter: saturate(1.05) contrast(1.02);
}
.map-actions {
@@ -331,16 +509,16 @@ a {
}
.contact {
background: linear-gradient(135deg, rgba(38, 161, 90, 0.12), rgba(231, 245, 235, 0.8));
background: linear-gradient(140deg, rgba(46, 125, 90, 0.16), rgba(210, 139, 92, 0.18));
}
.contact-card {
max-width: 900px;
max-width: 1000px;
margin: 0 auto;
background: #ffffff;
background: rgba(255, 255, 255, 0.92);
border: 1px solid var(--card-border);
border-radius: 20px;
padding: 26px;
border-radius: 24px;
padding: 28px;
display: flex;
gap: 20px;
align-items: center;
@@ -350,29 +528,103 @@ a {
}
.footer {
padding: 28px 7vw 40px;
padding: 30px 7vw 40px;
text-align: center;
background: #eaf4ea;
color: #374151;
background: #e8dfd0;
color: #3b4740;
border-top: 1px solid var(--card-border);
font-size: 0.95rem;
}
@media (max-width: 600px) {
.hero {
padding-top: 20px;
}
.reveal {
opacity: 0;
transform: translateY(18px);
animation: reveal 0.9s ease forwards;
animation-delay: var(--delay, 0s);
}
.delay-1 {
--delay: 0.12s;
}
.delay-2 {
--delay: 0.24s;
}
.delay-3 {
--delay: 0.36s;
}
.delay-4 {
--delay: 0.48s;
}
@keyframes reveal {
to {
opacity: 1;
transform: translateY(0);
}
}
@media (max-width: 900px) {
.nav {
flex-direction: column;
gap: 10px;
align-items: flex-start;
}
.hero {
padding: 28px 6vw 70px;
}
.hero-content {
grid-template-columns: 1fr;
gap: 28px;
}
}
@media (max-width: 600px) {
.hero-buttons,
.map-actions {
flex-direction: column;
align-items: stretch;
}
.hero-buttons .button,
.map-actions .button {
width: 100%;
}
.section {
padding: 70px 6vw;
}
.map-card iframe {
height: 320px;
}
.image-wrap img {
height: 180px;
}
.contact-card {
padding: 22px;
}
}
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
.reveal {
opacity: 1;
transform: none;
animation: none;
}
.button,
.hero-card,
.feature-card,
.gallery-card {
transition: none;
}
}

View File

@@ -6,7 +6,7 @@
<title>Camping Fénix</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
@@ -22,20 +22,20 @@
</nav>
<div class="hero-content">
<div class="hero-text">
<p class="eyebrow">Naturaleza en Misiones</p>
<h1>Fénix: tu campamento para reconectar y respirar tranquilo.</h1>
<p class="subtitle">Acceso directo al río, fogones listos, y espacios cómodos para acampar o descansar en cabañas.</p>
<div class="hero-buttons">
<p class="eyebrow reveal">Naturaleza en Misiones</p>
<h1 class="reveal delay-1"><span class="accent">Fénix</span>: tu campamento para reconectar y respirar tranquilo.</h1>
<p class="subtitle reveal delay-2">Acceso directo al río, fogones listos, y espacios cómodos para acampar o descansar en cabañas.</p>
<div class="hero-buttons reveal delay-3">
<a class="button primary" href="#galeria">Ver experiencias</a>
<a class="button ghost" href="{{ whatsapp_link }}" target="_blank" rel="noopener">Escribir al +{{ whatsapp_number[1:] }}</a>
</div>
<div class="quick-info">
<div class="quick-info reveal delay-4">
<div class="pill">WiFi en el camping</div>
<div class="pill">Arroyo dentro del predio</div>
<div class="pill">Parrillas y cantina</div>
</div>
</div>
<div class="hero-card">
<div class="hero-card reveal delay-3">
<div class="card-header">Próxima escapada</div>
<div class="card-body">
<p class="card-title">Camping Fénix</p>
@@ -53,12 +53,12 @@
<main>
<section id="servicios" class="section services">
<div class="section-heading">
<div class="section-heading reveal">
<p class="eyebrow">Servicios</p>
<h2>Todo listo para tu estadía</h2>
<p class="subtitle">Conexión, naturaleza y comodidades para disfrutar sin preocuparte por nada.</p>
</div>
<div class="features-grid">
<div class="features-grid reveal delay-1">
{% for feature in features %}
<div class="feature-card">
<div class="feature-dot"></div>
@@ -69,12 +69,12 @@
</section>
<section id="galeria" class="section">
<div class="section-heading">
<div class="section-heading reveal">
<p class="eyebrow">Explora</p>
<h2>Galería del camping</h2>
<p class="subtitle">Un vistazo a los espacios y experiencias que te esperan.</p>
</div>
<div class="gallery-grid">
<div class="gallery-grid reveal delay-1">
{% for item in gallery_items %}
<article class="gallery-card">
<div class="image-wrap">
@@ -90,12 +90,12 @@
</section>
<section id="ubicacion" class="section map-section">
<div class="section-heading">
<div class="section-heading reveal">
<p class="eyebrow">Cómo llegar</p>
<h2>Ubicación en Google Maps</h2>
<p class="subtitle">Estamos listos para recibirte. Abre el mapa y marca el rumbo.</p>
</div>
<div class="map-card">
<div class="map-card reveal delay-1">
<iframe title="Mapa Camping Fénix" src="{{ map_embed_url }}" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
<div class="map-actions">
<a class="button primary" href="{{ map_link }}" target="_blank" rel="noopener">Abrir en Google Maps</a>
@@ -105,7 +105,7 @@
</section>
<section class="section contact">
<div class="contact-card">
<div class="contact-card reveal">
<div>
<p class="eyebrow">Contacto directo</p>
<h2>Coordina tu reserva por WhatsApp</h2>