/* Rentaboat Torrevieja - Custom Styles (Next.js Modern Design) */

/* Design System Variables */
:root {
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-full: 999px;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
  
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-smooth: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* RAB Top Bar */
.langico {
  height: 35px;
  width: 35px;
  margin-left: var(--spacing-md);
  vertical-align: middle;
  transition: transform var(--transition-fast);
}

.langico:hover {
  transform: scale(1.05);
}

.langicomenu {
  height: 20px;
  width: 20px;
  transition: transform var(--transition-fast);
}

.langicomenu:hover {
  transform: scale(1.05);
}

/* Video Container - Hero Section */
.video-container {
  position: fixed;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.05) 0%, rgba(76, 175, 80, 0.05) 100%);
}

.iframer {
  position: absolute;
  left: 41%;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, -50%);
  border-radius: 0;
}

@media (min-aspect-ratio: 16/9) {
  .video-container .iframer {
    /* height = 100 * (9 / 16) = 56.25 */
    height: 56.25vw;
    z-index: 1;
    position: absolute;
  }
}

@media (max-aspect-ratio: 16/9) {
  .video-container {
    /* width = 100 / (9 / 16) = 177.777777 */
    width: 177.78vh;
    z-index: 1;
    position: absolute;
  }

  .iframer {
    /* width = 100 / (9 / 16) = 177.777777 */
    width: 177.78vh;
    z-index: 1;
    position: absolute;
  }
}

@media (max-aspect-ratio: 16/9) and (max-width: 800px) {
  .video-container {
    /* width = 100 / (9 / 16) = 177.777777 */
    width: 177.78vh;
    z-index: 1;
    position: absolute;
  }

  .iframer {
    /* width = 100 / (9 / 16) = 177.777777 */
    width: 177.78vh;
    z-index: 1;
    position: absolute;
    left: 12%;
  }
}


/* Boats Section - Card Layout (Fixed) */
.boats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
}

.boat-card {
  background: #ffffff;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.boat-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px);
  border-color: rgba(33, 150, 243, 0.2);
}

.boat-card .boat-image {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 200px;
  overflow: visible;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8eef7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

.boat-card .boat-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform var(--transition-smooth), filter var(--transition-smooth);
  max-height: 300px;
}

.boat-card:hover .boat-image img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.boat-card .boat-info {
  padding: var(--spacing-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.boat-card .boat-name {
  font-size: 18px;
  font-weight: 600;
  color: #202020;
  margin: 0 0 var(--spacing-md) 0;
  line-height: 1.3;
}

.boat-card .boat-btn {
  margin-top: auto;
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: white;
  border: none;
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  text-decoration: none;
  width: 100%;
}

.boat-card .boat-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.boat-card .boat-btn svg {
  width: 20px;
  height: 20px;
}

/* Con Licencia - Green Button */
.boat-card.with-license .boat-btn {
  background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
}

/* Responsive */
@media (max-width: 1024px) {
  .boats-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  .boats-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .boat-card .boat-image {
    height: 200px;
  }
}


/* Contact Section - Button 172 Style (Modern Design) */
.slide[data-cid="slide-172-861ed463"] .btn-172 {
  line-height: 80px;
  width: 80px;
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  border-radius: var(--border-radius-full);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: none;
}

.slide[data-cid="slide-172-861ed463"] .btn-172:hover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
}

@media (max-width: 1023px) {
  .slide[data-cid="slide-172-861ed463"] .btn-172 {
    line-height: 60px;
    width: 60px;
  }
}

.slide[data-cid="slide-172-861ed463"] .line-172 {
  height: calc(100% - 120px);
  width: 2px;
  background: rgba(33, 150, 243, 0.2);
  transition: all var(--transition-normal);
}

.slide[data-cid="slide-172-861ed463"]:hover .line-172 {
  background: rgba(33, 150, 243, 0.4);
}

.slide[data-cid="slide-172-861ed463"].whiteSlide .line-172 {
  background: rgba(32, 32, 32, 0.15);
}

/* Buttons Global - Next.js Style */
.button {
  border-radius: var(--border-radius-md);
  padding: var(--spacing-sm) var(--spacing-md);
  transition: all var(--transition-fast);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  border: none;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button.blue {
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: white;
}

.button.blue:hover {
  filter: brightness(1.08);
}

.button.green {
  background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
  color: white;
}

.button.green:hover {
  filter: brightness(1.08);
}

.button.rounded {
  border-radius: var(--border-radius-lg);
}

/* Cookies Banner - Modern Design */
#div-cookies {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(32, 32, 32, 0.08);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  padding: var(--spacing-lg);
  text-align: center;
  z-index: 101;
  color: #202020;
  font-size: 14px;
  line-height: 1.6;
  animation: slideUpIn var(--transition-smooth);
}

@keyframes slideUpIn {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#div-cookies a {
  color: #2196F3;
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-fast);
  border-bottom: 1px solid transparent;
}

#div-cookies a:hover {
  color: #1976D2;
  border-bottom-color: #2196F3;
}

