/* Paleta: Azul marino (#0a2463), turquesa (#3a86ff), dorado (#ffd166) */

/* --- CRUISE DETAILS CARDS --- */
.cruise-details-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2.5rem auto 2rem auto;
  justify-content: center;
  max-width: 1200px;
  padding: 0 2vw;
  box-sizing: border-box;
}
.cruise-card-section {
  background: var(--blanco);
  border-radius: 22px;
  box-shadow: 0 4px 24px rgba(10,36,99,0.12);
  padding: 1.1rem 1.5rem 0.8rem 1.5rem;
  min-width: 240px;
  max-width: 100%;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  transition: box-shadow 0.2s;
  overflow: hidden;
  word-break: break-word;
  margin: 0 0.5vw;
}
.cruise-itinerary {
  max-width: 520px;
  flex: 2 1 370px;
}
@media (min-width: 900px) {
  .cruise-card-section {
    padding: 1.1rem 2.5rem 0.8rem 2.5rem;
    max-width: 600px;
    margin: 0 1vw;
  }
  .cruise-itinerary {
    max-width: 700px;
  }
}
@media (min-width: 900px) {
  .cruise-card-section {
    padding: 1.1rem 0.6rem 0.8rem 0.6rem;
    max-width: 400px;
  }
}
.cruise-card-section:hover {
  box-shadow: 0 8px 32px rgba(58,134,255,0.15);
}
.section-icon {
  font-size: 2.2rem;
  color: var(--turquesa);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cruise-dates .section-icon { color: var(--turquesa); }
.cruise-itinerary .section-icon { color: var(--azul-marino); }
.cruise-cabin .section-icon { color: var(--dorado); }
.cruise-benefits .section-icon { color: #2ecc40; }

.cruise-dates { border-top: 2px solid var(--turquesa); }
.cruise-itinerary { border-top: 5px solid var(--azul-marino); }
.cruise-cabin { border-top: 5px solid var(--dorado); }
.cruise-prices {
  border-top: 5px solid var(--azul-marino);
  background: var(--blanco);
  border-radius: 22px;
  box-shadow: 0 4px 24px rgba(10,36,99,0.12);
  padding: 1.3rem 1.2rem 1rem 1.2rem;
  margin: 2.5rem 0 2rem 0;
  max-width: 600px;
  width: 100%;
  display: block;
  position: relative;
  overflow: visible;
  height: auto;
}
.cruise-prices .section-icon {
  font-size: 2.2rem;
  color: var(--azul-marino);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cruise-prices h4 {
  margin: 0 0 0.7rem 0;
  font-size: 1.1rem;
  color: var(--azul-marino);
  font-weight: 700;
}
.cruise-prices .tabs {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  width: 100%;
}
.cruise-prices .tab-btn {
  flex: 1 1 0;
  background: var(--turquesa);
  color: #fff;
  border: none;
  border-radius: 12px 12px 0 0;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.7em 1em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(58,134,255,0.10);
  transition: background 0.2s, color 0.2s;
  outline: none;
  margin-bottom: -2px;
  border-bottom: 2px solid transparent;
}
.cruise-prices .tab-btn.active, .cruise-prices .tab-btn:focus {
  background: var(--azul-marino);
  color: #fff;
  border-bottom: 2px solid var(--azul-marino);
  z-index: 2;
}
.cruise-prices .tab-btn:not(.active):hover {
  background: #6ed5f7;
  color: var(--azul-marino);
}
.cruise-prices .tab-content {
  display: none;
  padding: 1rem 0.2rem 0.4rem 0.2rem;
  background: #f8fbff;
  border-radius: 0 0 12px 12px;
  width: 100%;
  animation: fadeIn 0.4s;
}
.cruise-prices .tab-content.active {
  display: block !important;
}
@media (max-width: 600px) {
  .cruise-prices .tabs {
    flex-direction: column;
    gap: 0.4rem;
  }
  .cruise-prices .tab-btn {
    border-radius: 10px 10px 0 0;
    font-size: 0.95rem;
    padding: 0.6em 0.5em;
  }
  .cruise-prices .tab-content {
    padding: 0.7rem 0.1rem 0.3rem 0.1rem;
  }
}

.cruise-prices .msc-accordion {
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 260px;
  width: 100%;
  overflow: visible;
}
.cruise-prices .msc-accordion-header {
  width: 100%;
  background: var(--turquesa);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.7em 1em;
  margin-bottom: 0.5em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(58,134,255,0.10);
  transition: background 0.2s, color 0.2s;
}
.cruise-prices .msc-accordion-header:hover, .cruise-prices .msc-accordion-item.open .msc-accordion-header {
  background: var(--azul-marino);
  color: #fff;
}
.cruise-prices .msc-accordion-body {
  display: none;
  background: #f8fbff;
  border-radius: 10px;
  padding: 0.7em 0.6em 0.7em 0.6em;
  margin-bottom: 0.4em;
}
.cruise-prices .msc-accordion-item.open .msc-accordion-body {
  display: block;
  animation: fadeIn 0.4s;
}
.cruise-prices h5 {
  margin: 0 0 0.5em 0;
  font-size: 1em;
  color: var(--azul-marino);
  font-weight: 700;
}
@media (max-width: 900px) {
  .cruise-prices {
    max-width: 100%;
    padding: 1.1rem 0.2rem 0.8rem 0.2rem;
  }
  .cruise-prices .msc-accordion-row {
    flex-direction: column;
    gap: 0.8rem;
  }
  .cruise-prices .msc-accordion {
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .cruise-prices {
    padding: 1rem 0.1rem 0.7rem 0.1rem;
  }
  .cruise-prices .section-icon {
    font-size: 1.5rem;
  }
  .cruise-prices h4 {
    font-size: 1rem;
  }
}

.cruise-benefits {
  border-top: 5px solid #2ecc40;
  background: linear-gradient(120deg, #eafff1 60%, #f4fff9 100%);
}

.cruise-card-section h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.08rem;
  color: var(--azul-marino);
  font-weight: 700;
}
.dates-list {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--turquesa);
}
.date-sep {
  color: var(--azul-marino);
  font-weight: 700;
  margin: 0 0.4em;
}
/* Itinerary */
.itinerary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.32rem;
}
@media (min-width: 700px) {
  .itinerary-list {
    grid-template-columns: 1fr 1fr;
    gap: 0.22rem 0.7rem;
  }
}
.itinerary-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.1rem;
  padding: 0.34em 0.2em 0.34em 0.2em;
  border-radius: 12px;
  font-size: 0.91rem;
  background: #f8fbff;
  line-height: 1.18;
  min-width: 0;
  word-break: break-word;
  flex-wrap: wrap;
}
.itinerary-port {
  border-left: 1px solid var(--turquesa);
  background: #f0f7ff;
}
.itinerary-sea {
  border-left: 1px solid #3a86ff;
  background: #e7f5ff;
  color: #1776d1;
  font-style: italic;
}
.itinerary-icon {
  font-size: 1em;
  margin-right: 0.45em;
  min-width: 1.2em;
  display: inline-flex;
  align-items: center;
}
.flag {
  margin-left: 0.4em;
  font-size: 1.1em;
}
.itinerary-label {
  background: #eaf3ff;
  color: var(--azul-marino);
  border-radius: 7px;
  padding: 0.06em 0.33em;
  font-size: 0.85em;
  margin-left: 0.32em;
  font-weight: 500;
  white-space: nowrap;
}
.itinerary-label.llegada {
  background: #e4ffe8;
  color: #1c7f3c;
}
.itinerary-label.salida {
  background: #eaf3ff;
  color: var(--turquesa);
}
.itinerary-desc {
  margin-left: 0.6em;
  color: #3a86ff;
  font-weight: 500;
}
/* Cabina */
.cruise-cabin {
  background: linear-gradient(120deg, #f4f7fa 60%, #f9f9fb 100%);
}
.cabin-note {
  color: var(--turquesa);
  font-size: 1em;
  font-weight: 500;
}
/* Beneficios */
.cruise-benefits {
  color: #176e2a;
  box-shadow: 0 4px 32px rgba(46,204,64,0.10);
}
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8em 0;
}
.benefits-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5em;
  font-size: 1.05em;
}
.benefits-list i {
  color: #2ecc40;
  margin-right: 0.7em;
  font-size: 1.2em;
}
.benefits-motivation {
  margin-top: 0.8em;
  background: #2ecc40;
  color: #fff;
  border-radius: 12px;
  padding: 0.5em 1em;
  font-weight: 600;
  font-size: 1.06em;
  text-align: center;
  box-shadow: 0 2px 8px rgba(46,204,64,0.10);
}

