:root {
  --bg: #F5F5F5;       
  --text: #222222;     
  --accent: #D82828;   
  --muted: #CCCCCC;    
  --blue-main: #1C50A4;
  --blue-dark: #0F3A79;
  --red-light: #F05050;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", "Helvetica Neue", sans-serif;
}

body {
  background: #0051ff;
  background: linear-gradient(90deg, rgba(0, 81, 255, 0.52) 0%, rgba(255, 0, 0, 0.51) 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  width: 100%;
  background: var(--blue-main);
  border-bottom: 1px solid var(--blue-dark);
  position: fixed;
  top: 0;
  z-index: 100;
  padding: 0.8rem 0;
}

nav {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
}

.logo a {
  color: #fff;
  text-decoration: none;
}

.menu {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.menu a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: 0.3s;
}

.menu a:hover {
  color: var(--red-light);
}

table.layout {
  width: 100%;
  border-collapse: collapse;
  margin-top: 90px;
  text-align: center;
}

.layout td {
  vertical-align: middle;
}

.layout .center {
  width: 60%;
}

.layout .left,
.layout .right {
  width: 20%;
}

main h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--blue-main);
}

main p {
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-inline: auto;
}

.img-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.img-gallery img {
  width: 250px;
  max-width: 90%;
  border-radius: 8px;
  border: 1px solid var(--muted);
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.img-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.details {
  margin-top: 1rem;
  text-align: left;
  display: inline-block;
}

.details ul {
  list-style: none;
  padding: 0;
}

.details ul li {
  margin: 0.5rem 0;
  font-weight: 500;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: 30px;
  border: 2px solid var(--accent);
  background: linear-gradient(45deg, var(--accent), var(--red-light));
  color: #fff;
  font-weight: 700;
  transition: all 0.3s;
}

.btn:hover {
  background: var(--red-light);
  color: #fff;
  box-shadow: 0 0 20px var(--accent);
}

footer {
  width: 100%;
  text-align: center;
  margin-top: auto;
  padding: 1.5rem 0;
  font-size: 0.9rem;
  color: #fff;
  background: var(--blue-dark);
}

@media (max-width: 768px) {
  .img-gallery img { width: 180px; }
  .details { width: 90%; }
  table.layout { margin-top: 120px; }
  main h1 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .img-gallery img { width: 150px; }
  .details { width: 100%; }
}

.hero-img img {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

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

.details-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.details-cards .card {
  background: rgba(0, 0, 0, 0.05);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  min-width: 150px;
  font-weight: 500;
  text-align: center;
  border: 1px solid var(--muted);
  transition: transform 0.3s, box-shadow 0.3s;
}

.details-cards .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.floating-announcement {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 320px;
  max-width: calc(100% - 40px);
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(245,245,245,0.98));
  color: #222;
  border: 2px solid #1C50A4; /* azul principal */
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  z-index: 9999;
  transform: translateY(20px);
  opacity: 0;
  transition: transform .36s ease, opacity .36s ease;
  font-family: "Inter", system-ui, sans-serif;
}

.floating-announcement.show {
  transform: translateY(0);
  opacity: 1;
}

.floating-announcement .fa-image {
  flex: 0 0 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.floating-announcement .fa-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.floating-announcement .fa-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.fa-title {
  font-weight: 700;
  color: #D82828; 
  font-size: 1rem;
  line-height: 1.1;
}
.fa-sub {
  color: #222;
  font-size: 0.9rem;
  opacity: 0.9;
}

.fa-cta {
  margin-top: 6px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.fa-cta .btn {
  background: #1C50A4; 
  color: #fff;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid #0F3A79;
  font-size: 0.9rem;
}
.floating-announcement .btn.secondary {
  background: transparent;
  color: #1C50A4;
  border: 1px solid #CCCCCC;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
}

.floating-announcement .fa-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: none;
  color: #666;
  font-size: 1.05rem;
  cursor: pointer;
}

/* small screens */
@media (max-width:420px) {
  .floating-announcement {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
    padding: 10px;
  }
  .floating-announcement .fa-image { flex-basis: 64px; height:64px; }
  .fa-title { font-size: 0.95rem; }
  .fa-sub { font-size: 0.85rem; }
}