#div-cookies button {
  margin-left: var(--spacing-md);
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: white;
  border: none;
  border-radius: var(--border-radius-md);
  padding: var(--spacing-sm) var(--spacing-md);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 13px;
}

#div-cookies button:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Images Lazy Loading Placeholder */
img[loading="lazy"] {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

img[loading="lazy"].loaded {
  animation: none;
}

/* Section Spacing & Hierarchy */
.slide {
  transition: all var(--transition-normal);
}

.section-explaining {
  margin-top: var(--spacing-2xl);
  padding: var(--spacing-xl);
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius-lg);
}

.section-explaining h2 {
  font-size: 28px;
  margin-bottom: var(--spacing-lg);
  color: #1a1a1a;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-shadow: none;
}

.section-explaining h3 {
  font-size: 18px;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  color: #1976D2;
  font-weight: 600;
  text-shadow: none;
}

.section-explaining p {
  font-size: 15px;
  line-height: 1.7;
  color: #424242;
  margin-bottom: var(--spacing-md);
}

/* Headings - Modern Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.5px;
}

h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-lg);
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

h1.smaller {
  font-size: 36px;
}

h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

p {
  font-size: 15px;
  line-height: 1.7;
  color: #424242;
  margin-bottom: var(--spacing-md);
}

p.ae-2 {
  font-size: 17px;
  color: #ffffff;
  font-weight: 400;
  line-height: 1.8;
}

/* Navigation Menu - Modern */
.menu {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li a {
  color: #202020;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-normal);
  position: relative;
}

.menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2196F3, #4CAF50);
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}

.menu li a:hover {
  background: rgba(33, 150, 243, 0.08);
  color: #2196F3;
}

.menu li a:hover::after {
  width: 20px;
}

/* Sidebar Navigation */
.sidebar {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.sidebar .logo {
  margin-bottom: var(--spacing-xl);
  display: block;
  transition: transform var(--transition-normal);
}

.sidebar .logo:hover {
  transform: scale(1.02);
}

.sidebar .close {
  margin-bottom: var(--spacing-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sidebar .close:hover {
  transform: rotate(90deg);
}

/* Card Flex Layout */
.flex {
  gap: var(--spacing-lg);
}

.flex-74 {
  margin-bottom: var(--spacing-xl);
}

.flex-74 li {
  transition: all var(--transition-smooth);
}

/* Responsive Grid */
@media (max-width: 768px) {
  .menu {
    gap: var(--spacing-md);
  }
  
  .menu li a {
    font-size: 13px;
    padding: var(--spacing-sm);
  }
  
  h1 {
    font-size: 28px;
  }
  
  h1.smaller {
    font-size: 24px;
  }
  
  h2 {
    font-size: 22px;
  }
  
  .section-explaining {
    padding: var(--spacing-lg);
  }
}

/* Footer Styles */
.footer {
  background-color: #000000;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  box-sizing: border-box;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: var(--spacing-lg);
  padding: 0 var(--spacing-lg);
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.footer-left a,
.footer-right a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: opacity var(--transition-smooth);
  overflow: hidden;
}

.footer-left a:hover,
.footer-right a:hover {
  opacity: 0.8;
}

.footer-left svg,
.footer-right svg {
  width: 24px;
  height: 24px;
  fill: white;
  stroke: white;
}

.footer-left svg {
  width: 90px;
  height: 40px;
  object-fit: contain;
}

.footer-center p {
  color: white;
  font-size: 12px;
  margin: 0;
  text-align: center;
  font-weight: 500;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }
  
  .footer-left,
  .footer-center,
  .footer-right {
    width: 100%;
    justify-content: center;
  }
  
  .footer {
    padding: var(--spacing-md);
  }
}

/* Privacy Policy Modal */
.privacy-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  overflow-y: auto;
  animation: fadeIn var(--transition-smooth);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.privacy-modal-content {
  background-color: #ffffff;
  margin: 5% auto;
  padding: 0;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 700px;
  width: 90%;
  animation: slideDown var(--transition-smooth);
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.privacy-modal-header {
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: white;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.privacy-modal-header h2 {
  margin: 0;
  font-size: 24px;
  color: white;
  text-shadow: none;
}

.privacy-modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.privacy-modal-close:hover {
  transform: scale(1.2);
}

.privacy-modal-body {
  padding: var(--spacing-lg);
  max-height: 70vh;
  overflow-y: auto;
  color: #202020;
  font-size: 14px;
  line-height: 1.8;
}

.privacy-modal-body h3 {
  color: #1976D2;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  font-size: 16px;
}

.privacy-modal-body p {
  margin: 0 0 var(--spacing-md) 0;
  text-align: justify;
}

@media (max-width: 768px) {
  .privacy-modal-content {
    width: 95%;
    margin: 10% auto;
  }
  
  .privacy-modal-header {
    padding: var(--spacing-md);
  }
  
  .privacy-modal-header h2 {
    font-size: 20px;
  }
  
  .privacy-modal-body {
    padding: var(--spacing-md);
    font-size: 13px;
  }
}