/* Responsive */
@media (max-width: 900px) {
  .cruise-details-grid {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }
  .cruise-card-section {
    max-width: 100%;
    min-width: unset;
    width: 100%;
  }
}
@media (max-width: 600px) {
  .cruise-details-grid {
    padding: 0 0.3em;
    gap: 1rem;
  }
  .cruise-card-section {
    padding: 1.2rem 0.7rem 1rem 0.7rem;
  }
  .section-icon {
    font-size: 1.5rem;
  }
  .cruise-card-section h4 {
    font-size: 1rem;
  }
  .itinerary-list li {
    font-size: 0.97rem;
    padding: 0.6em 0.3em;
  }
}

:root {
  --azul-marino: #0a2463;
  --turquesa: #3a86ff;
  --dorado: #ffd166;
  --blanco: #fff;
  --gris: #f4f4f4;
  --negro: #222;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--gris);
  color: var(--azul-marino);
  min-height: 100vh;
}
.main-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--blanco);
  box-shadow: 0 2px 8px rgba(10,36,99,0.08);
  z-index: 1000;
  transition: background 0.3s;
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0.7rem 1.5rem;
}
.logo img { height: 40px; }
.nav-menu {
  display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0;
}
.nav-menu a {
  color: var(--azul-marino); text-decoration: none; font-weight: 500; font-size: 1rem;
  transition: color 0.2s;
}
.nav-menu a:hover, .nav-menu a[aria-current="page"] {
  color: var(--turquesa);
}
.cta-header {
  background: var(--turquesa); color: var(--blanco); padding: 0.7em 1.3em;
  border-radius: 25px; font-weight: bold; text-decoration: none; font-size: 1rem;
  box-shadow: 0 2px 8px rgba(58,134,255,0.15);
  transition: background 0.2s, transform 0.2s;
}
.cta-header:hover { background: var(--dorado); color: var(--azul-marino); transform: scale(1.05); }
.hero {
  position: relative; height: 90vh; min-height: 500px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-top: 70px;
}
.hero-bg {
  position: absolute; top: 0; left: 0; width: 100vw; height: 100%; object-fit: cover; z-index: 0; filter: brightness(0.7);
}
.hero-content {
  position: relative; z-index: 2; text-align: center; color: var(--blanco); max-width: 700px; margin: 0 auto;
}
.hero-content h1 { font-size: 2.7rem; margin-bottom: 1rem; text-shadow: 0 2px 10px rgba(10,36,99,0.25); }
.hero-content p { font-size: 1.25rem; margin-bottom: 2rem; }
.cta-button {
  background: var(--dorado); color: var(--azul-marino); padding: 1em 2em; border-radius: 30px;
  font-weight: 700; text-decoration: none; font-size: 1.15rem; box-shadow: 0 4px 18px rgba(255,209,102,0.13);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.cta-button:hover { background: var(--turquesa); color: var(--blanco); transform: scale(1.07); }
.benefits {
  display: flex; justify-content: center; gap: 2rem; margin: 3rem auto 2rem; max-width: 1100px;
}
.benefit-card {
  background: var(--blanco); border-radius: 20px; box-shadow: 0 4px 20px rgba(10,36,99,0.07);
  padding: 2rem 1.5rem; flex: 1 1 250px; text-align: center; transition: transform 0.3s, box-shadow 0.3s;
}
.benefit-card i {
  font-size: 2.5rem; color: var(--turquesa); margin-bottom: 0.7rem; animation: icon-pop 1.3s infinite alternate;
}
@keyframes icon-pop {
  0% { transform: scale(1) rotate(-6deg); }
  100% { transform: scale(1.15) rotate(6deg); }
}
.benefit-card:hover {
  transform: translateY(-6px) scale(1.04); box-shadow: 0 8px 32px rgba(10,36,99,0.16);
}
.cruises {
  padding: 3rem 1rem 2rem; background: var(--azul-marino); color: var(--blanco);
}
.cruises h2 { text-align: center; font-size: 2.2rem; margin-bottom: 2rem; }
.cruise-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; max-width: 100%; margin: 0 auto;
}
.cruise-card {
  background: var(--blanco); color: var(--azul-marino); border-radius: 18px; box-shadow: 0 4px 18px rgba(10,36,99,0.09);
  padding: 1.5rem 1.2rem 2rem; display: flex; flex-direction: column; align-items: center;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}
.cruise-card img { border-radius: 12px; width: 100%; height: auto; margin-bottom: 1rem; }
.cruise-img-container { position: relative; width: 100%; height: auto; min-height: 200px; margin-bottom: 1rem; display: flex; }

.costa-map-hover, .msc-map-hover, .costa-map-img, .msc-map-img {
  width: 100%; height: auto; border-radius: 12px; position: static; top: auto; left: auto; display: block;
}
.costa-map-img, .msc-map-img { display: none; }
.cruise-card:hover .costa-map-hover, .cruise-card:hover .msc-map-hover { opacity: 0; }
.cruise-card:hover .costa-map-img, .cruise-card:hover .msc-map-img { display: block; opacity: 1; }
.cruise-card:hover .costa-map-hover, .cruise-card:hover .msc-map-hover { display: none; }

.cruise-card h3 { margin: 0.7rem 0 1rem; font-size: 1.3rem; }
.cruise-card ul { list-style: none; padding: 0; margin: 0 0 1rem 0; font-size: 1rem; }
.cruise-card ul li { margin-bottom: 0.4rem; }
.cruise-card .price {
  font-size: 1.1rem; font-weight: bold; color: var(--turquesa); margin-bottom: 1rem;
}
.cruise-card .price small { display: block; font-size: 0.9rem; color: var(--azul-marino); font-weight: 400; }
.cruise-card .cta {
  background: var(--turquesa); color: var(--blanco); border: none; border-radius: 20px; padding: 0.7em 1.5em;
  font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.2s, transform 0.2s;
}
.cruise-card .cta:hover { background: var(--dorado); color: var(--azul-marino); transform: scale(1.08); }

.msc-btns {
  text-align: center;
  margin-top: 1em;
}
.msc-btns .cta {
  margin: 0.3em 0.5em;
}
.msc-form-btn {
  text-decoration: none;
}


.msc-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw;
  height: 173vh;
  background: rgba(10,20,40,0.78);
  justify-content: center;
  align-items: center;
  transition: background 0.2s;
}
.msc-modal[style*="display: flex"] {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.msc-modal-content {
  background: #fff;
  padding: 2em 1.5em 1.5em 1.5em;
  border-radius: 18px;
  max-width: 400px;
  width: 90vw;
  box-shadow: 0 6px 32px rgba(10,36,99,0.18);
  z-index: 10000;
  /* NO position, NO margin, NO transform, NO flex here */
}

.msc-accordion-row {
  display: flex;
  gap: 1.5em;
  justify-content: center;
  margin: 1.5em 0 0 0;
  flex-wrap: wrap;
}
.msc-accordion {
  flex: 1 1 320px;
  min-width: 280px;
  max-width: 400px;
  margin: 0;
}
.msc-accordion-header {
  width: 100%;
  min-width: 200px;
}
.msc-btns {
  display: flex;
  justify-content: center;
  margin-top: 1.5em;
}
.msc-btns .msc-form-btn {
  min-width: 260px;
  text-align: center;
  font-size: 1.13em;
}
@media (max-width: 900px) {
  .msc-accordion-row {
    flex-direction: column;
    gap: 0.8em;
    align-items: center;
  }
  .msc-accordion {
    max-width: 95vw;
    min-width: 0;
  }
}

.msc-accordion-header {
  width: 100%;
  text-align: left;
  background: #3a86ff;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 1em 1.2em;
  margin-bottom: 0.5em;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1.08em;
}
.msc-accordion-header:hover {
  background: #265ba6;
}
.msc-accordion-body {
  display: none;
  background: #fff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 12px rgba(10,36,99,0.10);
  padding: 1.2em 1em 1.5em 1em;
  margin-bottom: 1em;
  animation: fadeAccordion 0.3s;
}
.msc-accordion-item.open .msc-accordion-body {
  display: block;
}
@keyframes fadeAccordion {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

/* Elimina estilos de modals si ya no se usan */
.msc-modal, .msc-modal-content {
  display: none !important;
}


@media (max-width: 700px) {
  .msc-modal-content {
    max-width: 95vw;
    width: 98vw;
    padding: 1.2em 0.5em 1em 0.5em;
  }
}

.msc-modal-content {
  background: #fff;
  padding: 2em 1.5em 1.5em 1.5em;
  border-radius: 18px;
  max-width: 400px;
  margin: 10vh auto;
  box-shadow: 0 6px 32px rgba(10,36,99,0.18);
  position: relative;
}
.msc-close {
  position: absolute;
  right: 1em; top: 1em;
  font-size: 1.6em;
  color: var(--azul-marino);
  cursor: pointer;
  font-weight: bold;
  background: transparent;
  border: none;
}
.msc-modal-body {
  margin-top: 1.2em;
  color: var(--azul-marino);
  text-align: left;
}

.msc-btn-separator {
  height: 20px;
  width: 100%;
  display: block;
}

.msc-precios-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
  font-size: 1rem;
}
.msc-precios-table th, .msc-precios-table td {
  border: 1px solid #e0e0e0;
  padding: 0.5em 0.8em;
  text-align: left;
}
.msc-precios-table th {
  background: var(--turquesa);
  color: var(--blanco);
  font-weight: 600;
}
.msc-precios-table tr:nth-child(even) {
  background: #f7faff;
}
.msc-precios-table tr:nth-child(odd) {
  background: #fff;
}
.msc-modal-body h4 {
  margin-bottom: 0.6em;
  color: var(--azul-marino);
}
.msc-modal-body small {
  font-weight: normal;
  color: #444;
}


.cruise-card.highlight {
  border: 2.5px solid var(--dorado); box-shadow: 0 8px 30px rgba(255,209,102,0.15);
}
.cruise-card .ribbon {
  position: absolute; top: 18px; left: -30px; background: var(--dorado); color: var(--azul-marino); font-size: 0.95rem;
  font-weight: bold; padding: 0.5em 2em; border-radius: 20px 0 0 20px; box-shadow: 0 2px 8px rgba(255,209,102,0.16);
  transform: rotate(-18deg);
}
.cruise-card:hover {
  transform: scale(1.03); box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.contact-form {
  background: var(--turquesa); color: var(--blanco); padding: 4rem 1rem 2rem; position: relative; text-align: center;
}
.contact-form h2 { margin-bottom: 2rem; font-size: 2rem; }
.wave-animation {
  position: absolute; top: -80px; left: 0; width: 100%; height: 80px; overflow: hidden; z-index: 1;
  animation: wave 12s linear infinite;
}
@keyframes wave {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
#coovaeco-form { position: relative; z-index: 2; }
footer {
  background: var(--azul-marino); color: var(--blanco); text-align: center; padding: 2rem 1rem 1rem;
}
footer img { height: 40px; margin-bottom: 0.7rem; }
footer p { margin: 0.5rem 0 1rem; font-size: 1rem; }
.social-links { display: flex; justify-content: center; gap: 1.5rem; }
.social-links a { color: var(--dorado); font-size: 1.7rem; transition: color 0.2s; }
.social-links a:hover { color: var(--turquesa); }
/* Animación fade-in para aparición al hacer scroll */
.fade-in { opacity: 1 !important; transform: none !important; transition: none !important; }
.fade-in.fade-in-visible { opacity: 1 !important; transform: translateY(0) !important; }
/* Responsive */
@media (max-width: 1000px) {
  .cruise-grid { grid-template-columns: repeat(2,1fr); }
  .benefits { flex-direction: column; gap: 1.5rem; }
}
@media (max-width: 700px) {
  .cruise-grid { grid-template-columns: 1fr; }
  .main-header { position: static; }
  .hero { height: 65vh; min-height: 340px; }
  .nav-container { flex-direction: column; gap: 0.7rem; }
  .benefits { flex-direction: column; gap: 1rem; }
  .benefit-card { padding: 1.2rem 0.7rem; }
}
